eccodes/tests/grib_ecc-1467.sh

48 lines
1.7 KiB
Bash
Raw Normal View History

2022-12-30 15:53:10 +00:00
#!/bin/sh
# (C) Copyright 2005- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#
2024-03-04 20:45:39 +00:00
# ECC-1467: Support data values array decoded as "floats" (single-precision)
2022-12-30 15:53:10 +00:00
. ./include.ctest.sh
2023-03-13 19:57:36 +00:00
# Constant fields
2023-01-30 15:47:48 +00:00
gfiles="constant_field.grib1" # grid_simple, edition=1
gfiles="$gfiles constant_field.grib2" # grid_simple, edition=2
2023-03-13 19:57:36 +00:00
# Grid simple
2023-01-30 15:47:48 +00:00
gfiles="$gfiles sst_globus0083.grib" # grid_simple, edition=1
gfiles="$gfiles reduced_latlon_surface.grib1" # grid_simple, edition=1
gfiles="$gfiles reduced_latlon_surface.grib2" # grid_simple, edition=2
gfiles="$gfiles regular_latlon_surface.grib1" # grid_simple, edition=1
gfiles="$gfiles regular_latlon_surface.grib2" # grid_simple, edition=2
2023-03-13 19:57:36 +00:00
# Spectral complex
2023-01-30 15:47:48 +00:00
gfiles="$gfiles spherical_pressure_level.grib1" # spectral_complex, edition=1
gfiles="$gfiles spherical_pressure_level.grib2" # spectral_complex, edition=2
2023-03-13 19:57:36 +00:00
# Grid complex
2023-01-30 15:47:48 +00:00
#gfiles="$gfiles " # grid_complex, edition=1
gfiles="$gfiles gfs.complex.mvmu.grib2" # grid_complex, edition=2, g22order_packing
2023-03-13 19:57:36 +00:00
# Second order
gfiles="$gfiles lfpw.grib1 gen.grib gen_ext.grib second_ord_rbr.grib1" # grid_second_order, edition=1
2023-01-30 15:47:48 +00:00
#gfiles="$gfiles " # grid_second_order, edition=2
# CCSDS
2022-12-30 15:53:10 +00:00
if [ $HAVE_AEC -eq 1 ]; then
2023-01-30 15:47:48 +00:00
gfiles="$gfiles ccsds.grib2"
2022-12-30 15:53:10 +00:00
fi
for f in $gfiles; do
input=${data_dir}/$f
2023-03-13 19:57:36 +00:00
# ${tools_dir}/grib_ls -w count=1 -p numberOfDataPoints,numberOfCodedValues,numberOfMissing,avg $input
$EXEC ${test_dir}/grib_ecc-1467 $input
2022-12-30 15:53:10 +00:00
done