UM/MesoscaleModelling: get_start

File get_start, 862 bytes (added by willie, 7 months ago)

Script to get a GRIB start dump on ECMWF

Line 
1#!/bin/ksh
2#
3# Gets a start dump from ECMWF MARS reanalysis archive
4#
5# Usage
6#
7# get_start yyyy mm dd step File
8#
9#where step can be 6/12/18/24 and T+0 is the previous day with a step of 24
10#
11if (( $# != 4 ))
12then
13  print "Usage get_start yyyy mm dd hr"
14  exit 1
15fi
16
17print "MARS_GRIB_API= " $MARS_GRIB_API
18print "MARS_DEBUG = " $MARS_DEBUG
19print "GRIBEX_DEBUG= " $GRIBEX_DEBUG
20
21Yr=$1
22Mon=$2
23Day=$3
24hr=$4
25File=$1$2$3_$4.grib
26
27
28mars <<EOF
29# Skin temperature
30# Surface Pressure
31# Land-sea mask
32# Geopotential
33retrieve,
34time=${hr},
35date=${Yr}-${Mon}-${Day},
36stream=oper,
37levtype=sfc,
38expver=1,
39type=an,
40class=od,
41param=235.128/134.128/172.128/129.128,
42grid=0.25/0.25,
43use=infrequent,
44target=${File}
45
46
47# Temperature
48# Specific Humidity
49# U velocity
50# V velocity
51retrieve,
52levtype=ml,
53param=130.128/133.128/131.128/132.128,
54levelist=all,
55target=${File}
56
57EOF
58
59
60exit 0