From abfaec141e5a816b97fd78902c7eee8db6faded2 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 18 Jul 2023 15:03:40 +0100 Subject: [PATCH] ECC-1640: Tools: Deprecate the grib1to2 script --- tests/grib1to2.sh | 11 --------- tools/CMakeLists.txt | 7 ------ tools/grib1to2.in | 59 -------------------------------------------- 3 files changed, 77 deletions(-) delete mode 100755 tools/grib1to2.in diff --git a/tests/grib1to2.sh b/tests/grib1to2.sh index d4b4bdbb3..1ff2dbaad 100755 --- a/tests/grib1to2.sh +++ b/tests/grib1to2.sh @@ -104,14 +104,3 @@ grib_check_key_equals $temp2 stepType,stepRange 'accum 0-240' rm -f $temp1 $temp2 rm -f $output - -#sed "s:toolsdir:${tools_dir}/:" ${tools_dir}/grib1to2.txt > ${tools_dir}/grib1to2.test -#chmod +x ${tools_dir}/grib1to2.test -#${tools_dir}/grib1to2.test -f ${data_dir}/test.grib1 ${data_dir}/test.grib2 -#${tools_dir}/grib_get -p typeOfProcessedData:s,type:s ${data_dir}/test.grib2 > ${data_dir}/typeOfProcessedData.log - -#diff ${data_dir}/typeOfProcessedData.log ${data_dir}/typeOfProcessedData.ok - -#${tools_dir}/grib_compare -Pe ${data_dir}/test.grib1 ${data_dir}/test.grib2 - -#rm -f ${data_dir}/test.grib2 diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index e9b3d4af9..cddce7c33 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -93,13 +93,6 @@ ecbuild_add_executable( TARGET codes_bufr_filter if( ECCODES_INSTALL_EXTRA_TOOLS ) ecbuild_info("ECCODES_INSTALL_EXTRA_TOOLS enabled") - # grib1to2 script needs to be generated before installation - configure_file( grib1to2.in grib1to2 ) - install( FILES ${CMAKE_CURRENT_BINARY_DIR}/grib1to2 - DESTINATION ${INSTALL_BIN_DIR} - PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ - GROUP_EXECUTE GROUP_READ - WORLD_EXECUTE WORLD_READ ) else() ecbuild_info("ECCODES_INSTALL_EXTRA_TOOLS disabled") endif() diff --git a/tools/grib1to2.in b/tools/grib1to2.in deleted file mode 100755 index 77dd45ef4..000000000 --- a/tools/grib1to2.in +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -set -e - -if [ $# -lt 2 ] -then - echo "usage: $0 [-f] in.grib1 out.grib2" - echo "-f convert to grib2 only typeOfLevel='hybrid' and copy other level types as grib1" - exit 1 -fi - -grib_filter=@CMAKE_INSTALL_PREFIX@/bin/grib_filter -rules_filter=rules.filter$$ - -force=0 -out=$2 -in=$1 -while getopts fd:D:t:b:w:e:r:s:n:p: options -do - case $options in - f) force=1 - out=$3 - in=$2 - ;; - esac -done - - -if [ $force = 1 ] -then - - cat >> $rules_filter <> $rules_filter <