Skip to content

Commit

Permalink
DAS-2294: Add configuration and reference files for spl2smp (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingbear authored Feb 24, 2025
1 parent 9d7cfe9 commit 54f6e5c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ test/sambah/reference_files/var_only.nc4 filter=lfs diff=lfs merge=lfs -text
test/opera-rtc-s1-browse/reference_data/*.png filter=lfs diff=lfs merge=lfs -text
test/hybig/reference_data/**/*.png filter=lfs diff=lfs merge=lfs -text
test/hybig/reference_data/**/*.jpg filter=lfs diff=lfs merge=lfs -text
test/smap-l2-gridder/reference_files/SPL2SMP_E_reference.nc filter=lfs diff=lfs merge=lfs -text
test/smap-l2-gridder/reference_files/SPL2SMAP_reference.nc filter=lfs diff=lfs merge=lfs -text
test/smap-l2-gridder/reference_files/SPL2SMA_reference.nc filter=lfs diff=lfs merge=lfs -text
test/smap-l2-gridder/reference_files/**/*.nc filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ A short description of the changes in this PR...
* [ ] Tests added/updated (if needed) and passing
* [ ] Documentation updated (if needed)
* [ ] CHANGELOG updated with the changes for this PR
* [ ] Service's `version.txt` file changed if appropriate
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ versioning. Rather than a static releases, this repository contains of a number
of regression tests that are each semi-independent. This CHANGELOG file should be used
to document pull requests to this repository.

## 2025-02-19 ([#137](https://github.com/nasa/harmony-regression-tests/pull/137))

- Add configuration for the [SPL2SMP](https://nsidc.org/data/spl2smp/versions/9) collection to harmony-smap-l2-gridder.

## 2025-02-12 ([#135](https://github.com/nasa/harmony-regression-tests/pull/135))

- Added band subsetting test case to subset-band-name tests
- Added Production IDs to geoloco tests.

## 2025-02-05 ([#134](https://github.com/nasa/harmony-regression-tests/pull/134))

- Add configuration for the [SPL2SMA](https://nsidc.org/data/spl2smap/versions/3) collection to harmony-smap-l2-gridder.
- Add configuration for the [SPL2SMA](https://nsidc.org/data/spl2sma/versions/3) collection to harmony-smap-l2-gridder.

## 2025-01-31 ([#130](https://github.com/nasa/harmony-regression-tests/pull/130))

Expand Down
3 changes: 3 additions & 0 deletions test/smap-l2-gridder/reference_files/SPL2SMP_reference.nc
Git LFS file not shown
21 changes: 19 additions & 2 deletions test/smap-l2-gridder/smap-l2-gridder_Regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"\n",
"The next cell organizes the collections and granules to be tested in each environment.\n",
"\n",
"Additional configuration is set for selecting a subset of the output for comparison in the regression. The selector dictionaries have keys into the top level groups of the output dataset and their dictionaries are subsets along the defined dimensions. This allows us to compare small parts of very large datasets."
"Additional selector configuration is set for choosing a subset of the generated output for direct comparison in the regression. The selector dictionaries have keys into the top level groups of the output dataset and their dictionaries are subsets along the defined dimensions. This allows us to compare small parts of very large datasets."
]
},
{
Expand Down Expand Up @@ -171,6 +171,13 @@
" \"Ancillary_Data\": spl2sma_slice,\n",
"}\n",
"\n",
"spl2smp_selector = {\n",
" \"Soil_Moisture_Retrieval_Data\": {\n",
" \"y-dim\": slice(0, 200),\n",
" \"x-dim\": slice(400, 600),\n",
" }\n",
"}\n",
"\n",
"\n",
"non_production_configuration = {\n",
" 'SPL2SMP_E': {\n",
Expand All @@ -188,6 +195,11 @@
" 'granule_id': 'G1268429743-EEDTEST',\n",
" 'selector': spl2sma_selector,\n",
" },\n",
" 'SPL2SMP': {\n",
" 'collection_concept_id': Collection(id='C1268429309-EEDTEST'),\n",
" 'granule_id': 'G1268454418-EEDTEST',\n",
" 'selector': spl2smp_selector,\n",
" },\n",
"}\n",
"\n",
"\n",
Expand All @@ -207,6 +219,11 @@
" 'granule_id': '',\n",
" 'selector': spl2sma_selector,\n",
" },\n",
" 'SPL2SMP': {\n",
" 'collection_concept_id': Collection(id='TBD'),\n",
" 'granule_id': 'TBD',\n",
" 'selector': spl2smp_selector,\n",
" },\n",
"}"
]
},
Expand Down Expand Up @@ -251,7 +268,7 @@
"\n",
"* The cell below loops through the SMAP L2 collections for the configured environment.\n",
"* A request for gridding the L2 data is submitted to Harmony and the results downloaded.\n",
"* Verification compares the results to a previously generated and subsetted reference data file. This comparison is done only on the first 2000 rows and 2000 columns of the downloaded data to save memory usage. \n"
"* Verification compares the results to a previously generated and subsetted reference data file. This comparison is done only on a selection of rows and columns from the downloaded data to save memory usage. \n"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion test/smap-l2-gridder/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.2
0.0.3

0 comments on commit 54f6e5c

Please sign in to comment.