Changeset 13676 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/launch_sasf.sh
- Timestamp:
- 2020-10-26T17:56:37+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/launch_sasf.sh
r13675 r13676 12 12 13 13 CONFIG="STATION_ASF" ; # general name of the configuration 14 CONFIG_BLD="STATION_ASF " ; # name of config as build in NEMO... (directory inside "tests" actually contains the compiled test-case?)14 CONFIG_BLD="STATION_ASF2" ; # name of config as build in NEMO... (directory inside "tests" actually contains the compiled test-case?) 15 15 16 16 # Root directory NEMOGCM reference depository where to fetch compiled STATION_ASF nemo.exe + default namelists: 17 17 NEMO_REF_DIR="/home/laurent/DEV/NEMO/NEMOGCM_dev_r13648_ASINTER-04_laurent_bulk_ice" 18 NEMO_WRK_DIR="/home/laurent/NEMO/NEMOvdev_r13648_ASINTER-04_laurent_bulk_ice"19 18 20 19 # NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe: 21 SASF_WRK_DIR="${NEMO_WRK_DIR}/tests/${CONFIG_BLD}" 20 SASF_WRK_DIR="${NEMO_REF_DIR}/tests/${CONFIG_BLD}" 21 22 # DATA_IN_DIR => Directory containing sea-surface + atmospheric forcings: 23 DATA_IN_DIR="${NEMO_REF_DIR}/tests/${CONFIG}/input_data" 22 24 23 25 # Directory where to run the simulation: … … 30 32 i_sea_ice=0 ; # default does not compute fluxes over sea-ice 31 33 # 32 NFORC="ERA5_arctic" ; i_sea_ice=1 ; FORC="ERA5_arctic_surface_81N_36p75E_1h" ; # string sufficient to copy relevant files as in "*${FORC}*.nc" 33 34 #NFORC="PAPA" ; FORC="Station_PAPA_50N-145W" ; # string sufficient to copy relevant files as in "*${FORC}*.nc" 34 #NFORC="ERA5_arctic" ; i_sea_ice=1 ; FORC="ERA5_arctic_surface_81N_36p75E_1h" ; # string sufficient to copy relevant files as in "*${FORC}*.nc" 35 NFORC="PAPA" ; FORC="Station_PAPA_50N-145W" ; # string sufficient to copy relevant files as in "*${FORC}*.nc" 35 36 36 37 … … 40 41 41 42 #================================================================================ 43 44 if [ "`which ncks`" = "" ]; then 45 echo 46 echo "WARNING: you do not seem to have NCO installed here... You should!" 47 echo " => anyway! will do without, output fields will remaine 3x3 in space :( " 48 echo 49 sleep 4 50 fi 51 42 52 HERE=`pwd` 43 53 … … 68 78 LIST_OA_ALGOS="ECMWF" ; # list of air-sea algorithms to test 69 79 LIST_IA_ALGOS="LG15 LU12 CSTC" ; # list of air-ice algorithms to test 70 DIR_NL=${NFORC}/ice ; # where to getthe namelists from...80 DIR_NL=${NFORC}/ice ; # where to fetch the namelists from... 71 81 else 72 82 # Only OPEN-OCEAN/AIR flux computation 73 LIST_OA_ALGOS="NCAR ECMWF " ; # "NCAR ECMWF COARE3p6"; do; # list of air-sea algorithms to test83 LIST_OA_ALGOS="NCAR ECMWF COARE3p6 ANDREAS"; # list of air-sea algorithms to test 74 84 LIST_IA_ALGOS="" 75 DIR_NL=${NFORC}/oce ; # where to getthe namelists from...85 DIR_NL=${NFORC}/oce ; # where to fetch the namelists from... 76 86 fi 77 87 if [ ! -d ${DIR_NL} ]; then echo " Mhhh, seems like forcing ${NFORC} is not meant to be used with sea-ice/air flux computation !"; exit; fi … … 86 96 87 97 88 # DATA_IN_DIR => Directory containing sea-surface + atmospheric forcings89 # (get it there https://drive.google.com/file/d/1MxNvjhRHmMrL54y6RX7WIaM9-LGl--ZP/):90 if [ `hostname` = "merlat" ]; then91 DATA_IN_DIR="/MEDIA/data/STATION_ASF/input_data"92 elif [ `hostname` = "luitel" ]; then93 DATA_IN_DIR="/data/gcm_setup/STATION_ASF/input_data"94 elif [ `hostname` = "ige-meom-cal1" ]; then95 DATA_IN_DIR="/mnt/meom/workdir/brodeau/STATION_ASF/input_data"96 elif [ `hostname` = "salvelinus" ]; then97 DATA_IN_DIR="/opt/data/STATION_ASF/input_data"98 else99 echo "Boo!"; exit100 fi101 98 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => did not find directory 'input_data' with input forcing..."; exit; fi 102 99 … … 164 161 if [ "${LIST_IA_ALGOS}" = "" ]; then LIST_IA_ALGOS="none"; fi 165 162 166 echo " {LIST_OA_ALGOS} = ${LIST_OA_ALGOS} !" 167 echo " {LIST_IA_ALGOS} = ${LIST_IA_ALGOS} !" 163 echo 168 164 169 165 for OA_A in ${LIST_OA_ALGOS}; do 170 166 for IA_A in ${LIST_IA_ALGOS}; do 171 167 168 echo 172 169 CASE="${OA_A}" 173 170 if [ ${i_sea_ice} -eq 1 ] && [ "${IA_A}" != "none" ]; then CASE="${OA_A}-${IA_A}"; fi 174 171 175 172 echo ; echo 176 echo "==================================== "177 echo " Going for ${CASE} experiment"178 echo "==================================== "173 echo "=======================================================================" 174 echo " Going for experiment: ${CASE} bulk param. with ${NFORC} forcing " 175 echo "=======================================================================" 179 176 echo 180 177 … … 204 201 # Moving output files: 205 202 mkdir -p output 206 mv -f ${CONFIG}-${CASE}_ *_grid*.nc output/207 if [ ${i_sea_ice} -eq 1 ]; then mv -f ${CONFIG}-${CASE}_ *_icemod.nc output/; fi203 mv -f ${CONFIG}-${CASE}_${NFORC}_*_grid*.nc output/ 204 if [ ${i_sea_ice} -eq 1 ]; then mv -f ${CONFIG}-${CASE}_${NFORC}_*_icemod.nc output/; fi 208 205 209 206 # Saving logs: … … 213 210 # Making 3x3 to 1 ! 214 211 cd output/ 215 mkdir -p 3x3 216 list=`\ls ${CONFIG}*${CASE}*.nc | grep -v '_restart_'` 212 list=`\ls ${CONFIG}*${CASE}_${NFORC}_*.nc | grep -v '_restart_'| grep -v '_1p.nc'` 217 213 for ff in ${list}; do 218 214 echo 219 fn=`echo ${ff} | sed -e "s|.nc|_${NFORC}_1p.nc|g"` 220 fb=`echo ${ff} | sed -e "s|.nc|_${NFORC}.nc|g"` 215 fn=`echo ${ff} | sed -e "s|.nc|_1p.nc|g"` 221 216 CMD="ncks -O -d x,1 -d y,1 ${ff} -o ${fn}" 222 217 echo " *** ${CMD}"; ${CMD} 223 mv -f ${ff} 3x3/${fb}224 218 echo 225 219 done
Note: See TracChangeset
for help on using the changeset viewer.