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 | |
""" | |
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. |
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
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 |
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
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 |
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
### 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). |