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

Using xr.open_dataset() with string for projection parameter produces incorrect results #208

Open
tylere opened this issue Jan 3, 2025 · 1 comment
Assignees
Labels

Comments

@tylere
Copy link
Collaborator

tylere commented Jan 3, 2025

Specifying an EPSG string such as:

xr_ds = xr.open_dataset(
    ...
    engine='ee',
    projection='EPSG:32605',
    ...
)

results in an xarray dataset with an incorrect crs attribute and coordinate dimension names (crs should be 32605 and coordinates should not be named 'lon' and 'lat')

Image

Script to reproduce:
https://colab.research.google.com/gist/tylere/31b05c26e92193faa907b5001da73c91/xee-issue-208.ipynb#scrollTo=gdoIxGl7mQMD

@tylere tylere added bug Something isn't working triage A new issue that needs to be triaged labels Jan 3, 2025
@tylere tylere changed the title Using xr.open_dataset() with string for projection parameter results incorrect results Using xr.open_dataset() with string for projection parameter produces incorrect results Jan 3, 2025
@naschmitz
Copy link
Collaborator

This parameter is also un-documented.

@naschmitz naschmitz added P1 and removed bug Something isn't working triage A new issue that needs to be triaged labels Jan 7, 2025
@naschmitz naschmitz self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants