Skip to content

Commit

Permalink
DAS-2293: Add SPL2SMA regression test for smap-l2-gridder (#134)
Browse files Browse the repository at this point in the history
* DAS-2293: Add config to test SPL2SMA

* DAS-2293: Add the reference File for SPL2SMA

* DAS-2293: update changelog
  • Loading branch information
flamingbear authored Feb 6, 2025
1 parent e722114 commit 75d4fbe
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ 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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ 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-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.

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

- Add tests and configuration for harmony-smap-l2-gridder.
Expand Down
3 changes: 3 additions & 0 deletions test/smap-l2-gridder/reference_files/SPL2SMA_reference.nc
Git LFS file not shown
24 changes: 23 additions & 1 deletion test/smap-l2-gridder/smap-l2-gridder_Regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,19 @@
" },\n",
"}\n",
"\n",
"\n",
"spl2sma_slice = {\n",
" \"y-dim\": slice(0, 1000),\n",
" \"x-dim\": slice(9500, 10500),\n",
"}\n",
"\n",
"spl2sma_selector = {\n",
" \"Soil_Moisture_Retrieval_Data\": spl2sma_slice,\n",
" \"Radar_Data\": spl2sma_slice,\n",
" \"Ancillary_Data\": spl2sma_slice,\n",
"}\n",
"\n",
"\n",
"non_production_configuration = {\n",
" 'SPL2SMP_E': {\n",
" 'collection_concept_id': Collection(id='C1268429712-EEDTEST'),\n",
Expand All @@ -170,6 +183,11 @@
" 'granule_id': 'G1268429753-EEDTEST',\n",
" 'selector': spl2smap_selector,\n",
" },\n",
" 'SPL2SMA': {\n",
" 'collection_concept_id': Collection(id='C1268429729-EEDTEST'),\n",
" 'granule_id': 'G1268429743-EEDTEST',\n",
" 'selector': spl2sma_selector,\n",
" },\n",
"}\n",
"\n",
"\n",
Expand All @@ -184,6 +202,11 @@
" 'granule_id': '',\n",
" 'selector': spl2smap_selector,\n",
" },\n",
" 'SPL2SMA': {\n",
" 'collection_concept_id': Collection(id='C1236303826-NSIDC_ECS'),\n",
" 'granule_id': '',\n",
" 'selector': spl2sma_selector,\n",
" },\n",
"}"
]
},
Expand Down Expand Up @@ -241,7 +264,6 @@
"if configuration is not None:\n",
" for collection, test_config in configuration['config'].items():\n",
" with TemporaryDirectory() as tmp_dir:\n",
"\n",
" test_request = Request(\n",
" collection=test_config['collection_concept_id'],\n",
" granule_id=[test_config['granule_id']],\n",
Expand Down

0 comments on commit 75d4fbe

Please sign in to comment.