EcohydroLib  1.29
Namespaces | Variables
GetHYDRO1kDEMForBoundingbox.py File Reference

Namespaces

 GetHYDRO1kDEMForBoundingbox
 Extract tile for HYDRO1k digital elevation model (DEM) stored locally.
 

Variables

tuple GetHYDRO1kDEMForBoundingbox.parser = argparse.ArgumentParser(description='Get DEM raster (in GeoTIFF format) for a bounding box from GeoBrain WCS4DEM')
 
string GetHYDRO1kDEMForBoundingbox.help = 'The configuration file'
 
tuple GetHYDRO1kDEMForBoundingbox.args = parser.parse_args()
 
tuple GetHYDRO1kDEMForBoundingbox.cmdline = GenericMetadata.getCommandLine()
 
 GetHYDRO1kDEMForBoundingbox.configFile = None
 
tuple GetHYDRO1kDEMForBoundingbox.context = Context(args.projectDir, configFile)
 
 GetHYDRO1kDEMForBoundingbox.outfile = args.outfile
 
string GetHYDRO1kDEMForBoundingbox.demFilename = "%s.tif"
 
tuple GetHYDRO1kDEMForBoundingbox.demFilepath = os.path.join(context.projectDir, demFilename)
 
tuple GetHYDRO1kDEMForBoundingbox.studyArea = GenericMetadata.readStudyAreaEntries(context)
 
tuple GetHYDRO1kDEMForBoundingbox.bbox = bboxFromString(studyArea['bbox_wgs84'])
 
 GetHYDRO1kDEMForBoundingbox.t_srs = args.t_srs
 
string GetHYDRO1kDEMForBoundingbox.tmpDEMFilename = "%s-TEMP.tif"
 
tuple GetHYDRO1kDEMForBoundingbox.returnCode = demtile.getDEMForBoundingBox(context.config, context.projectDir, tmpDEMFilename, bbox=bbox, srs=t_srs)
 
tuple GetHYDRO1kDEMForBoundingbox.tmpDEMFilepath = os.path.join(context.projectDir, tmpDEMFilename)
 
list GetHYDRO1kDEMForBoundingbox.demResolutionX = args.demResolution[0]
 
list GetHYDRO1kDEMForBoundingbox.demResolutionY = args.demResolution[1]
 
tuple GetHYDRO1kDEMForBoundingbox.demSrs = getSpatialReferenceForRaster(tmpDEMFilepath)
 
 GetHYDRO1kDEMForBoundingbox.s_srs = t_srs,\
 
 GetHYDRO1kDEMForBoundingbox.trX = demResolutionY)
 
tuple GetHYDRO1kDEMForBoundingbox.asset = AssetProvenance(GenericMetadata.MANIFEST_SECTION)