Skip to content

Conversation

@abradley60
Copy link
Collaborator

  • 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.

@abradley60 abradley60 requested a review from caitlinadams April 3, 2025 02:01
Copy link
Collaborator

@caitlinadams caitlinadams left a 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"
Copy link
Collaborator

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?

Copy link
Collaborator Author

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"]
Copy link
Collaborator

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)

@caitlinadams caitlinadams merged commit 9c4851c into main Apr 3, 2025
1 check passed
@caitlinadams caitlinadams deleted the stac_update branch April 3, 2025 21:53
abradley60 pushed a commit that referenced this pull request Apr 10, 2025
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