Ticket #651: test1.sh

File test1.sh, 2.1 KB (added by Ian Culverwell, 5 years ago)

test1.sh

Line 
1#/usr/bin/ksh
2#
3# Script to rerun rose suite on it-pp-06, to compare against IDL version.
4
5ulimit -S -s unlimited
6
7#IFILE0=data/CASE_07_ref1d.nc
8IFILE0=data/CASE_12_ref1d.nc
9#IFILE0=data/CASE_05_ref1d.nc
10#IFILE0=data/CASE_51_ref1d.nc
11
12MFILE=data/MSIS_coeff.nc
13
14CFILE=data/default_wopt.nml
15
16THINFILE=data/ropp_thin_default.dat
17
18# These two might need commenting out, as they were originally missing from the rose suite version.
19GEOPOT_COEF=data/egm96.dat
20GEOPOT_CORR=data/corrcoef.dat
21
22
23#------------------------------------------------------
24#0. Cntl: Rose
25#------------------------------------------------------
26
27#if false ; then # bypass the control
28
29EXEC=/data/local/idculv/ropp_test_folder_02042019/gfortran/ropp_pp/tools/ropp_pp_wopt_tool
30
31IFILE=$IFILE0
32
33OFILE1=`echo $IFILE0 |sed -es/'.nc'/'_1.1.nc'/`
34
35TFILE=`echo $IFILE0 |sed -es/'.nc'/'_rose.out'/`
36
37echo "$EXEC $IFILE -o $OFILE1 -c $CFILE -f > $TFILE 2>&1"
38 $EXEC $IFILE -o $OFILE1 -c $CFILE -f > $TFILE 2>&1
39
40# Now some messy preparation for invert tool
41ncrename -vBangle_FSI,bangle -ddim_009,dim_lev1b $OFILE1
42cmd="impact=Impact_height_FSI+6378137.0; lat_tp=impact*0.0; lon_tp=impact*0.0; azimuth_tp=impact*0.0; \
43 impact_L1=impact; impact_L2=impact; bangle_L1=bangle; bangle_L2=bangle; \
44 bangle_L1_sigma=impact*0.0; bangle_L2_sigma=impact*0.0; bangle_sigma=impact*0.0; \
45 bangle_L1_qual=impact*0.0; bangle_L2_qual=impact*0.0; bangle_qual=impact*0.0"
46ncap2 -s "$cmd" $OFILE1 -O temp.nc
47ncatted -O -a valid_range,impact,o,d,'-10000000., 10000000.' temp.nc
48
49EXEC=/data/local/idculv/ropp_test_folder_02042019/gfortran/ropp_io/tools/ropp2ropp
50
51OFILE2=`echo $IFILE0 |sed -es/'.nc'/'_2.1.nc'/`
52
53echo "$EXEC temp.nc -o $OFILE2 -d -p $THINFILE >> $TFILE 2>&1"
54 $EXEC temp.nc -o $OFILE2 -d -p $THINFILE >> $TFILE 2>&1
55
56
57# Now pass through invert to generate refracs and bangles
58EXEC=/data/local/idculv/ropp_test_folder_02042019/gfortran/ropp_pp/tools/ropp_pp_invert_tool
59
60OFILE=`echo $IFILE0 |sed -es/'.nc'/'.1.nc'/`
61
62echo "$EXEC $OFILE2 -m MSIS -o $OFILE >> $TFILE 2>&1"
63 $EXEC $OFILE2 -m MSIS -o $OFILE >> $TFILE 2>&1
64
65
66
67#fi # bypass the control