source: trunk/mesoscale/LMD_MM_MARS/prepare_ini @ 50

Last change on this file since 50 was 14, checked in by aslmd, 14 years ago

spiga@svn-planeto:mineur

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#! /bin/bash
2
3#---------------------------------------#
4# A script to install the preproc tools #
5#---------------------------------------#
6# Author: Aymeric Spiga - November 2008 #
7#---------------------------------------#
8
9
10if [[ "${LMDMOD}" = "" ]]
11then
12    echo "No LMDMOD defined...assuming default folders"
13    LMDMOD=$PWD"/../.."
14fi
15
16
17###############
18tmpdir=$LMDMOD/TMPDIR
19lmdmeso=$LMDMOD/LMD_MM_MARS
20sourceprepmars=$lmdmeso"/SRC/PREP_MARS"
21sourcewps=$lmdmeso"/SRC/WPS"
22###############
23
24echo create tmpdir directories
25mkdir $tmpdir/WPSFEED 2> /dev/null
26mkdir $tmpdir/WRFFEED 2> /dev/null
27#mkdir $tmpdir/WRFFEED/current 2> /dev/null
28mkdir $tmpdir/GCMINI 2> /dev/null
29
30here=$PWD
31\rm -rf $here/PREP_MARS $here/WPS 2> /dev/null
32
33echo link PREP_MARS in $here
34
35mkdir $here/PREP_MARS
36cd $here/PREP_MARS
37ln -sf ${sourceprepmars}/* .
38ln -sf $tmpdir/WPSFEED .
39ln -sf $tmpdir/GCMINI/diagfi.nc input_diagfi.nc
40cd $here
41
42echo prepare WPS in $here
43
44####### done in prepare
45###cd ${sourcewps}
46###cp ${sourcewps}/wps_mars/switch_WPS_Mars ${sourcewps}
47###./switch_WPS_Mars
48
49cd ${here}
50mkdir $here/WPS
51cd ${here}/WPS
52ln -sf ${sourcewps}/compile .
53ln -sf ${sourcewps}/configure .
54ln -sf ${sourcewps}/clean .
55ln -sf ${sourcewps}/arch .
56ln -sf $tmpdir/WPSFEED .
57ln -sf $tmpdir/WRFFEED .
58
59mkdir ${here}/WPS/geogrid
60cd ${here}/WPS/geogrid
61cp -f ${sourcewps}/geogrid/GEOGRID.TBL.ARW GEOGRID.TBL
62cp -f ${sourcewps}/geogrid/Makefile .
63mkdir src
64cd src
65ln -sf ${sourcewps}/geogrid/src/* . 
66cd ${here}/WPS 
67
68mkdir ${here}/WPS/metgrid
69cd ${here}/WPS/metgrid
70cp -f ${sourcewps}/metgrid/METGRID.TBL.ARW METGRID.TBL
71cp -f ${sourcewps}/metgrid/Makefile .
72mkdir src
73cd src
74ln -sf ${sourcewps}/metgrid/src/* .
75cd ${here}/WPS
76
77#
78# examples and plots
79#
80ln -sf ${sourcewps}/wps_mars/out_geo.pro .
81ln -sf ${sourcewps}/wps_mars/namelist.wps* .
82#ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar__define.pro .
83ln -sf ${lmdmeso}/SRC/ARWpost/idl/colorbar.pro .
84ln -sf ${lmdmeso}/SRC/ARWpost/idl/map_latlon.pro .
85
86#
87# link to static data
88#
89ln -sf ${lmdmeso}/WPS_GEOG .
90
91exit
92
93
Note: See TracBrowser for help on using the repository browser.