|
EcohydroLib
1.29
|
Namespaces | |
| RegisterGage | |
| Register streamflow gage coordinates from a point shapefile into metadata store for a project directory, copying the shapefile into the project directory in the process. | |
Variables | |
| tuple | RegisterGage.parser = argparse.ArgumentParser(description='Register streamflow gage shapefile with project') |
| string | RegisterGage.help = 'The configuration file' |
| tuple | RegisterGage.args = parser.parse_args() |
| tuple | RegisterGage.cmdline = GenericMetadata.getCommandLine() |
| RegisterGage.configFile = None | |
| tuple | RegisterGage.context = Context(args.projectDir, configFile) |
| tuple | RegisterGage.inGagePath = os.path.abspath(args.gageFile) |
| RegisterGage.publisher = args.publisher | |
| RegisterGage.outfile = args.outfile | |
| tuple | RegisterGage.studyArea = GenericMetadata.readStudyAreaEntries(context) |
| tuple | RegisterGage.bbox = bboxFromString(studyArea['bbox_wgs84']) |
| string | RegisterGage.outFilename = "%s%sshp" |
| tuple | RegisterGage.outFilepath = os.path.join(context.projectDir, outFilename) |
| list | RegisterGage.gageIDs = [args.idValue] |
| tuple | RegisterGage.coords |
| list | RegisterGage.gage_lon = coords[0] |
| list | RegisterGage.gage_lat = coords[0] |
| tuple | RegisterGage.coordinates = (gage_lon, gage_lat) |
| tuple | RegisterGage.shpFilename = writeCoordinatePairsToPointShapefile(context.projectDir, outfile, "gage_id", gageIDs, [coordinates]) |
| tuple | RegisterGage.asset = AssetProvenance(GenericMetadata.MANIFEST_SECTION) |
1.8.9.1