Skip to content

Commit

Permalink
Add copygb test for NCEP grids 172 and 220.
Browse files Browse the repository at this point in the history
Fixes #202.
  • Loading branch information
GeorgeGayno-NOAA committed Jan 13, 2023
1 parent b24f1ac commit d21990d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
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 d21990d

Please sign in to comment.