UXARRAY / uxarray

Xarray extension for unstructured climate and global weather data analysis and visualization.
https://uxarray.readthedocs.io/
Apache License 2.0
155 stars 31 forks source link

Support other coordinate systems #704

Open kjnam opened 7 months ago

kjnam commented 7 months ago

Proposed new feature or change:

Hi, I believe uxarray uses the lat/long coordinate system internally. It would be awesome if uxarray can support different coordinate systems including projected coordinate systems. (There are different lat/long geographical coordinate system as well.) This may be a bit out of scope of uxarray, but it is often convenient to use local coordinate systems and to keep the original coordinate systems for a small domain. Thanks for the great work!

philipc2 commented 7 months ago

Hi @kjnam

This is definitely something that we've considered, especially given some of our visualization efforts.

I'll bring this up during our next group meeting!

kjnam commented 7 months ago

@philipc2 Thanks. 👍 Looking forward to it. Since we use local projected coordinate systems often in our simulations, this is important when we use uxarray plotting routines. Maybe we can start with a flag that prevents clipping and antemeridian with the lat/long assumption.

philipc2 commented 7 months ago

@philipc2 Thanks. 👍 Looking forward to it. Since we use local projected coordinate systems often in our simulations, this is important when we use uxarray plotting routines. Maybe we can start with a flag that prevents clipping and antemeridian with the lat/long assumption.

Would you happen to have a sample grid that I could take a look into?

kjnam commented 7 months ago

@philipc2 This is from a hypothetical case, which does not have a coordinate system; https://cadwr.box.com/s/usbnppoi27036jq8hji7qig4gxinidhc. I guess you can try this.

philipc2 commented 7 months ago

https://cadwr.box.com/s/usbnppoi27036jq8hji7qig4gxinidhc

Thanks! I'll give this a look.