/usr/lib/x86_64-linux-gnu/metview/MarsTiggeWrapper is in metview 4.8.0-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | #!/bin/bash
# **************************** LICENSE START ***********************************
#
# Copyright 2012 ECMWF and INPE. This software is distributed under the terms
# of the Apache License version 2.0. In applying this license, ECMWF does not
# waive the privileges and immunities granted to it by virtue of its status as
# an Intergovernmental Organization or submit itself to any jurisdiction.
#
# ***************************** LICENSE END ************************************
# -----------------------------------------
# ECMWF extras for setting MARS environment
# Note this script runs the Mars module
# unless 'env_only' is specified on the
# command line.
# The first command line argument should be
# either TIGGE or G2, depending on which
# definition/rules files should be used.
# -----------------------------------------
#if [ x$WMO_SITE_NR = x098 ] # only do this at ECMWF
#then
if [ x$1 = xTIGGE ]
then
DEF=MarsTiggeDef
RULES=MarsTiggeRules
export MV_MARS_MODE=TIGGE
elif [ x$1 = xG2 ]
then
DEF=MarsG2Def
RULES=MarsG2Rules
export MV_MARS_MODE=G2
else
echo "$0: First argument should be TIGGE or G2 - it is '$1'"
exit 1
fi
export METAPS=/usr/local/lib/metaps/mars_grib_api
export MARS_HOME=$METAPS
#-- for xtra safety --
unset FDB_SERVER_HOST || true
export MARS_AUTH_FILE=$MARS_HOME/etc/mars.authentication
export MARS_IBM_RULES=$MARS_HOME/chk/ibm.chk
export MARS_LANGUAGE_FILE=$METVIEW_DIR_SHARE/etc/$DEF
export MARS_TEST_FILE=$METVIEW_DIR_SHARE/etc/$RULES
##export MARS_LANGUAGE_FILE=$MARS_HOME/etc/mars.def
##export MARS_TEST_FILE=$MARS_HOME/chk/mars.chk
#-- for Lagrandian coeffiecient files --
export PPDIR=${PPDIR=`$METAPS/bin/ppdir.sh`}
#-- for MARS statistics --
export STAT_PREFIX=metview
. $METAPS/bin/marsstat.sh
#-- MARS home directory for user --
. $METAPS/bin/mars_user_home
#-- how frequent MARS sends warning e-mails --
export MARS_MAIL_FREQUENCY=${MARS_MAIL_FREQUENCY:=86400}
export MARS_DHSBASE_CHECK=$METAPS/chk/dhs.chk
#-- final solution from Manuel 000615/29 --
. $METAPS/bin/mars.environment
#-- Choose interpolation configuration (040913) --
#-- -- moved inside 'mars.environment' (050308) --
#-- config_interp=$($METAPS/bin/select_interpolation_mode)
#-- CONFIG_INTERP=${CONFIG_INTERP:=$config_interp}
#else
# MARS_LANGUAGE_FILE=$METVIEW_DIR_SHARE/etc/MarsDef
# MARS_TEST_FILE=$METVIEW_DIR_SHARE/etc/MarsRules
#fi
if [ x$2 != xenv_only ]
then
$METVIEW_BIN/Mars
fi
|