Skip to content

Support an option to choose a CRS to plot #849

Closed

Description

@kjnam

Proposed new feature or change:

It would be great if plotting routines support other CRS than the default lat-long.

The current plotting code using GeoDataFrame assumes that the CRS is in lat-long. Model data are not always in lat-long, and it is good to keep the original coordinate system in the visualization, though the data coordinate system can be converted into lat-long before plotting.
I think passing a CRS to the plotting routines can provide a way to do this.

Activity

  1. added
    new feature
    on Jul 10, 2024
  2. philipc2 commented on Jul 10, 2024

    @philipc2
    Member

    There's some discussion about this in #840

    Do you have a dataset example that is in a different projection I could use for testing?

  3. kjnam commented on Jul 10, 2024

    @kjnam
    ContributorAuthor

    Thanks for pointing to issue 840. It is very helpful. The issue looks like more about projections of plots, not the CRS of the data.
    I will create a MVCE data for this later.

  4. kjnam commented on Jul 10, 2024

    @kjnam
    ContributorAuthor

    @philipc2 I looked through the codes, and I realized that this is more than just plotting. _read_ugrid assumes the coordinates are in lat and long, so, the variable names are renamed. It appears that uxarray works with a geographic coordinate system mostly, and I see no simple way to use other coordinate systems like UTM with uxarray so far. I guess I need to ponder a bit more about this. Any advice on this will be appreciated.

  5. moved this from 📚 Backlog to ✅ Done in UXarray Developmenton Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new feature

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions