MeteoIODoc  MeteoIODoc-2.6.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SMET

Format

The Station meteo data files is a station centered, ascii file format that has been designed with flexibility and ease of use in mind. Please refer to its official format specification for more information (including the list of standard parameters: TA, TSS, TSG, RH, VW, DW, ISWR, OSWR, ILWR, OLWR, PINT, PSUM, HS). For PINT, it is assumed that the intensity (in mm/h) is valid for the whole period between the actual time step and the previous one. You can also have a look at the following Weissfluhjoch dataset as (quite large) example SMET dataset.

This plugin can also provide Points Of Interest, given as a SMET file containing either latitude/longitude/altitude or easting/northing/altitude. For the latter, the header must contain the epsg code (see example below).

Non-standard parameters can also be given, such as extra snow temperatures. These parameters will then take the name that has been given in "fields", converted to uppercase. It is usually a good idea to number these parameters, such as TS1, TS2, TS3 for a serie of temperatures at various positions.

Units

All units are MKSA, the only exception being the precipitations that are in mm/h or mm/{time step}. It is however possible to use multipliers and offsets (but they must be specified in the file header). If no time zone is present, GMT is assumed (but it is nevertheless highly recommended to provide the time zone, even when set to zero).

Keywords

This plugin uses the following keywords:

  • STATION#: input filename (in METEOPATH). As many meteofiles as needed may be specified
  • METEOPATH: meteo files directory where to read/write the meteofiles; [Input] and [Output] sections
  • METEOPARAM: output file format options (ASCII or BINARY that might be followed by GZIP)
  • SMET_PLOT_HEADERS: should the plotting headers (to help make more meaningful plots) be included in the outputs (default: true)? [Output] section
  • POIFILE: a path+file name to the a file containing grid coordinates of Points Of Interest (for special outputs)

Example:

[Input]
METEO = SMET
METEOPATH = ./input
STATION1 = uppper_station.smet
STATION2 = lower_station.smet
STATION3 = outlet_station.smet
[Output]
METEOPATH = ./output
METEOPARAM = ASCII GZIP

Below is an example of Points Of Interest input:

SMET 1.1 ASCII
[HEADER]
station_id = my_pts
epsg = 21781
nodata = -999
fields = easting northing altitude
[DATA]
832781 187588 2115
635954 80358 2428
Note
There is an R package for handling SMET files available at https://cran.r-project.org/web/packages/RSMET