mirror of https://github.com/ecmwf/eccodes.git
Testing: big2gribex
This commit is contained in:
parent
6874520bfc
commit
1f335a011e
|
@ -228,6 +228,7 @@ if( HAVE_BUILD_TOOLS )
|
||||||
grib_geo_iter
|
grib_geo_iter
|
||||||
grib_to_json
|
grib_to_json
|
||||||
grib_to_ppm
|
grib_to_ppm
|
||||||
|
big2gribex
|
||||||
grib_sub_area_check
|
grib_sub_area_check
|
||||||
grib_list_keys
|
grib_list_keys
|
||||||
grib_histogram
|
grib_histogram
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/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.
|
||||||
|
#
|
||||||
|
|
||||||
|
. ./include.ctest.sh
|
||||||
|
|
||||||
|
label="big2gribex_test"
|
||||||
|
tempGrib=temp.$label.grib
|
||||||
|
|
||||||
|
if [ ! -x ${tools_dir}/big2gribex ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
${tools_dir}/big2gribex $data_dir/test.grib1 $tempGrib
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
rm -f $tempGrib
|
|
@ -8,18 +8,16 @@
|
||||||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Implementation: big2gribex
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "grib_api.h"
|
#include "grib_api.h"
|
||||||
void usage(char*);
|
|
||||||
|
static void usage(const char* progname)
|
||||||
|
{
|
||||||
|
printf("\nUsage: %s grib_in grib_out\n", progname);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
@ -70,12 +68,5 @@ int main(int argc, char* argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void usage(char* progname)
|
|
||||||
{
|
|
||||||
printf("\nUsage: %s grib_in grib_out\n", progname);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue