How to use QGIS to convert mesh data to GeoTIFF: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
| Find and open the tool "Rasterize Mesh Dataset.
| Find and open the tool "Rasterize Mesh Dataset.
| Click on "Run as Batch Process...
| Click on "Run as Batch Process...
| For "Dataset groups", opt for "Select in Available Dataset Groups", and select the desired group(s) for export.
| For "Dataset time", opt for "Add values by expression", and use the following formula: array_foreach(generate_series(1,62),@map_start_time + make_interval(hours:=(hour(@map_interval)*@element)))
| For "Extent", set the appropriate extent.
| For "Dataset groups", in the first row, opt for "Select in Available Dataset Groups", and select the desired group(s) for export.
| For "Dataset groups", click on "Fill down".
| For "Extent", in the first row, set the appropriate extent, and click on "Fill down".
| For "Output coordinate system", in the first row, set the appropriate CRS, and click on "Fill down".
| For "Output raster layer", in the first row, use the "..." button to select a location and name for the exported files.
| In the prompt which follows, opt for "Autofill mode" set to "Fill with numbers".
| Click on "Run" to run the batch.
}}
}}

Revision as of 14:37, 28 June 2023

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", in the first row, opt for "Select in Available Dataset Groups", and select the desired group(s) for export.
  11. For "Dataset groups", click on "Fill down".
  12. For "Extent", in the first row, set the appropriate extent, and click on "Fill down".
  13. For "Output coordinate system", in the first row, set the appropriate CRS, and click on "Fill down".
  14. For "Output raster layer", in the first row, use the "..." button to select a location and name for the exported files.
  15. In the prompt which follows, opt for "Autofill mode" set to "Fill with numbers".
  16. Click on "Run" to run the batch.