This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"BACKLOG_FOLDER": { | |
"ACTIVE": true, | |
"NAME": "", | |
"TITLE": "BACKLOG", | |
"SORT": "-priority,duedate,categoryNames,subject", | |
"RESTRICT": "", | |
"DISPLAY_PROPERTIES": { | |
"OWNER": false, | |
"PERCENT": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''Print Yukon NTS tile names as html table with links, arranged in same order as they appear in a map index. | |
2015-Aug-19, [email protected] | |
License: X/MIT | |
''' | |
nts_txt_ordered = '''117C 117D | |
117B 117A | |
116NO 116P | |
116JK 116I 106L 106K |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adapted from https://github.com/ThomasG77/30DayMapChallenge/blob/master/day4_hexagons/data/h3-processing.py | |
import os | |
from qgis.utils import iface | |
from qgis.core import ( | |
QgsCoordinateReferenceSystem, | |
QgsCoordinateTransform, | |
QgsFeature, QgsField, QgsFields, | |
QgsGeometry, QgsPointXY, QgsProject, | |
QgsProcessingFeedback, QgsMessageLog, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import arcpy | |
from osgeo import gdal | |
gdal.UseExceptions() | |
class Toolbox(object): | |
def __init__(self): | |
"""Define the toolbox (the name of the toolbox is the name of the | |
.pyt file).""" | |
self.label = "Toolbox" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Driver: DIMAP/SPOT DIMAP | |
Files: DIM_SPOT6_MS_201308032015087_SEN_1.XML | |
IMG_SPOT6_MS_201308032015087_SEN_1_R1C1.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R1C2.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R1C3.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R1C4.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R2C1.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R2C2.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R2C3.TIF | |
IMG_SPOT6_MS_201308032015087_SEN_1_R2C4.TIF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Generate a blog-style index page written in markdown. | |
A header line with link to page, followed by a few lines of the story. | |
""" | |
import os | |
from pathlib import Path | |
import dateutil.parser | |
from inspect import getsourcefile | |
here = os.path.dirname(os.path.abspath(getsourcefile(lambda:0))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
T:\ENV.558>if /I "C:\WINDOWS\system32\cmd.exe /c ``T:\ENV.558\setenv-testing.bat` `" EQU "`C:\WINDOWS\system32\cmd.exe` /C ``T:\ENV.558\setenv-testing.bat` `" pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scoop uninstall scoop | |
$xlist = "$env:userprofile\scoop", "c:\apps\geo", "$env:userprofile\.condarc", "$env:userprofile\.conda", "$env:userprofile\.config\scoop" | |
foreach ($x in $xlist) { | |
if (Test-Path $x) { Remove-Item $x} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''Copy RPC metdata from IN raster to OUT raster | |
Adapted from @user7821537 | |
https://gis.stackexchange.com/questions/264644/transfer-rpc-metadata-from-one-geotiff-to-another | |
''' | |
import os | |
import sys | |
from osgeo import gdal | |
gdal.UseExceptions() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# a console output snippet that shows conda does downgrade to older version of currently installed package | |
# https://stackoverflow.com/questions/23974217/how-do-i-revert-to-a-previous-package-in-anaconda | |
# | |
$ conda install gdal=3.4.0 | |
Collecting package metadata (current_repodata.json): done | |
Solving environment: failed with initial frozen solve. Retrying with flexible solve. | |
Solving environment: done | |
Collecting package metadata (repodata.json): done | |
Solving environment: failed with initial frozen solve. Retrying with flexible solve. |