eccodes/tools/grib_get_data.sh

24 lines
831 B
Bash
Raw Normal View History

2013-03-25 12:04:10 +00:00
#!/bin/sh
set -e
echo "-# To get a latitude, longitude, value list, skipping the missing values(=9999)"
echo "\\verbatim"
echo ">grib_get_data ../data/reduced_gaussian_model_level.grib2"
echo "\\endverbatim"
2016-06-30 08:58:22 +00:00
echo "-# If you want to define your missing value=1111 and to print the string 'missing' in place of it"
2013-03-25 12:04:10 +00:00
echo "\\verbatim"
echo ">grib_get_data -m 1111:missing ../data/reduced_latlon_surface.grib2"
2013-03-25 12:04:10 +00:00
echo "\\endverbatim"
echo "-# If you want to print the value of other keys with the data value list"
echo "\\verbatim"
echo ">grib_get_data -p centre,level,step ../data/reduced_gaussian_model_level.grib2"
echo "\\endverbatim"
echo "-# If you want to control the formatting of the latitudes and longitudes"
echo "\\verbatim"
echo ">grib_get_data -L %12.6f%12.6f ../data/reduced_latlon_surface.grib2"
echo "\\endverbatim"