-
Notifications
You must be signed in to change notification settings - Fork 7
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
#348 add disp_s1 iso-metadata #367
Conversation
src/opera/pge/disp_s1/disp_s1_pge.py
Outdated
for use with the ISO metadata Jinja2 template. | ||
|
||
""" | ||
# Find a single representative output DSWx-HLS product, they should all |
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.
DSWx-HLS -> DISP-S1
src/opera/pge/disp_s1/disp_s1_pge.py
Outdated
'ISO_OPERA_ProducerGranuleId': self._core_filename(), | ||
'MetadataProviderAction': "creation", | ||
'GranuleFilename': self._core_filename(), | ||
'ISO_OPERA_ProjectKeywords': ['OPERA', 'JPL', 'DSWx', 'Dynamic', 'Surface', 'Water', 'Extent'], |
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.
Should these particular keywords be related to surface displacement?
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.
Implementation looks good, but the unit test needs a few more checks, and the changes to requirements.txt need to be reverted before merge.
requirements.txt
Outdated
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.
Was this intended for inclusion? I want to keep the versions un-pinned in this file since we install into an existing environment within the SAS container.
@@ -36,7 +39,7 @@ class DispS1PreProcessorMixin(PreProcessorMixin): | |||
def run_preprocessor(self, **kwargs): | |||
""" | |||
Executes the pre-processing steps for DISP-S1 PGE initialization. | |||
The DswxS1PreProcessorMixin version of this class performs all actions | |||
The DispS1PreProcessorMixin version of this class performs all actions | |||
of the base PreProcessorMixin class, and adds an input validation step for | |||
the inputs defined within the RunConfig (TODO). |
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.
The (TODO)
here can be removed
|
||
pge = DispS1Executor(pge_name="DispS1PgeTest", runconfig_path=runconfig_path) | ||
pge.run() | ||
|
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.
This unit test should also testing the following:
- That the .iso.xml file was written to disk with the expected filename
- That the contents of the iso.xml does not contain the phrase "!Not found!"
See the example here for DSWx-HLS: https://github.com/nasa/opera-sds-pge/blob/main/src/opera/test/pge/dswx_hls/test_dswx_hls_pge.py#L132-L141
47057d0
to
93d3be1
Compare
Description
Testing