-
Notifications
You must be signed in to change notification settings - Fork 2
STAC update #38
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
STAC update #38
Conversation
abradley60
commented
Apr 3, 2025
- Updating STAC metadata based on first review of compliance
- Still some TODO's which are clearly flagged. Bringing changes in to main and TODO's will get sorted as we progress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, Alex. Generally, this looks good to me, just a few minor questions/comments.
| ) | ||
|
|
||
| # add ceosard stac extension properties | ||
| self.item.properties["ceosard:type"] = "NRB" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have product:type, does that make ceosard:type redundant (or vice-versa)? Or is it expected that a product has both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I did notice this, I think will keep both for now and we can follow up. I think the product:type could be changed to RTC_S1 given the ceosard:type covers the spec
| logger = logging.getLogger(__name__) | ||
|
|
||
| VALID_BASE_CONFIGS = ["S1_RTC.yaml","S1_RTC_STATIC.yaml"] | ||
| VALID_BASE_CONFIGS = ["S1_RTC.yaml", "S1_RTC_STATIC.yaml"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given you've now added this, I think it makes sense to update the type hinting of RTCConfigManager to a Literal to help with type checking. Suggested approach is to define the literal first, then build the constant from it:
import typing
from typing import Literal
BaseConfigType = Literal["S1_RTC.yaml", "S1_RTC_STATIC.yaml"]
VALID_BASE_CONFIGS = typing.get_args(BaseConfigType)Co-authored-by: Caitlin Adams <[email protected]>