Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
#!/usr/bin/env bash
#
# clip_usgs_to_shape.sh
# Clip individual band files from USGS-distributed remote-senisng images
# to extent of polygon provided in a shapefile, using the GDAL command line
# tools.
#
# Chris Waigl, 2014-04-15
#
# Input:
#!/usr/bin/env python
# encoding: utf-8
"""
evaluatehfdi_debug.py
Debugging scikit-learn Gaussian Mixture Model parameter choice.
Created by Chris Waigl on 2014-05-13.
Copyright (c) 2014 Christine F. Waigl. MIT License.
"""
import argparse
def dosomething(someinput):
pass
def main():
parser = argparse.ArgumentParser()
parser.add_argument("infilepath")
args = parser.parse_args()
import argparse
import collections
# Let's define a global dispatch table for the 8 different possible neighbors
# clockwise starting top-left: tl, t, tr, r, br, b, bl, l.
# The target index only depends on the number of rows and the start index jj
# As we won't know beforehand which functions to use for a given start index,
# we make them all dependent on both jj and n
neighbordispatch = {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### 42 OPEN FILES:
[u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/gshhs_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/gshhs_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/riversmeta_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/gshhs_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/countriesmeta_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/riversmeta_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/gshhsmeta_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/gshhs_l.dat',
u'/Users/chris/.virtualenvs/science27/lib/python2.7/site-packages/mpl_toolkits/basemap/data/rivers_l.dat',
{'INVENTORYMETADATA': {'ADDITIONALATTRIBUTES': {'AveragedBlackBodyTemperature': 290.02,
'AveragedFocalPlane1Temperature': 269.94,
'AveragedFocalPlane2Temperature': 270.15,
'AveragedFocalPlane3Temperature': 83.34,
'AveragedFocalPlane4Temperature': 83.02,
'AveragedMirrorTemperature': 277.73,
'CalibrationQuality': 'marginal',
'MissionPhase': 'EXECUTION',
'NadirPointing': 'Y'},
'ANCILLARYINPUTGRANULE': {'ANCILLARYINPUTPOINTER': 'MOD03.A2015166.2225.005.2015167051911.hdf',
GROUP = INVENTORYMETADATA
GROUPTYPE = MASTERGROUP
GROUP = ECSDATAGRANULE
OBJECT = LOCALGRANULEID
NUM_VAL = 1
VALUE = "MOD021KM.A2015166.2225.005.2015167074726.hdf"
END_OBJECT = LOCALGRANULEID