Skip to content

Add analysis mode for Sentinel-1 Level-2 OCN#83

Open
konstntokas wants to merge 3 commits into
mainfrom
konstntokas-xxx-add_sen1_ocn
Open

Add analysis mode for Sentinel-1 Level-2 OCN#83
konstntokas wants to merge 3 commits into
mainfrom
konstntokas-xxx-add_sen1_ocn

Conversation

@konstntokas
Copy link
Copy Markdown
Collaborator

@konstntokas konstntokas commented May 18, 2026

Add support for Sentinel-1 Level-2 OCN analysis mode.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
xarray_eopf/amodes/sentinel1.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% <ø> (ø)
xarray_eopf/version.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@pont-us pont-us left a comment

Choose a reason for hiding this comment

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

I have one nitpicky rephrasing suggestions, and one query about unit correctness. But I don't need to review again once these are attended to, so approving in advance.

Comment thread xarray_eopf/amodes/sentinel1.py Outdated
if resolution is None:
if crs and not crs.is_geographic:
center_lat = (source_gm.xy_bbox[1] + source_gm.xy_bbox[3]) / 2
resolution = resolution_degrees_to_meters(source_gm.xy_res, center_lat)
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.

Shouldn't the resolution in this case be in the units of the output CRS rather than always in metres?

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.

No, in the case the user sets e.g. crs="EPSG:32631" (UTM 31 N) and does not give any resolution, then the resolution is derived from the source_gm. Now the source gridmapping has lat / lon and xy_res in degree, because the geolocation in the product is given in geographic coordinates. Therefore, we need to transform from degrees to meters.

Co-authored-by: Pontus Lurcock <pont@talvi.net>
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.

2 participants