TSTool / Command / WriteWaterML
Overview
This command is under development. In particular, an evaluation is determining how best to map internal time series properties to the WaterML specification, including selecting reasonable defaults while allowing override of defaults. Recent work has focused on WaterML 2.
The WriteWaterML
command writes time series to a WaterML XML and JSON format file.
See the WaterML Input Type Appendix for more information about the file format.
See also the WriteWaterML2
command, which focuses on WaterML 2.
Command Editor
The following dialog is used to edit the command and illustrates the command syntax.
WriteWaterML
Command Editor (see also the full-size image)
Command Syntax
The command syntax is as follows:
WriteWaterML(Parameter="Value",...)
Command Parameters
Parameter | Description | Default |
---|---|---|
Parameter |
Description | Default |
TSList |
Indicates the list of time series to process, 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. |
Required if TSList=*TSID . |
EnsembleID |
The ensemble to process, if processing an ensemble. | Required if TSList= EnsembleID . |
OutputFile |
The WaterML output file. The path to the file can be absolute or relative to the working directory (command file location). Can be specified using ${Property} notation. |
None – must be specified. |
Version |
The WaterML version to write:
|
WaterML-2.0 |
Precision |
The number of digits after the decimal for numerical output. | 4 (in the future may default based on data type) |
MissingValue |
The value to write to the file to indicate a missing value in the time series. | As initialized when reading the time series or creating a new time series, typically -999 , NaN , or another value that is not expected in data. |
OutputStart |
The date/time for the start of the output. | Use the global output period. |
OutputEnd |
The date/time for the end of the output. | Use the global output period. |
Examples
See the automated tests.
Troubleshooting
See Also
ReadWaterML
commandWriteWaterML2
command