-
Notifications
You must be signed in to change notification settings - Fork 8
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
Back and forth conversion xugrid - meshkernel does not work for spherical network #177
Comments
This has to do with the fact that all It is also related to Deltares/dfm_tools#661 and #42. If we set the uds crs automatically, we can derive |
Related to: #52 Any code that touches lengths or areas requires an alternative implementation. It shouldn't be hard to support initializing things, but the next question is whether should put up some guard rails. |
With #186 the meshkernel projection is now automatically derived from the uds. It is important to set the crs on the uds however. In the future we will automatically set it in #42 or Deltares/dfm_tools#684 This works:
|
Loading a ugriddataset, converting to a meshkernel object (to apply transformations such as deletion with meshkernel) and converting back to a ugrid dataset does not work for spherical networks.
This probably has to do that in conversion from ugrid to meshkernel, the sperical projection information is lost.
Sample code:
The error is:
ValueError:
is_geographic
mismatch between provided grid (is_geographic=False) and provided crs (EPSG:4326, is_geographic=True)The text was updated successfully, but these errors were encountered: