Skip to content

Commit

Permalink
Merge pull request #203 from GeorgeGayno-NOAA/test/copygb
Browse files Browse the repository at this point in the history
Add copygb test for NCEP grids 172 and 220.
  • Loading branch information
edwardhartnett authored Jun 23, 2023
2 parents 57100b1 + d815a8e commit 8eb31a2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ gu_copy_test_data(ref_gdaswave.grbindex.grib1.idx)
gu_copy_test_data(ref_gdaswave_2.grib1.idx)
gu_copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000.grib2.idx)
gu_copy_test_data(ref_gdaswave.t00z.wcoast.0p16.f000_2.grib2.idx)
gu_copy_test_data(ref_gfs.landmask.grib1)
gu_copy_test_data(ref_grid_172.landmask.grib1)
gu_copy_test_data(ref_grid_220.landmask.grib1)

# Run these shell tests.
gu_test(run_cnvgrib_tests)
Expand Down
Binary file added tests/data/ref_gfs.landmask.grib1
Binary file not shown.
Binary file added tests/data/ref_grid_172.landmask.grib1
Binary file not shown.
Binary file added tests/data/ref_grid_220.landmask.grib1
Binary file not shown.
10 changes: 9 additions & 1 deletion tests/run_copygb_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
echo ""
echo "*** Running copygb test"

# Copy GRIB2 file.
# Copy GRIB1 file.
../src/copygb/copygb -x data/ref_gdaswave.t00z.wcoast.0p16.f000.grib1 test_gdaswave_2.grib1

# Create an index of the copied file.
Expand All @@ -17,5 +17,13 @@ echo "*** Running copygb test"
# so ignore them.
cmp -i 120 test_gdaswave_2.grib1.idx data/ref_gdaswave_2.grib1.idx

# Interpolate GFS landmask to NCEP grid 172
#../src/copygb/copygb -g172 -x data/ref_gfs.landmask.grib1 172.land.grib1
#cmp 172.land.grib1 data/ref_grid_172.landmask.grib1

# Interpolate GFS landmask to NCEP grid 220
#../src/copygb/copygb -g220 -x data/ref_gfs.landmask.grib1 220.land.grib1
#cmp 220.land.grib1 data/ref_grid_220.landmask.grib1

echo "*** SUCCESS!"
exit 0

0 comments on commit 8eb31a2

Please sign in to comment.