Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NetcdfScalarTimeSeriesSerializer
NetcdfMatroosScalarTimeSeriesSerializer
NetcdfScalarNonEquidistantTimeSeriesSerializer
NetcdfVerticalProfileSerializer
NetcdfGridTimeSeriesSerializer
NetcdfZLayersTimeSeriesSerializer
NetcdfDomainTimeSeriesSerializer


exportLocationAttributeAsNetCDFVariable

Since 2021.01.  Adds a variable to the NetCdf file. Name of the variable is the value of ncVariable, the value is the configured location attribute of attributeId.


config example:

Code Block
languagexml
linenumberstrue
<exportLocationAttributeAsNetCDFVariable>
   <ncVariable>LocationAlias</ncVariable>
   <attributeId>niceName</attributeId>
</exportLocationAttributeAsNetCDFVariable>


Example result (in txt format) of using exportLocationAttributeAsNetCDFVariable:

Code Block
collapsetrue
netcdf {
  dimensions:
    time = 3;
    stations = 6;
    char_leng_id = 64;
    char_leng_name = 255;
    char_leng_attribute = 255;
  variables:
    double time(time);
      time:standard_name = "time";
      time:long_name = "time";
      time:units = "minutes since 1970-01-01 00:00:00.0 +0000";
      time:axis = "T";

    double lat(stations);
      lat:standard_name = "latitude";
      lat:long_name = "Station coordinates, latitude";
      lat:units = "degrees_north";
      lat:axis = "Y";
      lat:_FillValue = 9.96921E36;

    double lon(stations);
      lon:standard_name = "longitude";
      lon:long_name = "Station coordinates, longitude";
      lon:units = "degrees_east";
      lon:axis = "X";
      lon:_FillValue = 9.96921E36;

    double y(stations);
      y:standard_name = "latitude";
      y:long_name = "y coordinate according to WGS 1984";
      y:units = "degrees_north";
      y:axis = "Y";
      y:_FillValue = 9.96921E36;

    double x(stations);
      x:standard_name = "longitude";
      x:long_name = "x coordinate according to WGS 1984";
      x:units = "degrees_east";
      x:axis = "X";
      x:_FillValue = 9.96921E36;

    double z(stations);
      z:long_name = "height above mean sea level";
      z:units = "meters";
      z:_FillValue = 9.96921E36;

    char station_id(stations, char_leng_id);
      station_id:long_name = "station identification code";
      station_id:cf_role = "timeseries_id";

    char station_names(stations, char_leng_name);
      station_names:long_name = "station name";

    char LocationAlias(stations, char_leng_attribute);
      LocationAlias:niceName = "location attribute value";

    float waterlevel(time, stations);
      waterlevel:standard_name = "water_surface_height_above_reference_datum detection_minimum";
      waterlevel:long_name = "waterlevel";
      waterlevel:units = "m";
      waterlevel:_FillValue = -9999.0f;
      waterlevel:coordinates = "lat lon";
      waterlevel:cell_methods = "time: maximum";

  // global attributes:
  :Conventions = "CF-1.6";
  :title = "Data";
  :institution = "Deltares";
  :source = "Export NETCDF-CF_TIMESERIES from Delft-FEWS";
  :history = "actual history attribute text replaced by dummy text in unit test";
  :references = "http://www.delft-fews.com";
  :Metadata_Conventions = "Unidata Dataset Discovery v1.0";
  :summary = "Data exported from Delft-FEWS";
  :date_created = "actual date_created attribute text replaced by dummy text in unit test";
  :fews_implementation_version = "0.0";
  :fews_build_number = "development";
  :coordinate_system = "WGS 1984";
  :featureType = "timeSeries";
  :time_coverage_start = "2003-03-01T00:00:00+0000";
  :time_coverage_end = "2003-03-01T00:30:00+0000";
  :geospatial_lon_min = "-3.5458";
  :geospatial_lon_max = "-2.15939";
  :geospatial_lat_min = "51.74003";
  :geospatial_lat_max = "52.76901";
 data:
time =
  {1.744128E7, 1.7441295E7, 1.744131E7}
lat =
  {51.93591, 51.74003, 52.76901, 52.55523, 52.19899, 52.43011}
lon =
  {-2.15939, -2.2469, -3.1088, -2.37608, -2.38931, -3.5458}
y =
  {51.93591, 51.74003, 52.76901, 52.55523, 52.19899, 52.43011}
x =
  {-2.15939, -2.2469, -3.1088, -2.37608, -2.38931, -3.5458}
z =
  {1.1, 2.2, 3.3, 9.96921E36, 5.5, 6.6}
station_id ="26", "27", "28", "24", "29", "25"
station_names ="Slate Mill", "Ebley Mill", "Llanymynech", "Burcote", "Knightsford Bridge", "Rhos-Y-Pentref"
LocationAlias ="A-attribute-2026", "A-attribute-2027", "A-attribute-2028", "A-attribute-2024", "A-attribute-2029", "A-attribute-2025"
waterlevel =
  {
    {-9999.0, 1.21, 1.31, 1.41, 1.51, 1.61},
    {-9999.0, 2.21, 2.31, 2.41, 2.51, 2.6100001},
    {-9999.0, 3.21, 3.31, 3.41, 3.51, 3.6100001}
  }
}


omitMissingValues

If set to true records with missing values are not exported

...