Reader - DFSU
ReaderName: Dfsu
This reader can read data from DHI's DFSU format.
The reader has optional parameters:
-
SRID: Spatial reference ID. By default, the reader will try to read the valid spatial reference ID from the DFSU file, but this parameter can be used to override the SRID or to define it when the file does not include valid spatial reference. Note that this does not perform any coordinate transformation. To transform data from one coordinate system to another, use theCrsTransformationtransformation as part of the conversion. -
AllowedItemNames: list of names of items that should be included in the resulting multidimensional model. -
ReadFull3D: Indicates that the data should be read as full 3D elements, not as layers. AVerticalFilterTransformationis ignored for full 3D data, see Vertical filtering. -
ShiftLongitudes: Shifts longitudes from the 0 to 360 degree range to the -180 to 180 degree range, so that global meshes stored in 0 to 360 can be displayed and queried as a whole. Nodes east of 180 degrees are moved by -360 degrees. Elements crossing the 180 degree meridian are kept whole on the side of their center, which leaves them extending slightly beyond 180 or -180 degrees. A spatial query does not find such an element from the other side of the meridian: for example, an element kept on the west side extends to 180.125 degrees, so a query covering only -180 to -179.875 degrees does not return it. To include these elements, let a query near the meridian extend beyond 180 or -180 degrees (for example, query 179.9 to 180.1 instead of -180 to -179.9). Element order and item data are not changed. Only applicable to geographic (longitude/latitude) coordinates; a dfsu with a projected coordinate system is rejected. For 3D meshes, elements crossing the 180 degree meridian are not supported. Default isfalse. -
Metadata: Provides a dictionary of key-value pairs containing information related to the 3D dataset structure and configuration. It can be used to specify detailed 3D mesh and layering settings that correspond to parameters typically defined in the model setup file (.m3fm). This parameter is only relevant when the ReadFull3D parameter is set to true.
{
"projectId": "<projectId>",
"uploadUrl": "<fileUrl>",
"outputDatasetData": {
"name": "<dataset-name>"
},
"readerName": "DfsuReader",
"writerName": "MDWriter",
"readerParameters": [
{
"name": "AllowedItemNames",
"value": ["Velocity U", "Velocity V"]
},
{
"name": "Metadata",
"value": {
"vertical_mesh_type_overall": "2",
"number_of_layers": "10",
"z_sigma": "30.0",
"vertical_mesh_type ": "2",
}
}
]
}