EcohydroLib  1.29
Namespaces | Variables
GetCatchmentShapefileForNHDStreamflowGage.py File Reference

Namespaces

 GetCatchmentShapefileForNHDStreamflowGage
 Query NHDPlus2 database for shapefile of the drainage area of the given streamflow gage.
 

Variables

tuple GetCatchmentShapefileForNHDStreamflowGage.parser = argparse.ArgumentParser(description='Get shapefile for the drainage area of an NHDPlus2 streamflow gage')
 
string GetCatchmentShapefileForNHDStreamflowGage.help = 'The configuration file'
 
tuple GetCatchmentShapefileForNHDStreamflowGage.args = parser.parse_args()
 
tuple GetCatchmentShapefileForNHDStreamflowGage.cmdline = GenericMetadata.getCommandLine()
 
 GetCatchmentShapefileForNHDStreamflowGage.configFile = None
 
tuple GetCatchmentShapefileForNHDStreamflowGage.context = Context(args.projectDir, configFile)
 
 GetCatchmentShapefileForNHDStreamflowGage.outfile = args.outfile
 
string GetCatchmentShapefileForNHDStreamflowGage.tmpFilename = "%s%s%s"
 
tuple GetCatchmentShapefileForNHDStreamflowGage.shapeFilepath = os.path.join(context.projectDir, tmpFilename)
 
list GetCatchmentShapefileForNHDStreamflowGage.gageProvenance = [i for i in GenericMetadata.readAssetProvenanceObjects(context) if i.name == 'gage']
 
tuple GetCatchmentShapefileForNHDStreamflowGage.studyArea = GenericMetadata.readStudyAreaEntries(context)
 
list GetCatchmentShapefileForNHDStreamflowGage.reachcode = studyArea['nhd_gage_reachcode']
 
list GetCatchmentShapefileForNHDStreamflowGage.measure = studyArea['nhd_gage_measure_pct']
 
 GetCatchmentShapefileForNHDStreamflowGage.writeMetadata = False
 
tuple GetCatchmentShapefileForNHDStreamflowGage.shapeFilename
 
string GetCatchmentShapefileForNHDStreamflowGage.source = 'http://www.horizon-systems.com/NHDPlus/NHDPlusV2_home.php'
 
 GetCatchmentShapefileForNHDStreamflowGage.format = OGR_SHAPEFILE_DRIVER_NAME)
 
tuple GetCatchmentShapefileForNHDStreamflowGage.asset = AssetProvenance(GenericMetadata.MANIFEST_SECTION)