CyprienBosserelle / BG_Flood

Numerical model for simulating shallow water hydrodynamics on the GPU using an Adaptive Mesh Refinment type grid. The model was designed with the goal of simulating inundation (River, Storm surge or tsunami). The model uses a Block Uniform Quadtree approach that runs on the GPU but the adaptive/multi-resolution/AMR is being implemented and not yet operational. The core SWE engine and adaptivity has been inspired and taken from St Venant solver from Basilisk and the CUDA GPU memory model has been inspired by the work from Vacondio _et al._2017)
GNU General Public License v3.0
34 stars 15 forks source link

Add support for a CRS to be encoded in the output files #61

Closed rosepearson closed 9 months ago

rosepearson commented 2 years ago

Up to you how you do this, but I think it is important that BG-FLOOD can produce netCDF files with a CRS specified. This could either be:

I'd lean to option 1 (always to it) or option 3 (take the CRS from the DEM)

rosepearson commented 1 year ago

Hi Team @AliceHarang @CyprienBosserelle Here is also the information I pulled together when adding this information to GeoFabrics in a way that you, QGIS and the Python library rioxarray could interoperate. https://github.com/rosepearson/GeoFabrics/issues/63

I know you know this but this issue is becoming urgent now that you are sending your outputs to others for use :)

CyprienBosserelle commented 1 year ago

This below is suggested in Stackexchange

  1. Create a crs variable
  2. Add attribute to crs that describe the coordinate system
  3. use the attribute grdimapping to associate the variables that contain spatial data to attributes defined under crs

https://gis.stackexchange.com/questions/218441/displaying-netcdf-data-with-correct-crs

CyprienBosserelle commented 9 months ago

Thanks Rose. This feature has now been added in v0.9