Skip to content

Bug Fix: Finds crs in the datatree meta data#64

Merged
konstntokas merged 2 commits into
mainfrom
konstntokas-063-grid_mapping_sen2_not_found
Nov 17, 2025
Merged

Bug Fix: Finds crs in the datatree meta data#64
konstntokas merged 2 commits into
mainfrom
konstntokas-063-grid_mapping_sen2_not_found

Conversation

@konstntokas
Copy link
Copy Markdown
Collaborator

@konstntokas konstntokas commented Nov 14, 2025

  • Bug fix: CRS information is missing in Sentinel-2 product data variables since
    CPM v2.6.2. CRS is now correctly read from the dataset’s other_metadata
    attributes in the datatree.

@forman I ran ruff, which is the reason why so many files have been changed. Please focus on the files in xarray_eopf.

closes #63

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
xarray_eopf/amode.py 100.00% <100.00%> (ø)
xarray_eopf/amodes/sentinel2.py 100.00% <100.00%> (ø)
xarray_eopf/amodes/sentinel3.py 100.00% <100.00%> (ø)
xarray_eopf/utils.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@konstntokas konstntokas requested a review from forman November 14, 2025 15:29
Copy link
Copy Markdown
Collaborator

@forman forman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Treat as improved. Take my suggestions, if you like.

Comment thread xarray_eopf/amode.py
Args:
datatree: The DataTree containing metadata in its attributes.

Returns:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is actually Return, not Returns.

Suggested change
Returns:
Return:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But Google Style docstrings says Returns, see https://www.geeksforgeeks.org/python/python-docstrings/, or do I miss something here?

Comment thread CHANGES.md Outdated
@@ -1,9 +1,16 @@
## Changes in 0.2.4 (under development)

* Bug fix: CRS information is missing in Sentinel-2 product data variables since
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Bug fix: CRS information is missing in Sentinel-2 product data variables since
* Fix: CRS information is missing in Sentinel-2 product data variables since

If at all it was a bug in the dataset not in the software.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, changed it.

@konstntokas konstntokas force-pushed the konstntokas-063-grid_mapping_sen2_not_found branch from c94699f to 42dd016 Compare November 17, 2025 13:42
@emmanuelmathot
Copy link
Copy Markdown

Reviewing the thread from EOPF-Sample-Service/eopf-sample-data#16, I was somewhat surprised that the updates in the CPM had not been reflected in the Zarr samples service earlier. I suspect this may be due to a communication gap from the re-engineering team regarding the implications of the new release. To improve coordination moving forward, I initiated a discussion on EOPF discourse.

@emmanuelmathot
Copy link
Copy Markdown

@konstntokas konstntokas merged commit 89e4c2f into main Nov 17, 2025
2 checks passed
@konstntokas konstntokas deleted the konstntokas-063-grid_mapping_sen2_not_found branch November 17, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

issue with reading data

3 participants