Skip to content
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

#1088: Tool to fix already-produced disp s1 iso.xml file in-place in S3 #1090

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

philipjyoon
Copy link
Contributor

Purpose

  • Tool to fix already-produced disp s1 iso.xml file in-place in S3

Proposed Changes

  • New file

Issues

Testing

  • Ran this tool on the PST venue on ~8000 already-produced DISP-S1 iso.xml files and modified them in place in S3. Ran cnm and the products were accepted by ASF.

@philipjyoon philipjyoon marked this pull request as ready for review February 14, 2025 23:33
Comment on lines 59 to 62
# Remove string that starts with <gco:CharacterString>{"algorithm_theoretical_basis_document_id and then ends with </gco:CharacterString>
xml = re.sub(
r'<gco:CharacterString>{"algorithm_theoretical_basis_document_id.*?</gco:CharacterString>',
'87600.0', xml, flags=re.DOTALL)

Choose a reason for hiding this comment

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

I believe the <gco:CharacterString> tag is required still even for float values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch @RKuttruff Just fixed it. Good thing is that the code worked even with that incorrect substitution.

@hhlee445 hhlee445 merged commit 75028ad into develop Feb 18, 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.

3 participants