Skip to content

Conversation

@abradley60
Copy link
Collaborator

No description provided.

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.

Looks good to me. Just minor edits to text for clarity and a query about whether the default in the cli should also be changed.

@click.option(
"--output-crs",
required=False,
default="",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to change the default to be "utm" to support Aman's use-case? Or is it sufficient to just allow "UTM|utm" as a valid option and respond appropriately?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I left blank to align with the rtc_s1 logic of no value meaning default zone, but I can change if clearer for users?

burst_ids=()
resolution=20
output_crs=""
output_crs="UTM"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, I see that you now have this as the default here... in which case, it might be fine to leave the default as None in the cli.

Copy link
Collaborator

@geoscience-aman geoscience-aman 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 the quick turnaround Alex!

# update the burst crs if it has been set
if output_crs and output_crs is not None:
# update the burst crs if it has been set and is not UTM | utm
if output_crs and (output_crs not in [None, "utm", "UTM", ""]):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I recommend if output_crs and (output_crs.lower() != "utm"): because if output_crs already takes care of output_crs being None or an empty string.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think the .lower() logic will raise an error if when integer is passed. I agree that None and "" are already covered so I can remove those

@abradley60 abradley60 merged commit 5a17b2f into main Apr 24, 2025
2 checks passed
@abradley60 abradley60 deleted the feature/deafult_output_crs branch April 24, 2025 02:32
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.

3 participants