Skip to content

Reader - EmptyTemporalDomainReader

ReaderName: EmptyTemporalDomainReader

This reader is used to import data from NetCDF files where the variables do not have temporal domain defined into a DHI Platform Multidimensional model. The reader creates an artificial temporal domain of one time step to comply with the multidimensional model.

The input NetCDF files should have: - one 1D variable and dimension 'lat' or 'latitude' - one 1D variable and dimension 'lon' or 'longitude' - one or more Geo2D variables defined over (lat, lon)

Files can be converted one at a time or combined into a zip file which can then be used as an input for the reader. The files inside the zip files must have a matching spatial and temporal domain.

  • The reader loads all items in provided input file(s). An example request might look like this:
        {
          projectId: <projectId>,
          uploadUrl: <fileUrl>,
          outputDatasetData: {
            name: <dataset-name>
          },
          readerName: 'EmptyTemporalDomainReader',
          writerName: 'MDWriter',
          readerParameters: []
        }
    

Optional reader parameters

  • "AllowedItemNames": array of names of items (NetCDF variables) to include in the result. If not specified, all items will be included.
  • "CoordinateInterpretationType": gives a hint to the reader as to what representation to assign to coordinates found in the file. Values are "CenterOfCell", which means the coordinates represent centers of cells, or "BottomLeftBorder" (default), which indicates that the coordinates are given with respect to the bottom left border of the cell.
  • "EquidistantStepDiffTolerance": to import data as EqudistantGrid, the step difference must be inferred from array of lat/long positions. This paramater specifies max tolerance for difference variations between individual steps. Default value is 0.0005.