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
$ 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 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
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): | |
""" |
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
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 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
#!/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. | |
# |
NewerOlder