Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rosepearson opened this issue Apr 12, 2022 · 3 comments · May be fixed by #51
Closed

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

rosepearson opened this issue Apr 12, 2022 · 3 comments · May be fixed by #51
Milestone

Comments

@rosepearson
Copy link

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:

  • Done always - either from a default, or one of the other two options
  • Done sometimes - i.e if the user specified a CRS an input in the parameter file
  • Done sometimes - i.e. if the input DEM has a defined CRS

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

@rosepearson rosepearson changed the title Allow specification of a default CRS that is written out in the output files Add support for a CRS to be encoded in the output files Apr 12, 2022
@rosepearson
Copy link
Author

rosepearson commented Nov 28, 2022

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.
rosepearson/GeoFabrics#63

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

@CyprienBosserelle CyprienBosserelle linked a pull request Jan 24, 2023 that will close this issue
35 tasks
@CyprienBosserelle CyprienBosserelle added this to the v1.0.0 RC milestone Jan 25, 2023
@CyprienBosserelle
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants