Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If CompareLtE NameLoad Num body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr BinOpBitAnd Str TupleLoad AttributeLoad NameLoad attr Str Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr BinOpBitAnd Str TupleLoad AttributeLoad NameLoad attr Str Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr BinOpBitAnd Str TupleLoad AttributeLoad NameLoad attr Str Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr BinOpBitAnd Str TupleLoad AttributeLoad NameLoad attr Str Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr BinOpBitAnd Str TupleLoad AttributeLoad NameLoad attr Str Str If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assert NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Slice Num comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assert CompareEq NameLoad Num
N/A N/A os N/A sys N/A errno N/A argparse N/A ConfigParser wcs4demlib.demquery getDEMForBoundingBox nhdplus2lib.networkanalysis getBoundingBoxForCatchmentsForGage ssurgolib.featurequery getMapunitFeaturesForBoundingBox ssurgolib.rasterize rasterizeSSURGOFeatures spatialdatalib.utils convertGMLToShapefile N/A ssurgolib.attributequery solimlib.inference inferSoilPropertiesForSSURGOAndTerrainData N/A parser N/A N/A argparse ArgumentParser description Get SSURGO features for the drainage area of an NHDPlus2 gage N/A N/A N/A parser add_argument -i --configfile dest configfile required True help The configuration file N/A N/A N/A parser add_argument -o --outdir dest outdir required False help The directory to which intermediate and final files should be saved N/A N/A N/A parser add_argument -r --reachcode dest reachcode required True help A string representing the Reachcode of a stream reach whose catchment ComIDs are to be determined from NHDPlus2 topology N/A N/A N/A parser add_argument -m --measure dest measure required True type float help A float representing the measure along reach where Stream Gage is located in percent from downstream end of the one or more NHDFlowline features that are assigned to the ReachCode N/A N/A N/A parser add_argument -s --soilrasterresolution dest soilrasterresolution required False type float help A floating point number representing of desired output resolution of soil property raster maps; unit: meters N/A N/A N/A parser add_argument -t --t_srs dest t_srs required True help Target spatial reference system of output, in EPSG:num format N/A args N/A N/A parser parse_args N/A soilRasterResolution -1 N/A N/A args soilrasterresolution N/A N/A soilRasterResolution N/A args soilrasterresolution N/A N/A soilRasterResolution 0 N/A N/A N/A ValueError soilrasterresolution must be a positive real number N/A N/A N/A N/A os access N/A args configfile N/A os R_OK N/A N/A N/A IOError N/A errno EACCES N/A Unable to read configuration file %s N/A args configfile N/A config N/A N/A ConfigParser RawConfigParser N/A N/A N/A config read N/A args configfile N/A N/A N/A N/A config has_option GDAL/OGR PATH_OF_OGR2OGR N/A N/A N/A N/A sys exit N/A Config file %s does not define option %s in section %s N/A N/A args configfile GDAL/OGR PATH_OF_OGR2OGR N/A N/A N/A N/A config has_option GDAL/OGR PATH_OF_GDAL_RASTERIZE N/A N/A N/A N/A sys exit N/A Config file %s does not define option %s in section %s N/A N/A args configfile GDAL/OGR PATH_OF_GDAL_RASTERIZE N/A N/A N/A N/A config has_option SOLIM PATH_OF_SOLIM N/A N/A N/A N/A sys exit N/A Config file %s does not define option %s in section %s N/A N/A args configfile SOLIM PATH_OF_SOLIM N/A N/A N/A N/A config has_option NHDPLUS2 PATH_OF_NHDPLUS2_DB N/A N/A N/A N/A sys exit N/A Config file %s does not define option %s in section %s N/A N/A args configfile NHDPLUS2 PATH_OF_NHDPLUS2_DB N/A N/A N/A N/A config has_option NHDPLUS2 PATH_OF_NHDPLUS2_CATCHMENT N/A N/A N/A N/A sys exit N/A Config file %s does not define option %s in section %s N/A N/A args configfile NHDPLUS2 PATH_OF_NHDPLUS2_CATCHMENT N/A N/A args outdir N/A N/A outdir N/A args outdir N/A N/A outdir N/A N/A os getcwd N/A N/A N/A N/A N/A os path isdir outdir N/A N/A N/A IOError N/A errno ENOTDIR N/A Output directory %s is not a directory N/A outdir N/A N/A N/A N/A os access outdir N/A os W_OK N/A N/A N/A IOError N/A errno EACCES N/A Not allowed to write to output directory %s outdir N/A outdir N/A N/A N/A os path abspath outdir N/A N/A N/A os chdir outdir N/A solimCmdPath N/A N/A config get SOLIM PATH_OF_SOLIM N/A N/A N/A N/A os access solimCmdPath N/A os X_OK N/A N/A N/A IOError N/A errno EACCES N/A SOLIM command %s is not executable N/A solimCmdPath N/A bbox N/A getBoundingBoxForCatchmentsForGage config outdir N/A args reachcode N/A args measure N/A N/A Bounding box for gage %s measure %f: %f,%f,%f,%f N/A N/A args reachcode N/A args measure N/A bbox N/A minX N/A bbox N/A minY N/A bbox N/A maxX N/A bbox N/A maxY N/A demFilename N/A DEM_%s.tif N/A args reachcode N/A returnCode N/A getDEMForBoundingBox outdir demFilename bbox bbox srs N/A args t_srs N/A returnCode N/A gmlFilenames N/A getMapunitFeaturesForBoundingBox outdir bbox mapunitExtended True tileBbox False N/A gmlFilename gmlFilenames N/A N/A gmlFilepath N/A N/A N/A os path join outdir gmlFilename N/A layerName N/A N/A N/A N/A os path splitext gmlFilename N/A 0 N/A shpFilename N/A convertGMLToShapefile config outdir gmlFilepath layerName N/A args t_srs N/A attrList N/A N/A elem N/A 10 N/A elem N/A N/A ssurgolib attributequery attributeListNumeric N/A N/A soilRasterResolution -1 N/A N/A N/A N/A N/A sys stderr write Using DEM resolution for soil property rasters ...
 N/A N/A rasterizeSSURGOFeatures config config outputDir outdir featureFilename shpFilename featureLayername layerName featureAttrList attrList getResolutionFromRasterFileNamed demFilename N/A N/A N/A N/A N/A sys stderr write N/A Using user-supplied resolution, %d meters x %d meters, for soil property rasters ...
 N/A soilRasterResolution soilRasterResolution N/A N/A rasterizeSSURGOFeatures config config outputDir outdir featureFilename shpFilename featureLayername layerName featureAttrList attrList rasterResolutionX soilRasterResolution rasterResolutionY soilRasterResolution N/A returnCode N/A inferSoilPropertiesForSSURGOAndTerrainData config outdir shpFilename demFilename N/A N/A returnCode 0