Overview of hec-python-library Classes
Locations:
Parameters:
General: Parameter Class
Elevations: ElevParameter Class
Types: ParameterType Class
Times:
- All time-related classes have a
valuesread/write property that is a list of six integers [1] representing: year(s)
month(s)
day(s)
hour(s)
minute(s)
second(s)
Instances: HecTime Class
Periods:
Generic: TimeSpan Class
Value Recurrence: Interval Class
Value Duration: Duration Class
Values:
Quantity: UnitQuantity Class
Quality: Quality Class
TimeSeries:
Individual Values: TimeSeriesValue Class
Sequence of Values: TimeSeries Class
Ratings:
- Object Types
Object Type
CWMS Store
CWMS Retrieve
HEC-DSS Store/Retrieve
XML Store/Retrieve
No
No
No
Yes
No
Yes
Yes
Yes
No
No
Yes
No
- Naming
- Individual ratings and ratings sets (but not paired data) share a naming convention that references metadata objects for the ratings/sets [2]. There are four parts (separated by dot (
.) characters) to this naming convention: The location identifier
The parameters identifier:
an ordered list of independent parameters, separated by comma (
,) charactersa semicolon (
;) characterthe dependent parameter
The template version
The specification version
Parts 2-3 (the rating template identifier) references a RatingTemplate with the specified identifier.
Parts 1-4 (the rating specification identifier) references a RatingSpecification with the specified identifier.
Paired data objects use the normal HEC-DSS pathname convention for paired data.
- Individual ratings and ratings sets (but not paired data) share a naming convention that references metadata objects for the ratings/sets [2]. There are four parts (separated by dot (
- Office
Rating sets and all included objects (individual ratings, specifications, templates) require an office identifier. Therefore, when retrieving them from a data store the data store must have a default office specified or the
retrieve(...)method must use theoffice=parameter.- Methods
- All ratings objects (including paired data objects) have the following methods:
rate(...)for transforming independent parameter values to dependent parameter valuesreverse_rate(...)for transforming dependent parameter values to independent parameter values. Not all classes supportreverse_rate(...)
- Classes
- All classes directly related to ratings objects are:
ExpressionRating: (not implemented yet)
VirtualRating: (not implemented yet)
TransitionalRating: (not implemented yet)
Data Stores:
AbstractDataStore: AbstractDataStore Class
CwmsDataStore: CwmsDataStore Class
DssDataStore: DssDataStore Class