Skip to content

Instantly share code, notes, and snippets.

### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).
@mdekauwe
mdekauwe / test.py
Created November 5, 2010 16:49
attempt
def grab_all_model_data(self):
""" Read all the models outputs into various arrays, also grabs various headers """
models = ['CASA', 'CLMX', 'EALC', 'EDXX', 'GDAY', 'LPJG', 'ISAM', 'OCNX', 'SDVM', 'TECO']
years = np.arange(1990, 2011)
model_var = {}
model_outputs = {}
for model in self.model_dict:
where = self.model_dir + model
@mdekauwe
mdekauwe / test.py
Created November 5, 2010 16:48
attempt
def grab_all_model_data(self):
""" Read all the models outputs into various arrays, also grabs various headers """
models = ['CASA', 'CLMX', 'EALC', 'EDXX', 'GDAY', 'LPJG', 'ISAM', 'OCNX', 'SDVM', 'TECO']
years = np.arange(1990, 2011)
model_var = {}
model_outputs = {}
for model in self.model_dict:
where = self.model_dir + model
#!/usr/bin/env python
"""
Code extracts MODIS derived products (1km) from the HDF, rescales them, checks values against
acceptable QA and outputs to a binary file. Code seems generic enough that one can just
add another method for a new MODIS product. Currently works on LAI, NDVI/EVI and LST. Code
also writes out an ENVI .hdr file...nice.
*** NOTE...I don't vouch for the reliability of the default QA, please supply your own on
the cmd line.