Changeset 13682 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF
- Timestamp:
- 2020-10-27T17:12:39+01:00 (4 years ago)
- Location:
- NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF
- Files:
-
- 1 added
- 6 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/analyze_output.py
r13676 r13682 17 17 import math 18 18 import numpy as nmp 19 from netCDF4 import Dataset,num2date 20 import matplotlib as mpl 21 mpl.use('Agg') 22 import matplotlib.pyplot as plt 23 import matplotlib.dates as mdates 19 from netCDF4 import Dataset 24 20 25 21 l_t_shift = False ; # because time interp. is set to FALSE into "&namsbc_blk" of NEMO... … … 59 55 if narg==4: 60 56 l_more = ( sys.argv[3] in ['m','M'] ) 57 import matplotlib as mpl 58 mpl.use('Agg') 59 import matplotlib.pyplot as plt 60 61 61 62 62 -
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/launch_sasf.sh
r13676 r13682 15 15 16 16 # Root directory NEMOGCM reference depository where to fetch compiled STATION_ASF nemo.exe + default namelists: 17 NEMO_REF_DIR=" /home/laurent/DEV/NEMO/NEMOGCM_dev_r13648_ASINTER-04_laurent_bulk_ice"17 NEMO_REF_DIR="`dirname ${PWD} | sed -e 's|/tests/STATION_ASF||g'`" ; # that should normally do the trick! 18 18 19 19 # NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe: … … 32 32 i_sea_ice=0 ; # default does not compute fluxes over sea-ice 33 33 # 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"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" 36 36 37 37 … … 57 57 i_si3=0 58 58 FCPP="${SASF_WRK_DIR}/cpp_${CONFIG_BLD}.fcm" 59 if [ ! -f ${FCPP} ]; then echo " Mhhh, we did not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi59 if [ ! -f ${FCPP} ]; then echo " Mhhh, we could not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi 60 60 ca=`cat ${FCPP} | grep 'key_si3'` 61 61 … … 78 78 LIST_OA_ALGOS="ECMWF" ; # list of air-sea algorithms to test 79 79 LIST_IA_ALGOS="LG15 LU12 CSTC" ; # list of air-ice algorithms to test 80 DIR_NL=${NFORC}/ ice ; # where to fetch the namelists from...80 DIR_NL=${NFORC}/oce+ice ; # where to fetch the namelists from... 81 81 else 82 82 # Only OPEN-OCEAN/AIR flux computation … … 96 96 97 97 98 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => did not find directory 'input_data' with input forcing..."; exit; fi 98 CFGS_SHARED="${NEMO_REF_DIR}/cfgs/SHARED" 99 if [ ! -d ${CFGS_SHARED} ]; then echo "PROBLEM!!! => could not find directory ${CFGS_SHARED} !"; exit; fi 100 101 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => could not find directory 'input_data' with input forcing..."; exit; fi 99 102 100 103 cdt_cmpl="`\ls -l ${NEMO_EXE} | cut -d' ' -f 6,7,8`" … … 125 128 ################ 126 129 127 list_xml="iodef.xml file_def_nemo-oce.xml field_def_nemo-oce.xml" 130 list_xml_ref="field_def_nemo-oce.xml domain_def_nemo.xml grid_def_nemo.xml" 131 list_xml_cfg="iodef.xml file_def_nemo-oce.xml" 128 132 fcntxt="context_nemo_OCE.xml" 129 133 if [ ${i_sea_ice} -eq 1 ]; then 130 list_xml+=" file_def_nemo-ice.xml field_def_nemo-ice.xml" 134 list_xml_ref+=" field_def_nemo-ice.xml" 135 list_xml_cfg+=" file_def_nemo-ice.xml" 131 136 fcntxt="context_nemo_OCE+ICE.xml" 132 137 fi … … 137 142 138 143 # All remaining "*.xml" files: 139 for ff in ${list_xml } ; do144 for ff in ${list_xml_cfg} ; do 140 145 if [ ! -f ${SASF_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${SASF_EXPREF} !"; exit; fi 141 146 rsync -avPL ${SASF_EXPREF}/${ff} ${PROD_DIR}/ 142 147 done 143 144 145 # Getting reference/defaults files from reference NEMO distro: 146 rdir="${NEMO_REF_DIR}/cfgs/SHARED" 147 for ff in "domain_def_nemo.xml" "grid_def_nemo.xml"; do 148 if [ ! -f ${rdir}/${ff} ]; then echo " Mhhh, ${ff} not found into ${rdir} !"; exit; fi 149 ln -sf ${rdir}/${ff} ${PROD_DIR}/. 148 for ff in ${list_xml_ref} ; do 149 if [ ! -f ${CFGS_SHARED}/${ff} ]; then echo " Mhhh, ${ff} not found into ${CFGS_SHARED} !"; exit; fi 150 rsync -avPL ${CFGS_SHARED}/${ff} ${PROD_DIR}/ 150 151 done 151 152 … … 186 187 # The namelists: 187 188 rsync -avPL ${SASF_EXPREF}/${DIR_NL}/namelist_${scase}_cfg ${PROD_DIR}/namelist_cfg 188 rsync -avPL ${ SASF_EXPREF}/namelist_ref${PROD_DIR}/namelist_ref189 rsync -avPL ${CFGS_SHARED}/namelist_ref ${PROD_DIR}/namelist_ref 189 190 if [ ${i_sea_ice} -eq 1 ]; then 190 rsync -avPL ${SASF_EXPREF}/namelist_ice_ref ${PROD_DIR}/namelist_ice_ref191 191 rsync -avPL ${SASF_EXPREF}/namelist_ice_cfg ${PROD_DIR}/namelist_ice_cfg 192 rsync -avPL ${CFGS_SHARED}/namelist_ice_ref ${PROD_DIR}/namelist_ice_ref 192 193 fi 193 194 -
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/sbcblk_sanity_check.sh
r13676 r13682 25 25 26 26 # Root directory NEMOGCM reference depository where to fetch compiled STATION_ASF nemo.exe + default namelists: 27 NEMO_REF_DIR=" /home/laurent/DEV/NEMO/NEMOGCM_dev_r13648_ASINTER-04_laurent_bulk_ice"27 NEMO_REF_DIR="`dirname ${PWD} | sed -e 's|/tests/STATION_ASF||g'`" ; # that should normally do the trick! 28 28 29 29 # NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe: … … 41 41 ############################################################################################# 42 42 i_sea_ice=0 ; # default does not compute fluxes over sea-ice 43 NFORC="IDEALIZED" ; i_sea_ice=0 ; FORC="input_output_VALIDATION_IDEALIZED.nc" 43 NFORC="IDEALIZED" ; i_sea_ice=0 ; FORC="input_output_VALIDATION_IDEALIZED.nc" ; # for now the sanity test does not test ice-atmo bulk parameterizations 44 44 45 45 … … 47 47 48 48 #================================================================================ 49 50 # Should the `analyze_output.py` script provide more output ??? 51 cmore="" 52 if [ "$1" != "" ]; then 53 if [ "$1" = "more" ]; then 54 cmore="m" 55 else 56 echo "Only 'more' is accepted as argument for script `basename $0` !" 57 exit 58 fi 59 fi 60 61 49 62 50 63 rm -f SBCBLK.success SBCBLK.fail … … 191 204 192 205 cd ${HERE} 193 python3 ./analyze_output.py ${DATA_IN_DIR}/${FORC} ${PROD_DIR}/output 194 195 206 python3 ./analyze_output.py ${DATA_IN_DIR}/${FORC} ${PROD_DIR}/output ${cmore} 207 208
Note: See TracChangeset
for help on using the changeset viewer.