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 python | |
# | |
# Damien Ayers 2014 | |
# | |
# Replace corrupted images that were imported into Lightroom, with originals from a memory stick. | |
# | |
# Walk through a target directory structure of possibly corrupted files, and replace them | |
# with files from a source directory. Files in the source may be at completely different | |
# relative paths, but will have the same file name. | |
# |
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 mpl_toolkits.basemap import Basemap | |
import mpl_toolkits.basemap.pyproj as pyproj | |
import matplotlib.pyplot as plt | |
import numpy as np | |
# make sure the value of resolution is a lowercase L, | |
# for 'low', not a numeral 1 | |
map = Basemap(projection='ortho', lat_0=-30, lon_0=130, | |
resolution='l', area_thresh=1000.0) | |
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 | |
from osgeo import gdal | |
import warnings | |
import scipy.ndimage | |
@click.command(help="Print an image to the terminal ") | |
@click.option('--size', '-s') | |
@click.argument('filename', type=click.Path(exists=True, readable=True)) | |
def print_image(filename='', size=50): | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$ python2 netcdfstringstest.py py2test.nc | |
$ python3 netcdfstringstest.py py3test.nc | |
$ ncdump py2test.nc | |
netcdf py2test { | |
// global attributes: | |
string :uni = "Δ" ; | |
:encoded_uni = "Δ" ; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<html> | |
<head> | |
<title></title> | |
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
</head> | |
<body> | |
<h1>Shuffle Table</h1> | |
<ol> | |
<li>Copy your selection from Excel into the text area below</li> | |
<li>Press the shuffle button. (go on, press it a few times if you want)</li> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"lineage": { | |
"machine": { | |
"software_versions": { | |
"python": { | |
"version": "3.5.3 | packaged by conda-forge | (default, Feb 9 2017, 14:37:12) \n[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]" | |
}, | |
"datacube": { | |
"version": "1.2.2", | |
"repo_url": "https://github.com/data-cube/agdc-v2.git" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer