Versions Compared

Key

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

...

Import data for a given subgrid

Note

Importing data for a subgrid currently only works for regular grids.

This section only applies to the import of grid data. For data with a regular grid that is imported from a NetCDF file, it is in most cases not required to have a grid definition in the grids.xml configuration file. Because for regular grids the import reads the grid definition from the NetCDF file and stores the grid definition directly in the datastore of Delft-FEWS. If for the imported data there is no grid definition present in the grids.xml configuration file, then data for the entire grid is imported.
To import data for only part of the original grid, it is required to specify a grid definition in the grids.xml configuration file. The grid definition defines the part of the grid that needs to be imported. In other words the grid definition defines a subgrid of the original grid. In this case only data for the configured subgrid is downloaded and imported, the data for the rest of the original grid is ignored. The following restrictions apply:

  • The subgrid must be fully contained within the original grid.
  • The subgrid must have the same geodatum as the original grid.
  • The cellwidth of the subgrid must be the same as the cellwidth of the original grid within a margin of 10 percent.
  • The cellheight of the subgrid must be the same as the cellheight of the original grid within a margin of 10 percent.
  • All cell centers in the subgrid must coincide with cell centers in the original grid within a certain margin.

...

...

Importing data for a sub grid currently only works for regular grids.

For example to import data for a sub grid from the URL http://test.opendap.org/opendap/hyrax/data/nc/sst.mnmean.nc.gz use e.g. the following grid definition in the grids.xml file. In this example a subgrid of 5x5 cells is imported, where the cell center longitude coordinates range from 0 to 8 degrees and the cell center latitude coordinates range from 50 to 58 degrees.

...

For more information about the configuration of grid definitions in Delft-FEWS see Grids.TODO Irregular grids

Import data from a password protected server

...