summaryrefslogtreecommitdiff
path: root/Dragon/data/ASSBLY_CASEA_1level_apex_boron.access
blob: 72a00c8870df6f03df3f5b0e937a7730e56d7d2b (plain)
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
#!/bin/sh
if [ $# = 0 ]
   then
   echo "usage: ASSBLY_CASEA_1level_apex_boron.access directory" 1>&2
   exit 1
fi
MACH=`uname -s`
Sysx="`echo $MACH | cut -b -6`"
if [ $Sysx = "CYGWIN" ]; then
   MACH=`uname -o`
elif [ $Sysx = "Darwin" ]; then
   MACH=`uname -sm`
elif [ $Sysx = "SunOS" ]; then
   MACH=`uname -sm`
fi
pos=$1/../../libraries/hdf5
if [ -f "$pos"/ap3lib-xsect-CEA93_CLA99_GV0LUX_N.h5.gz ]
   then
    echo 'gunzipping CLA99CEA93'
    chmod 755 "$pos"
    gunzip "$pos"/ap3lib-xsect-CEA93_CLA99_GV0LUX_N.h5.gz
fi
if [ -f "$pos"/ap3lib-xsect-CEA93_CLA99_GV0LUX_N.h5 ]
   then
    ln -s "$pos"/ap3lib-xsect-CEA93_CLA99_GV0LUX_N.h5 CLA99CEA93
fi
if [ -f "$pos"/ap3lib-autop-1-CEA93_CLA99_GV0LUX_N.h5.gz ]
   then
    echo 'gunzipping CLA99CEA93_SS'
    chmod 755 "$pos"
    gunzip "$pos"/ap3lib-autop-1-CEA93_CLA99_GV0LUX_N.h5.gz
fi
if [ -f "$pos"/ap3lib-autop-1-CEA93_CLA99_GV0LUX_N.h5 ]
   then
    ln -s "$pos"/ap3lib-autop-1-CEA93_CLA99_GV0LUX_N.h5 CLA99CEA93_SS
fi
if [ -f "$pos"/Depletion_Data_CH_STD_CEA93_V10_withYields.h5.gz ]
   then
    echo 'gunzipping CLA99CEA93_EVO'
    chmod 755 "$pos"
    gunzip "$pos"/Depletion_Data_CH_STD_CEA93_V10_withYields.h5.gz
fi
if [ -f "$pos"/Depletion_Data_CH_STD_CEA93_V10_withYields.h5 ]
   then
    ln -s "$pos"/Depletion_Data_CH_STD_CEA93_V10_withYields.h5 CLA99CEA93_EVO
fi
ls -l
echo "ASSBLY_CASEA_1level_apex_boron access script terminated"