TSTool / Command / FillHistYearAverage
Overview
The FillHistYearAverage
command fills missing data in yearly time series with the average annual value.
The average values are computed using the available data period (or specified averaging
period – see the
SetAveragePeriod
command)
immediately after the time series is read and are then applied when this command is encountered.
Command Editor
The following dialog is used to edit the command and illustrates the syntax of the command.
FillHistYearAverage
Command Editor (see also the full-size image)
Command Syntax
The command syntax is as follows:
FillHistYearAverage(Parameter="Value",...)
Command Parameters
Parameter | Description | Default |
---|---|---|
TSList |
Indicates the list of time series to be processed, one of:
|
AllTS |
TSID |
The time series identifier or alias for the time series to be processed, using the * wildcard character to match multiple time series. Can be specified using ${Property} . |
Required if TSList=*TSID |
EnsembleID |
The ensemble to be processed, if processing an ensemble. Can be specified using ${Property} . |
Required if TSList=*EnsembleID |
FillStart |
Date/time indicating the start of filling, using a precision appropriate for the time series, or OutputStart . Can be specified using processor ${Property} . |
Fill the entire time series. |
FillEnd |
Date/time indicating the end of filling, using a precision appropriate for the time series, or OutputEnd . Can be specified using processor ${Property} . |
Fill the entire time series. |
FillFlag |
If specified as a single character, data flags will be enabled for the time series and each filled value will be tagged with the specified character. The flag can then be used later to label graphs, etc. The flag will be appended to existing flags if necessary. | No flag is assigned. |
Examples
See the automated tests.
The following command files fill a time series from the State of Colorado’s State of Colorado’s HydroBase database.
LARIMER.NASS.CropArea-Vegetables, Harvested.Year~HydroBase
FillHistYearAverage(TSList=AllMatchingTSID,
TSID="LARIMER.NASS.CropArea-Vegetables, Harvested.Year")
Time series data limits for the averages are printed to the log file, similar to the following example (note that the period for averaging is always shown and may be different than the output period).
Min: 95.0000 ACRE on 1954
Max: 2684.0000 ACRE on 1959
Sum: 11090.0000 ACRE
Mean: 1008.1818 ACRE
Number Missing: 42 (79.25%)
Number Not Missing: 11 (20.75%)
Total period: 1945 to 1997
Non-missing data period: 1945 to 1997
Troubleshooting
See Also
FillHistMonthAverage
commandSelectTimeSeries
commandSetAveragePeriod
command