Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

What

Required

Description

schema location

Grids.xml

no

Grid definitions, either regular or irregular

httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/grids.xsd

DELFT-FEWS is a location oriented system. All time series data must be referenced to a (geographic) location. Scalar time series need no additional information. For grid time series data, each point in the grid must be referenced to a location in a grid structure.

...

In irregular grids the grid has a fixed number of rows and columns, but the cell height and width is not equal in each row and column. For these grids additional information is required on the location of each individual cell in the grid to allow display in the grids display as well as for use in the spatial interpolation routine.

When available on the file system, the name of the XML file is for example:

Grids 1.00 default.xml

Grids                                          Fixed file name for the Grids configuration

1.00                                            Version number

default                                       Flag to indicate the version is the default configuration (otherwise omitted).

Image Removed
Figure 28 Elements of the grids configuration

Table of Contents

regular

For regular grids it is sometimes not required to add the location to the grids.xml when you only want to import/export the grid. Most grid transformations will not work when the output location is missing in the grids.xml. Regular grids that need a custom projection (projectionFile, polarStereoGraphic, geostationarySatelliteView, transverseMercator, mercator, albersEqualArea, azimuthalEquidistant, lambertAzimuthalEqualArea, rotatedCartesian, lambertConformalConic, rotatedSouthPole, rotatedNorthPole, rotatedCartesian, azimuthalEquidistant) should ALWAYS be listed in the grids.xml. The grid geometry should be available in the imported file (netcdf/grib).

When available on the file system, the name of the XML file is for example:

Grids 1.00 default.xml

Grids                                          Fixed file name for the Grids configuration

1.00                                            Version number

default                                       Flag to indicate the version is the default configuration (otherwise omitted).

Image Added
Figure 28 Elements of the grids configuration

Table of Contents

regular

Definition of a regular grid. One or more regular grids may be Definition of a regular grid. One or more regular grids may be defined.

Attributes;

  •         locationId; location Id of the grid. This locationId must be included in the locations definition.

...

Since 2013.01. Csv file with cell centers. Csv file should contain  a contain an "x" and "y" column. The cell centers should be listed from the upper left to the lower right, row by row. For regular grids always try to use a regular grid with a (custom) geodatum. For config example see: 06Grids-ConfigExamples

netcdfFile

Since 2015.02. Reference to a UGRID NetCDF file that contains only grid geometry meta data. This only supports mesh topologies (unstructured grids) with 2D coordinates. This can be 1D network, 2D triangular, 2D flexible or 3D layered mesh topologies. This currently only works for files that are compliant to the UGRID 1.0 conventions. For more information see http://ugrid-conventions.github.io/ugrid-conventions/

...

nccopy -V mesh2d,wgs84,mesh2d_node_x,mesh2d_node_y,mesh2d_node_z,mesh2d_edge_nodes,mesh2d_edge_x,mesh2d_edge_y,mesh2d_edge_x_bnd,mesh2d_edge_y_y_bnd,mesh2d_face_nodes,mesh2d_face_x,mesh2d_face_y,mesh2d_face_x_bnd,mesh2d_face_y_nodesbnd,mesh2d_faceFlowElem_xba,mesh2d_faceFlowElem_ybl,mesh2d_face_x_bnd,mesh2d_face_y_bnd,mesh2d_FlowElem_ba,mesh2d_FlowElem_bl,mesh2d_edge_type map.nc flowgeom.nc

The tool nccopy is part of the NetCDF library binary distribution.

Config Examples

edge_type map.nc flowgeom.nc

The tool nccopy is part of the NetCDF library binary distribution.


Config Examples


Code Block
languagexml
titlenetCDF file
<irregular locationId="meshLocation">
	<netcdfFile>
		<file>simplebox_hex7_map.nc</file>
		<meshTopologyVariableName>insert_mesh_variable_name_here</meshTopologyVariableName>
		<staggerLocation>face</staggerLocation>
	</netcdfFile>
</irregular>


Code Block
xml
Code Block
language
xml
<irregular locationId="meshLocationSwan2D_G2_cellcenters">
	<netcdfFile><rows>1318</rows>
	<columns>317</columns>
	<esriShapeFile>
		<file>simplebox<file>swan2D_hex7G2_mapcellcenters.nc<shp</file>
		<meshTopologyVariableName>insert_mesh_variable_name_here</meshTopologyVariableName><geoDatum>WGS 1984</geoDatum>
		<x>%X%</x>
		<staggerLocation>face<<y>%Y%</staggerLocation>y>
	</netcdfFile>esriShapeFile>
</irregular>


Code Block
xml
xml
<irregular locationId="Swan2D_G2_cellcenters">
	<rows>1318</rows>
	<columns>317</columns>
	<esriShapeFile>
		<file>swan2D_G2_cellcenters.shp</file>
		<geoDatum>WGS 1984<<projectionFileAvailable>true</geoDatum>projectionFileAvailable>
		<x>%X%</x>
		<y>%Y%</y>
	</esriShapeFile>
</irregular>


Code Block
titleCSV-file irregularxmlxml
<irregular locationId="Swan2DGrid_G2Waqua_cellcentersZeedelta">
	<rows>1318<    <rows>1539</rows>
	<columns>317<    <columns>501</columns>
	<esriShapeFile>
		<file>swan2D_G2_cellcenters.shp</file>
		<projectionFileAvailable>true</projectionFileAvailable>
		<x>%X%</x>
		<y>%Y%</y>
	</esriShapeFile>
</irregular>
    <csvFile>
        <file>Grid_Waqua_Zeedelta.csv</file>
        <geoDatum>Rijks Driehoekstelsel</geoDatum>
        <x>%X%</x>
        <y>%Y%</y>
    </csvFile>
</irregular> 


Code Block
xml
xml
<regular locationId="KNMI-HIRLAM-V70">
	<description>grid def. for KNMI-HIRLAM v7.0 with rotated pole</description>
	<rows>226</rows>
	<columns>136</columns>
	<rotatedSouthPole>
		<latitude>-30</latitude>
		<longitude>-15</longitude>
	</rotatedSouthPole>
	<gridCorners>
		<geoDatum>WGS 1984</geoDatum>
		<upperLeft>
			<x>-30.8688</x>
			<y>79.63847</y>
		</upperLeft>
		<lowerRight>
			<x>10.29617</x>
			<y>26.065</y>
		</lowerRight>
	</gridCorners>
</regular>

...