Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [10.16.1]

### Fixed
- Allow SRG_GSLC and SRG_TIME_SERIES jobs to process Sentinel-1 C and D granules.

## [10.16.0]

### Added
Expand Down
12 changes: 11 additions & 1 deletion apps/api/src/hyp3_api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,17 @@ def check_same_relative_orbits(_, granule_metadata: list[dict]) -> None:
name_split = granule['name'].split('_')
absolute_orbit = name_split[7]
# "Relationship between relative and absolute orbit numbers": https://sentiwiki.copernicus.eu/web/s1-products
offset = 73 if name_split[0] == 'S1A' else 27
mission = name_split[0]
if mission == 'S1A':
offset = 73
elif mission == 'S1B':
offset = 27
elif mission == 'S1C':
offset = 172
elif mission == 'S1D':
offset = 42
else:
raise ValueError(f'Encountered unknown Sentinel-1 mission: {mission}')
relative_orbit = ((int(absolute_orbit) - offset) % 175) + 1
if not previous_relative_orbit:
previous_relative_orbit = relative_orbit
Expand Down
Loading