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

incorrect metadata in xarray generated by get_data() #72

Open
alambare opened this issue Nov 29, 2024 · 2 comments
Open

incorrect metadata in xarray generated by get_data() #72

alambare opened this issue Nov 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@alambare
Copy link
Collaborator

cf: CS-SI/eodag#1385 (comment)

@alambare alambare added the bug Something isn't working label Nov 29, 2024
@amarandon
Copy link
Collaborator

amarandon commented Dec 3, 2024

For the record, I noticed that

  • the time dimension is renamed to band and its values are changed from dates to integers
  • the DataArray returned by eodag-cube is shifted by 180° along the x axis (longitude)

Dataset was obtained with:

search_results = dag.search(
    provider="cop_ads",
    productType="CAMS_EAC4",
    start="2021-01-15",
    end="2021-01-18",
    variable="2m_temperature",
    model_level="1",
    time="00:00",
    format="grib",
)

product = search_results[0]
eodag_da = product.get_data(band=r"\.grib$")
eodag_da[1, 8].plot()

image

xr_da = xr.open_dataarray(path)
xr_da[1, 8].plot()

image

@sbrunato
Copy link
Collaborator

sbrunato commented Dec 4, 2024

related to #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants