Skip to content

TSTool / Command / WriteNwsCard


Overview

The WriteNwsCard command writes one time series to the specified NWS Card format file. See the NWSCard Input Type Appendix for more information about the file format. Only daily or hourly time series can be written. Daily time series will be converted to 24Hour time series.

Command Editor

The command is available in the following TSTool menu:

  • Commands / Output Time Series

The following dialog is used to edit the command and illustrates the syntax of the command.

WriteNwsCard command editor

WriteNwsCard Command Editor (see full-size image)

Command Syntax

The command syntax is as follows:

WriteNwsCard(Parameter="Value",...)

Command Parameters

Parameter                          Description Default                           
OutputFile The NWS Card output file to write. The path to the file can be absolute or relative to the working directory (command file location). None – must be specified.
OutputStart The start of the output period, specified to daily or hourly precision to match the time series. Write all data.
OutputEnd The end of the output period, specified to daily or hourly precision to match the time series. Write all data.
TSList Indicate the time series to write, one of:
  • AllTS – write all the time series.
  • SelectedTS – write time series selected using SelectTimeSeries.
AllTS

Examples

See the automated tests.

A sample command file to write data from the State of Colorado’s HydroBase is as follows:

# 0130 - ALAMOSA SAN LUIS VALLEY RGNL
0130.NOAA.Precip.Day~HydroBase
WriteNWSCard(OutputFile="Alamosa.NOAA.PTPX.24Hour",TSList=AllTS)

Troubleshooting

See the main TSTool Troubleshooting documentation.

See Also