How to use QGIS to convert mesh data to GeoTIFF

From Tygron Support wiki
Jump to navigation Jump to search

Some software applications, such as D-Hydro, may produce results in a mesh format (.nc). This is a flexible dataformat which can be suitable for data related to theme's such as floodings over large areas, but is not directly importable by the Tygron Platform. The data will need to be transformed to a different format, such as GeoTIFF, to import properly.

These steps describe how to use QGIS to access mesh data, as well as perform a batch export of all timeframes.

How to convert mesh data to GeoTIFF:
  1. Go to Layer → Add Layer → Add Mesh Layer.
  2. Select the ...MAP.nc file which refers to the desired data, and opt to add it.
  3. If the dataset consists of layers for both 1D data and 2D data, add both layers of data.
  4. Optionally, if only a specific extent should be exported/converted, include a dataset with a matching extent for the desired results.
  5. Go to View → Panels → Temporal Controller.
  6. Start "Animated Temporal Navigation".
  7. Go to Processing → Toolbox.
  8. Find and open the tool "Rasterize Mesh Dataset.
  9. Click on "Run as Batch Process...
  10. For "Dataset groups", opt for "Select in Available Dataset Groups", and select the desired group(s) for export.
  11. For "Extent", set the appropriate extent.