Replacement File¶
Two files are used to accomplish the automated parameter replacement functionality in GSSHA models.
Replace Parameter File¶
File extension: None
-
class
gsshapy.orm.
ReplaceParamFile
[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
,gsshapy.base.file_base.GsshaPyFileObjectBase
Object interface for the Replacement Parameters File.
The contents of this file are abstracted to one other supporting object:
TargetParameter
. Use this object in conjunction with theReplaceValFile
.- See: http://www.gsshawiki.com/Alternate_Run_Modes:Simulation_Setup_for_Alternate_Run_Modes
- http://www.gsshawiki.com/File_Formats:Project_File_Format#Replacement_cards
-
tableName
= u'rep_replace_param_files'¶ Database tablename
-
id
¶ PK
-
numParameters
¶ INTEGER
-
fileExtension
¶ STRING
-
projectFile
¶ RELATIONSHIP
-
targetParameters
¶ RELATIONSHIP
Supporting Objects¶
-
class
gsshapy.orm.
TargetParameter
(targetVariable, varFormat)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
Object containing data for a single target value as defined in the Replacement Parameters File.
-
tableName
= u'rep_target_parameter'¶ Database tablename
-
id
¶ PK
-
replaceParamFileID
¶ FK
-
replaceParamFile
¶ RELATIONSHIP
-
targetVariable
¶ STRING
-
varFormat
¶ STRING
-
Replace Value File¶
File extension: None
-
class
gsshapy.orm.
ReplaceValFile
[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
,gsshapy.base.file_base.GsshaPyFileObjectBase
Object interface for the Replacement Values File.
Use this object in conjunction with the
ReplaceParamFile
.- See: http://www.gsshawiki.com/Alternate_Run_Modes:Simulation_Setup_for_Alternate_Run_Modes
- http://www.gsshawiki.com/File_Formats:Project_File_Format#Replacement_cards
-
tableName
= u'rep_replace_val_files'¶ Database tablename
-
id
¶ PK
-
values
¶ STRING
-
fileExtension
¶ STRING
-
projectFile
¶ RELATIONSHIP
-
lines
¶ RELATIONSHIP