issues: 1622197017
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1622197017 | I_kwDOAMm_X85gsMMZ | 7621 | Y-axis flipped when reading data with Xarray | 52061672 | closed | 0 | 9 | 2023-03-13T20:16:33Z | 2023-09-12T15:11:10Z | 2023-09-12T15:11:09Z | NONE | UpdateUpdate on March 15, 2023 First posted on March 13, 2023 DescriptionWhen reading data with Xarray using a rasterio engine, the Y axis is flipped. This happens with a specific dataset, and the summary is as follows. | Data\Engine | NetCDF4 | Rasterio | | ------------- | ------------- | ------------- | | 1. NSIDC output | ✅ | ❌ (Y axis is flipped) | | 2. NASA download | ✅ | ✅ | i.e., The issue happens with SMAP L4 data, pre-processed on the NSIDC server, read with rasterio engine. The issue does not happen with NetCDF4 engine. It did not happen with the one directly downloaded from NASA Earth Data. <del>When reading data with Xarray using both the netcdf4 engine and the rasterio engine, the Y axis is flipped. However, when reading the same data with the netcdf4 package, the issue doesn't seem to be occurring. </del> It's unclear whether the issue is with Xarray or the data itself. DetailsI have created a Jupyter notebook with the details of the issue, including the code used to analyze the data, which is available here Data
The data can be downloaded from the links provided by NASA and NSIDC (the links are specified in the notebook), or from my Google Drive. Environment Information
Installation method
Please let me know if you need any further information or have any suggestions on resolving this issue. I am cross-posting this to the rioxarray repo. Thank you! |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7621/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |