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 the CrsTransformation transformation 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.

  • 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",
          }
        }
      ]
    }