EcohydroLib  1.29
Namespaces | Variables
GetNLCDForDEMExtent.py File Reference

Namespaces

 GetNLCDForDEMExtent
 Extract a tile, the extent derived from the DEM of the project, of NLCD 2006 data from a locally stored copy of the entire NLCD 2006 dataset.
 

Variables

tuple GetNLCDForDEMExtent.parser = argparse.ArgumentParser(description='Get NLCD data (in GeoTIFF format) for DEM extent from a local copy of the entire NLCD 2006 dataset.')
 
string GetNLCDForDEMExtent.help = 'The configuration file'
 
tuple GetNLCDForDEMExtent.args = parser.parse_args()
 
tuple GetNLCDForDEMExtent.cmdline = GenericMetadata.getCommandLine()
 
 GetNLCDForDEMExtent.configFile = None
 
tuple GetNLCDForDEMExtent.context = Context(args.projectDir, configFile)
 
 GetNLCDForDEMExtent.outfile = args.outfile
 
string GetNLCDForDEMExtent.tileFilename = "%s.tif"
 
tuple GetNLCDForDEMExtent.manifest = GenericMetadata.readManifestEntries(context)
 
list GetNLCDForDEMExtent.demFilename = manifest['dem']
 
tuple GetNLCDForDEMExtent.demFilepath = os.path.join(context.projectDir, demFilename)
 
tuple GetNLCDForDEMExtent.bbox = getRasterExtentAsBbox(demFilepath)
 
tuple GetNLCDForDEMExtent.studyArea = GenericMetadata.readStudyAreaEntries(context)
 
list GetNLCDForDEMExtent.outputrasterresolutionX = studyArea['dem_res_x']
 
list GetNLCDForDEMExtent.outputrasterresolutionY = studyArea['dem_res_y']
 
list GetNLCDForDEMExtent.srs = studyArea['dem_srs']
 
string GetNLCDForDEMExtent.nlcdURL = 'http://gisdata.usgs.gov/TDDS/DownloadFile.php?TYPE=nlcd2006&FNAME=NLCD2006_landcover_4-20-11_se5.zip'
 
tuple GetNLCDForDEMExtent.nlcdRaster = context.config.get('NLCD', 'PATH_OF_NLCD2006')
 
 GetNLCDForDEMExtent.resx = outputrasterresolutionY,
 
string GetNLCDForDEMExtent.coverage = 'NLCD2006'
 
tuple GetNLCDForDEMExtent.asset = AssetProvenance(GenericMetadata.MANIFEST_SECTION)