source: flex_extract.git/run/run.sh @ 0e576fc

dev
Last change on this file since 0e576fc was 0e576fc, checked in by Anne Philipp <anne.philipp@…>, 16 months ago

implemented extraction possibility of EA5 und CERA

  • Property mode set to 100755
File size: 2.3 KB
Line 
1#!/bin/bash
2#
3# @Author: Anne Philipp
4#
5# @Date: October, 4 2018
6#
7# @Description:
8#
9
10
11# -----------------------------------------------------------------
12# AVAILABLE COMMANDLINE ARGUMENTS TO SET
13#
14# THE USER HAS TO SPECIFY THESE PARAMETER
15#
16
17QUEUE=None
18START_DATE='20120908'
19END_DATE=None
20DATE_CHUNK=None
21BASETIME=None
22STEP=None
23LEVELIST=None
24AREA=None
25INPUTDIR='/nas/tmc/Anne/Interpolation/flexextract/flex_extract_v7.1/run/workspace/test3'
26OUTPUTDIR=None
27FLEXPART_ROOT_SCRIPTS=None
28PP_ID=None
29JOB_TEMPLATE='job.temp' 
30CONTROLFILE='CONTROL_EA5' 
31DEBUG=1 
32REQUEST=2
33PUBLIC=0
34
35# -----------------------------------------------------------------
36#
37# AFTER THIS LINE THE USER DOES NOT HAVE TO CHANGE ANYTHING !!!
38#
39# -----------------------------------------------------------------
40
41# PATH TO SUBMISSION SCRIPT
42pyscript=../source/python/submit.py
43
44# INITIALIZE EMPTY PARAMETERLIST
45parameterlist=""
46
47# CHECK FOR MORE PARAMETER
48if [ -n "$START_DATE" ]; then
49  parameterlist+=" --start_date=$START_DATE"
50fi
51if [ -n "$END_DATE" ]; then
52  parameterlist+=" --end_date=$END_DATE"
53fi
54if [ -n "$DATE_CHUNK" ]; then
55  parameterlist+=" --date_chunk=$DATE_CHUNK"
56fi
57if [ -n "$BASETIME" ]; then
58  parameterlist+=" --basetime=$BASETIME"
59fi
60if [ -n "$STEP" ]; then
61  parameterlist+=" --step=$STEP"
62fi
63if [ -n "$LEVELIST" ]; then
64  parameterlist+=" --levelist=$LEVELIST"
65fi
66if [ -n "$AREA" ]; then
67  parameterlist+=" --area=$AREA"
68fi
69if [ -n "$INPUTDIR" ]; then
70  parameterlist+=" --inputdir=$INPUTDIR"
71fi
72if [ -n "$OUTPUTDIR" ]; then
73  parameterlist+=" --outputdir=$OUTPUTDIR"
74fi
75if [ -n "$FLEXPART_ROOT_SCRIPTS" ]; then
76  parameterlist+=" --flexpart_root_scripts=$FLEXPART_ROOT_SCRIPTS"
77fi
78if [ -n "$PP_ID" ]; then
79  parameterlist+=" --ppid=$PP_ID"
80fi
81if [ -n "$JOB_TEMPLATE" ]; then
82  parameterlist+=" --job_template=$JOB_TEMPLATE"
83fi
84if [ -n "$QUEUE" ]; then
85  parameterlist+=" --queue=$QUEUE"
86fi
87if [ -n "$CONTROLFILE" ]; then
88  parameterlist+=" --controlfile=$CONTROLFILE"
89fi
90if [ -n "$DEBUG" ]; then
91  parameterlist+=" --debug=$DEBUG"
92fi
93if [ -n "$REQUEST" ]; then
94  parameterlist+=" --request=$REQUEST"
95fi
96if [ -n "$PUBLIC" ]; then
97  parameterlist+=" --public=$PUBLIC"
98fi
99
100# -----------------------------------------------------------------
101# CALL INSTALLATION SCRIPT WITH DETERMINED COMMANDLINE ARGUMENTS
102
103$pyscript $parameterlist
104
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG