Versions Compared

Key

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

...

Note

TODO work in progress

A first check to determine whether a given NetCDF file can be imported in FEWS is to use an online CF compliance checker, see e.g. http://cfconventions.org/compliance-checker.html. If the NetCDF file is not valid according to the CF compliance checker, then the NetCDF file can probably not be imported in FEWS.

Checklist to create NetCDF data in the format of the Netcdf CF-1.6 conventions

Note

TODO work in progress

This checklist focusses on the points that are important to be able to import the netcdf data into Delft-FEWS. The full NetCDF CF-1.6 conventions can be found on http://cfconventions.org/1.6.html

...

Before creating/adapting any code/script to produce NetCDF files, it can be very useful to read the following documentation:
TODO

Grid data
  1. all data and coordinate variables should have a unique variable name and the following attributes:
    units (required)
    standard_name (required)
    long_name (recommended)
    _FillValue and/or missing_value (recommended)
    scale_factor (optional)
    add_offset (optional)
    Also see: http://cfconventions.org/1.6.html#units http://cfconventions.org/1.6.html#long-name http://cfconventions.org/1.6.html#standard-name
  2. the standard_name attributes should comply to the list with standard names, see http://cfconventions.org/26.html
  3. a data variable for a 2D grid must depend on three dimensions, representing time and two spatial dimensions (in the order time, y, x). The dimension names can be anything.
    For the time dimension there must be a corresponding time coordinate variable with the same name.
    If the grid is regular or rectangular, then for each spatial dimension there must be a corresponding coordinate variable with the same name. See http://cfconventions.org/1.6.html#idp5553648
    If the grid is curvilinear, then the y and x coordinate variables are both two-dimensional and depend on both spatial dimensions. In this case the data variable must have an attribute "coordinates" that refers to the y and x coordinate variables (in that order), e.g. coordinates="y x"
    See http://cfconventions.org/1.6.html#idp5559280
  4. if the data has a forecast reference time/analysis time/base time, then this time must be stored in a separate coordinate variable that contains only one value, which is the forecast reference time. This variable must have standard_name="forecast_reference_time". The name of this variable must be present in the coordinates attribute of the data variable, e.g. coordinates="analysis_time" or coordinates="y x analysis_time". If needed, different data variables can point to different forecast reference time variables. See http://cfconventions.org/1.6.html#scalar-coordinate-variables
  5. the time coordinate variable must either have an attribute "units" with a valid unit of time and/or an attribute "axis" with value "T".
  6. the time and spatial coordinate variables must have values either in ascending or in descending order.

...