Skip to content

Commit

Permalink
Add tests to compare old and new method to produce HEALPix_nested
Browse files Browse the repository at this point in the history
  • Loading branch information
tweska committed Jan 20, 2025
1 parent 73b01c2 commit eccb37d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/multio/action/interpolate-healpix-nested/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,25 @@ ecbuild_add_test(
COMMAND multio-feed
ARGS ${CMAKE_CURRENT_BINARY_DIR}/MARS_reduced_gg.grib --decode --plans=${CMAKE_CURRENT_SOURCE_DIR}/reduced_gg_to_HEALPix_32_nested_original.yaml
)
set_tests_properties(${PREFIX}_original PROPERTIES
FIXTURES_SETUP ${PREFIX}_original
)

ecbuild_add_test(
TARGET ${PREFIX}_direct
TEST_DEPENDS ${PREFIX}_get_data_interpolate ${PREFIX}_get_data_healpix_ring2nest
COMMAND multio-feed
ARGS ${CMAKE_CURRENT_BINARY_DIR}/MARS_reduced_gg.grib --decode --plans=${CMAKE_CURRENT_SOURCE_DIR}/reduced_gg_to_HEALPix_32_nested_direct.yaml
)
set_tests_properties(${PREFIX}_direct PROPERTIES
FIXTURES_SETUP ${PREFIX}_direct
)

ecbuild_add_test(
TARGET ${PREFIX}_compare
COMMAND grib_compare
ARGS MultIO_reduced_gg_to_HEALPix_32_nested_original.grib MultIO_reduced_gg_to_HEALPix_32_nested_direct.grib
)
set_tests_properties(${PREFIX}_compare PROPERTIES
FIXTURES_REQUIRED "${PREFIX}_original;${PREFIX}_direct"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plans:
- name: reduced_gg_to_HEALPix_32_nested_direct
actions:
- type: select
match:
- paramId: 133
- type: interpolate
input: O1280
grid: H32_nested
options:
caching: false
- type: encode
format: grib
template: Reference_HEALPix_32_nested.grib
- type: sink
sinks:
- type: file
append: false
per-server: false
path: MultIO_reduced_gg_to_HEALPix_32_nested_direct.grib

0 comments on commit eccb37d

Please sign in to comment.