This file contains 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
#!/usr/bin/env python3 | |
# -*- coding: iso-8859-1 -*- | |
###################################################################### | |
# Copyright: lpinner 2021 | |
# License: Apache 2.0 | |
##################################################################### | |
import os | |
import subprocess |
This file contains 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
#!/usr/bin/python3 | |
import os, sys | |
from urllib.parse import unquote, urlsplit | |
import fnmatch, re, sre_constants | |
from PyQt5 import uic | |
from PyQt5.QtCore import QObject, Qt | |
from PyQt5.QtWidgets import ( | |
QWidget, QApplication, QDesktopWidget, |
This file contains 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
from setuptools import setup | |
long_description = '''Simple usercustomize.py to keep separate site.USER_BASE/USER_SITE directories for 32 and 64bit | |
python installs on Windows. | |
Only required if you're installing extension modules (compiled pyd/dll) to the user site-packages directory, i.e.: | |
python setup.py install --user | |
pip install --user somepackage |
This file contains 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
import numpy as np | |
import rasterio as rio | |
import dask | |
import dask.array as da | |
class RioDataset(): | |
def __init__(self, filepath, band=1): | |
self.band = band | |
self.dataset = rio.open(filepath) | |
self.dtype = self.dataset.dtypes[band-1] |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
This file is heavily modified by Luke Pinner (2014) | |
Originally from the ESIP-EDAC WMS to KML converter. | |
Which is copyright (c) 2009 Earth Data Analysis Center | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or |
This file contains 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
I now use google-drive-ocamlfuse (https://github.com/astrada/google-drive-ocamlfuse). | |
For installation instructions see - http://www.webupd8.org/2013/09/mount-google-drive-in-linux-with-google.html | |
If you want my grive-sync inotifywait script, see the previous revision of this gist. |
NewerOlder