nasa / opera-sds-pge

Observational Products for End-Users from Remote Sensing Analysis (OPERA)
Apache License 2.0
16 stars 6 forks source link

426 integrate ds wx ni sas delivery with current stub pge implementation #433

Closed rjbdev05 closed 6 months ago

rjbdev05 commented 6 months ago

Description

Create the .ci/scripts/dswx_ni/test_dswx_ni.sh script. A copy of the test_dswx_s1.sh script can be used as a template, with all references to "DSWx-S1" changing to "DSWx-NI"

Commit the actual SAS schema for DSWx-NI to src/opera/pge/dswx_ni/schema/dswx_ni_sas_schema.yaml. A copy of the correct schema can be found here

Commit a copy of the algorithm parameters schemas to src/opera/pge/dswx_ni/schema/algorithm_parameters_ni_schema.yaml. A copy of the algorithm parameters schema for DSWx-NI can be found here

Modify the DSWxNIPreProcessorMixin class in dswx_ni_pge.py to be a subclass of DSWxS1PreProcessorMixin from the dswx_s1_pge.py module so it inherits the same input validation as DSWx-S1.

Update .ci/scripts/dswx_ni/build_dswx_ni.sh to add the following lines mkdir -p ${STAGING_DIR}/opera/pge/dswx_s1; cp -r ${WORKSPACE}/src/opera/pge/dswx_s1/dswx_s1_pge.py ${STAGING_DIR}/opera/pge/dswx_s1/ directly after the call to copy_pge_files on line 50

Update the .ci/docker/Dockerfile_dswx_ni to ensure the first line is commented out

Create the .ci/scripts/dswx_ni/test_dswx_ni.sh script which will execute the unit test suite from within a DSWx-NI container. This script should essentially be a copy of .ci/scripts/dswx_s1/test_dswx_s1.sh, but with all references to DSWx-S1 (or dswx_s1) changed to DSWx-NI, dswx_ni etc...

After all the above updates are made, ensure the existing unit test(s) for DSWx-NI still pass, and that the PGE container can be built and tested using the .ci/scripts/build_dswx_ni.sh and .ci/scripts/test_dswx_ni.sh scripts

Affected Issues

Testing