#-Q- curie ###################### #-Q- curie ## CURIE TGCC/CEA ## #-Q- curie ###################### #-Q- curie #MSUB -r SE # Nom du job #-Q- curie #MSUB -o SE.out_%I #-Q- curie #MSUB -e SE.out_%I #-Q- curie #MSUB -n 1 # Reservation du processus #-Q- curie #MSUB -T 36000 # Limite de temps elapsed du job #-Q- curie #MSUB -q ::default_node:: #-Q- curie #MSUB -c ::default_core:: #-Q- curie #MSUB -Q normal #-Q- curie #MSUB -A ::default_project:: #-Q- curie set +x #-Q- irene ###################### #-Q- irene ## IRENE TGCC/CEA ## #-Q- irene ###################### #-Q- irene #MSUB -r SE # Job name #-Q- irene #MSUB -o SE.out_%I #-Q- irene #MSUB -e SE.out_%I #-Q- irene #MSUB -n 1 #-Q- irene #MSUB -T 36000 # Maximum elapsed time #-Q- irene #MSUB -q ::default_node:: #-Q- irene #MSUB -c ::default_core:: #-Q- irene #MSUB -Q normal #-Q- irene #MSUB -A ::default_post_project:: #-Q- irene #MSUB -m store,work,scratch #-Q- irene set +x #-Q- irene-amd ###################### #-Q- irene-amd ## IRENE TGCC/CEA ## #-Q- irene-amd ###################### #-Q- irene-amd #MSUB -r SE # Job name #-Q- irene-amd #MSUB -o SE.out_%I #-Q- irene-amd #MSUB -e SE.out_%I #-Q- irene-amd #MSUB -n 1 # Number of cores #-Q- irene-amd #MSUB -T 36000 # Maximum elapsed time #-Q- irene-amd #MSUB -q ::default_node:: #-Q- irene-amd #MSUB -c ::default_core:: #-Q- irene-amd #MSUB -Q normal #-Q- irene-amd #MSUB -A ::default_post_project:: #-Q- irene-amd #MSUB -m store,work,scratch #-Q- irene-amd set +x #-Q- jeanzay #!/bin/ksh #-Q- jeanzay ###################### #-Q- jeanzay ## JEANZAY IDRIS ## #-Q- jeanzay ###################### #-Q- jeanzay #SBATCH --job-name=SE # Job Name #-Q- jeanzay #SBATCH --output=SE.out_%I # standard output #-Q- jeanzay #SBATCH --error=SE.out_%I # error output #-Q- jeanzay #SBATCH -N 1 # Number of core #-Q- jeanzay #SBATCH --partition=prepost # Post-processing partition #-Q- jeanzay #SBATCH --time=10:00:00 # Wall clock limit (seconds) #-Q- jeanzay #SBATCH --account ::default_project::@cpu #-Q- jeanzay set +x #-Q- ada #!/bin/ksh #-Q- ada ####################### #-Q- ada ## ADA IDRIS ## #-Q- ada ####################### #-Q- ada # @ job_type = mpich #-Q- ada # @ requirements = (Feature == "prepost") #-Q- ada # Temps Elapsed max. d'une requete hh:mm:ss #-Q- ada # @ wall_clock_limit = 10:00:00 #-Q- ada # Memory required for ncrcat #-Q- ada # @ as_limit = 30Gb #-Q- ada # Nom du travail LoadLeveler #-Q- ada # @ job_name = SE #-Q- ada # Fichier de sortie standard du travail #-Q- ada # @ output = $(job_name).$(jobid) #-Q- ada # Fichier de sortie d'erreur du travail #-Q- ada # @ error = $(job_name).$(jobid) #-Q- ada # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) #-Q- ada # @ notification = error #-Q- ada # @ environment = $DEBUG_debug ; $BigBrother ; $postProcessingStopLevel ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $POST_DIR ; $Script_Post_Output ; $MASTER ; $DateBegin ; $PeriodDateEnd ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; wall_clock_limit=$(wall_clock_limit) #-Q- ada # @ queue #-Q- obelix ###################### #-Q- obelix ## OBELIX LSCE ## #-Q- obelix ###################### #-Q- obelix #PBS -N SE #-Q- obelix #PBS -m a #-Q- obelix #PBS -j oe #-Q- obelix #PBS -q medium #-Q- obelix #PBS -o SE.$$ #-Q- obelix #PBS -S /bin/ksh #-Q- mesoipsl #!/bin/ksh #-Q- mesoipsl ###################### #-Q- mesoipsl ## MESO ESPRI IPSL ## #-Q- mesoipsl ###################### #-Q- mesoipsl #SBATCH --job-name=TS # Job Name #-Q- mesoipsl #SBATCH --output=TS.out_%I # standard output #-Q- mesoipsl #SBATCH --error=TS.out_%I # error output #-Q- mesoipsl #SBATCH -N 1 # Number of core #-Q- mesoipsl #SBATCH --time=10:00:00 # Wall clock limit (seconds) #-Q- ifort_CICLAD ###################### #-Q- ifort_CICLAD ## CICLAD IPSL ## #-Q- ifort_CICLAD ###################### #-Q- ifort_CICLAD #PBS -N SE #-Q- ifort_CICLAD #PBS -m a #-Q- ifort_CICLAD #PBS -j oe #-Q- ifort_CICLAD ###PBS -q h12 # Queue for 12 hours at ciclad only #-Q- ifort_CICLAD #PBS -S /bin/ksh #-Q- default #!/bin/ksh #-Q- default ################## #-Q- default ## DEFAULT HOST ## #-Q- default ################## #************************************************************** # Author: Sebastien Denvil # Contact: Sebastien.Denvil__at__ipsl.jussieu.fr # $Revision:: $ Revision of last commit # $Author:: $ Author of last commit # $Date:: $ Date of last commit # IPSL (2006) # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC # #************************************************************** #set -eu #set -vx date #-Q- ada export OMP_NUM_THREADS=1 #D- Task type DO NOT CHANGE (computing, post-processing or checking) TaskType=post-processing ######################################################################## #D- Flag to determine if this job in a standalone mode #D- Default : value from AA_job if any StandAlone=${StandAlone:=true} #D- Path to libIGCM #D- Default : value from AA_job if any libIGCM=${libIGCM:=::modipsl::/libIGCM} #D- Flag to determine if rebuild process has been performed asynchronously #D- Possible value true or false. #D- If true raw files has allready been patched by rebuild job #D- If false create_ts will patch the raw files #D- Default : Value from AA_job if any. Usefull in StandAlone case. RebuildFrequency=${RebuildFrequency:=true} #D- Flag to determine atlas job's output directory #D- Default : value from libIGCM_post.ksh if any POST_DIR=${POST_DIR:=${PBS_O_WORKDIR:=$(pwd)}} #D- Increased verbosity (1, 2, 3) #D- Default : value from AA_job if any Verbosity=${Verbosity:=3} #D- Low level debug : to bypass lib test checks and stack construction #D- Default : value from AA_job if any DEBUG_debug=${DEBUG_debug:=false} #D- TEMPORARY Flag to determine atmospheric resolution #D- Default : value from atmospheric driver if any RESOL_ATM=${RESOL_ATM:=ALL} #D- Flag to determine surface resolution #D- Default : value from surface driver if any RESOL_SRF=ALL #D- Flag to determine surface resolution #D- Default : value from surface driver if any RESOL_SBG=ALL #D- TEMPORARY Flag to determine ocean resolution #D- Default : value from ocean driver if any RESOL_OCE=${RESOL_OCE:=ORCA2} #D- TEMPORARY Flag to determine ice resolution #D- Default : value from ice driver if any RESOL_ICE=${RESOL_OCE:=ORCA2} #D- TEMPORARY Flag to determine marine biogeochemistry resolution #D- Default : value from ice driver if any RESOL_MBG=${RESOL_OCE:=ORCA2} ######################################################################## . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh . ${libIGCM}/libIGCM_card/libIGCM_card.ksh . ${libIGCM}/libIGCM_date/libIGCM_date.ksh #------- . ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh . ${libIGCM}/libIGCM_config/libIGCM_config.ksh #------- IGCM_sys_MkdirWork ${RUN_DIR_PATH} IGCM_sys_Cd ${RUN_DIR_PATH} #------- ( ${DEBUG_debug} ) && IGCM_debug_Check ( ${DEBUG_debug} ) && IGCM_card_Check ( ${DEBUG_debug} ) && IGCM_date_Check ######################################################################## #set -vx # ------------------------------------------------------------------ # Test if all was right before proceeding further # ------------------------------------------------------------------ IGCM_debug_Verif_Exit if [ ${StandAlone} = true ] ; then CARD_DIR=${SUBMIT_DIR} else CARD_DIR=${RUN_DIR_PATH} IGCM_sys_Get_Master ${SUBMIT_DIR}/config.card ${RUN_DIR_PATH} IGCM_sys_Get_Master ${SUBMIT_DIR}/run.card ${RUN_DIR_PATH} IGCM_sys_Get_Master ${SUBMIT_DIR}/COMP ${RUN_DIR_PATH} IGCM_sys_Get_Master ${SUBMIT_DIR}/POST ${RUN_DIR_PATH} fi #================================== # First of all # # Read libIGCM compatibility version in config.card # Read UserChoices section # Read Ensemble section # Read Post section # Define all netcdf output directories #================================== IGCM_config_CommonConfiguration ${CARD_DIR}/config.card # ------------------------------------------------------------------ # Activate BigBrother so as to supervise this job # ------------------------------------------------------------------ IGCM_debug_BigBro_Initialize #================================== # Define default value to keep compatibility with previous card: means before changes due to TGCC if [ X${PackDefault} = Xtrue ] ; then [ X${config_Post_PackFrequency} = X ] && config_Post_PackFrequency=${config_Post_RebuildFrequency} else config_Post_PackFrequency=NONE fi #================================== # If pack is active then PackFrequency overule the config_UserChoices_PeriodLength if ( [ ! X${config_Post_PackFrequency} = X${NULL_STR} ] && [ ! X${config_Post_PackFrequency} = XNONE ] ) ; then config_UserChoices_PeriodLength=${config_Post_PackFrequency} fi #================================== # Read ListOfComponents section: IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card ListOfComponents #================================== # Read SeasonalFrequency: IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post SeasonalFrequency # # Determine period for seasonnal average. Default : value from AA_job if any # DateBegin=${DateBegin:=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )} # PeriodDateEnd=${PeriodDateEnd:=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} )} # freq=$( echo ${config_Post_SeasonalFrequency} | sed -e "s/[yY]//" ) # an_fin=$(( $( IGCM_date_ConvertGregorianDateToJulian ${PeriodDateEnd} ) / 1000 )) an_deb=$( IGCM_date_YearDigit $(( an_fin - freq + 1 )) ) an_fin=$( IGCM_date_YearDigit ${an_fin} ) # # For each component selected determine which files need post-processing # for comp in ${config_ListOfComponents[*]} ; do # IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp} eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 # card=${CARD_DIR}/COMP/${compname}.card IGCM_card_DefineArrayFromOption ${card} OutputFiles List # ListFilesName=${compname}_OutputFiles_List eval FileName0=\${${ListFilesName}[0]} > /dev/null 2>&1 # if [ X${FileName0} != X${NULL_STR} ] ; then # # INITIALISATION # eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 typeset i=2 # until [ $i -gt $NbFiles ]; do # eval flag_post=\${${ListFilesName}[$i]} > /dev/null 2>&1 # if [ X${flag_post} != XNONE ] ; then # # Check if seasonal is required for this file # IGCM_card_DefineArrayFromSection ${card} ${flag_post} # # Seasonal case : If option Seasonal is not found (old cards) put SEASONAL ON by default # # variable option allready typeset above for option in $( eval echo \${${compname}_${flag_post}[*]} ) ; do if [ ${option} = Seasonal ] ; then FoundSeasonal=true IGCM_card_DefineVariableFromOption ${card} ${flag_post} Seasonal fi done # if [ ! X${FoundSeasonal} = Xtrue ] ; then eval ${compname}_${flag_post}_Seasonal=ON fi # if [ ! X$( eval echo \${${compname}_${flag_post}_Seasonal} ) = XON ] ; then (( i=i+3 )) continue fi # # CREATE LIST # FILE=$( echo ${flag_post} | awk "-FPost_" '{print $2}' ) # DIRECTORY=${R_SAVE}/${comp}/Analyse/SE # TestedFile=${config_UserChoices_JobName}_SE_${an_deb}_${an_fin}_${FILE}.nc # IGCM_sys_TestFileArchive ${DIRECTORY}/${TestedFile} if [ ! $? = 0 ] ; then eval set +A LISTE_FILE_${comp} \$\{LISTE_FILE_${comp}[*]} ${FILE} if [ ! ${RebuildFrequency} = true ] ; then IGCM_card_DefineArrayFromOption ${card} Post_${FILE} Patches eval set +A LISTE_PATCHES_${FILE} \$\{${compname}_Post_${FILE}_Patches[*]} if [ X$( eval echo \${LISTE_PATCHES_${FILE}[0]} ) != X${NULL_STR} ]; then for Patch in $( eval echo \${LISTE_PATCHES_${FILE}[*]} ); do if [ Xload${Patch} != X ] ; then . ${libIGCM}/libIGCM_post/IGCM_${Patch}.ksh eval load${Patch}=loaded fi done fi fi fi fi (( i=i+3 )) done # until [ $i -eq $NbFiles ] fi done # for comp for comp in ${config_ListOfComponents[*]} ; do # eval R_OUT_${comp}=${R_SAVE}/${comp} # i=0 for file in $( eval echo \${LISTE_FILE_${comp}[*]} ); do # # Determine in which output can we find file # IE : Output/MO or Output/DA or ... # FlagDir=$( echo ${file} | awk -F "_" '{print $1}' ) case ${FlagDir} in 1Y) FreqDir=YE ;; 1M) FreqDir=MO ;; 5D|1D) FreqDir=DA ;; HF) FreqDir=HF ;; 3H) FreqDir=HF ;; INS) FreqDir=INS ;; esac # RESULT_SE=${config_UserChoices_JobName}_SE_${an_deb}_${an_fin}_${file}.nc # Do not redoo an existing SE IGCM_sys_TestFileArchive ${R_SAVE}/${comp}/Analyse/SE/${RESULT_SE} if [ $? = 0 ] ; then continue fi # eval file_path=\${R_OUT_${comp}}/Output/${FreqDir}/ # case ${config_UserChoices_PeriodLength} in # For Yearly simulation : *Y|*y) PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | sed -e 's/[yY]//' ) (( an = an_deb )) # Initialize array unset liste_file_se unset liste_file_se_tmp while [ ${an} -le ${an_fin} ] ; do # an4=$(printf "%04i\n" ${an} ) # diy=$( IGCM_date_DaysInCurrentPeriod ${an4}0101 ${config_UserChoices_PeriodLength} ) afin=$( IGCM_date_AddDaysToGregorianDate ${an4}0101 $(( diy - 1 )) ) # date=${an4}0101_${afin} # liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc (( an = an + ${PeriodLengthInYears} )) done # IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH} IGCM_debug_Verif_Exit # Apply IGCM_Patch if needed if [ ! ${RebuildFrequency} = true ] ; then if [ X$( eval echo \${LISTE_PATCHES_${file}[0]} ) != X${NULL_STR} ]; then for file_t in $( eval echo ${liste_file_se_tmp[*]} ); do for Patch in $( eval echo \${LISTE_PATCHES_${file}[*]} ); do IGCM_${Patch} ${file_t} done done fi fi # Search of common list of variables to be treated nbfile=0 for file_common_var in ${liste_file_se_tmp[*]} ; do ncdump -h ${file_common_var} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> tmpfile_ncra (( nbfile = nbfile + 1 )) done list_var_final_ncra=`cat tmpfile_ncra | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','` IGCM_sys_Rm tmpfile_ncra # detect time counter : time or time_counter ie unlimited variable var_unlim=$(ncdump -h ${liste_file_se_tmp[0]}|grep UNLIMITED|awk '{print $1}') for mois in 01 02 03 04 05 06 07 08 09 10 11 12 ; do # (( nb = ${mois} - 1 )) # OUT_SE[${nb}]=${config_UserChoices_JobName}_SE${mois}_${an_deb}_${an_fin}_${file}.nc IGCM_sys_ncra -O -v ${list_var_final_ncra} -d ${var_unlim},${nb},,12 ${liste_file_se_tmp[*]} ${OUT_SE[${nb}]} done IGCM_sys_Rm ${liste_file_se_tmp[*]} ;; # For Monthly simulation : 1M|1m) for mois in 01 02 03 04 05 06 07 08 09 10 11 12 ; do # (( nb = ${mois} - 1 )) # OUT_SE[${nb}]=${config_UserChoices_JobName}_SE${mois}_${an_deb}_${an_fin}_${file}.nc # (( an = an_deb )) # Initialize array unset liste_file_se unset liste_file_se_tmp while [ ${an} -le ${an_fin} ] ; do moisL=$( IGCM_date_DaysInMonth ${an} ${mois} ) # an4=$(printf "%04i\n" ${an} ) # date=${an4}${mois}01_${an4}${mois}${moisL} # liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc (( an = an + 1 )) done # IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH} IGCM_debug_Verif_Exit # Apply IGCM_Patch if needed if [ ! ${RebuildFrequency} = true ] ; then if [ X$( eval echo \${LISTE_PATCHES_${file}[0]} ) != X${NULL_STR} ]; then for file_t in $( eval echo ${liste_file_se_tmp[*]} ); do for Patch in $( eval echo \${LISTE_PATCHES_${file}[*]} ); do IGCM_${Patch} ${file_t} done done fi fi # Search of common list of variables to be treated nbfile=0 for file_common_var in ${liste_file_se_tmp[*]} ; do ncdump -h ${file_common_var} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> tmpfile_ncra (( nbfile = nbfile + 1 )) done list_var_final_ncra=`cat tmpfile_ncra | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','` IGCM_sys_Rm tmpfile_ncra IGCM_sys_ncra -O -v ${list_var_final_ncra} ${liste_file_se_tmp[*]} ${OUT_SE[${nb}]} IGCM_sys_Rm ${liste_file_se_tmp[*]} done ;; *D|*d) for mois in 01 02 03 04 05 06 07 08 09 10 11 12 ; do # (( nb = ${mois} - 1 )) # OUT_SE[${nb}]=${config_UserChoices_JobName}_SE${mois}_${an_deb}_${an_fin}_${file}.nc # (( an = an_deb )) # Initialize array unset liste_file_se unset liste_file_se_tmp while [ ${an} -le ${an_fin} ] ; do moisL=$( IGCM_date_DaysInMonth ${an} ${mois} ) # an4=$(printf "%04i\n" ${an} ) # length_d=$(( ${config_UserChoices_PeriodLength} - 1 )) # for one day if [ ${length_d} -eq 1 ] ; then (( length_d = 0 )) fi (( day = 1 )) while [ ${day} -le ${moisL} ] ; do day2=$(printf "%02i\n" ${day} ) day_beg=${an4}${mois}${day2} day_end=$( IGCM_date_AddDaysToGregorianDate ${day_beg} ${length_d} ) date=${an4}${mois}${day_beg}_${an4}${mois}${day_end} # liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_${date}_${file}.nc liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_${date}_${file}.nc (( day = day + 1 )) done (( an = an + 1 )) done # IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH} IGCM_debug_Verif_Exit # Apply IGCM_Patch if needed if [ ! ${RebuildFrequency} = true ] ; then if [ X$( eval echo \${LISTE_PATCHES_${file}[0]} ) != X${NULL_STR} ]; then for file_t in $( eval echo ${liste_file_se_tmp[*]} ); do for Patch in $( eval echo \${LISTE_PATCHES_${file}[*]} ); do IGCM_${Patch} ${file_t} done done fi fi # Search of common list of variables to be treated nbfile=0 for file_common_var in ${liste_file_se_tmp[*]} ; do ncdump -h ${file_common_var} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> tmpfile_ncra (( nbfile = nbfile + 1 )) done list_var_final_ncra=`cat tmpfile_ncra | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','` IGCM_sys_Rm tmpfile_ncra IGCM_sys_ncra -O -v ${list_var_final_ncra} ${liste_file_se_tmp[*]} ${OUT_SE[${nb}]} IGCM_sys_Rm ${liste_file_se_tmp[*]} done ;; esac # # Search of common list of variables to be treated nbfile=0 for file_common_var in ${OUT_SE[*]} ; do ncdump -h ${file_common_var} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> tmpfile_ncrcat (( nbfile = nbfile + 1 )) done list_var_final_ncrcat=`cat tmpfile_ncrcat | sort | uniq -c | grep -v ^time_ | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','` IGCM_sys_Rm tmpfile_ncrcat IGCM_sys_ncrcat -O -v ${list_var_final_ncrcat} ${OUT_SE[*]} ${RESULT_SE} # IGCM_sys_Rm ${OUT_SE[*]} # # detect time counter : time or time_counter ie unlimited variable var_unlim=$( ncdump -h ${RESULT_SE} | grep UNLIMITED | cut -d ' ' -f 1 | sed -e 's/^[[:space:]]*//' ) # Put correct climatological axis following calendar case ${config_UserChoices_CalendarType} in 360d|360_day) # 360 days ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15, 45, 75, 105, 135, 165, 195, 225, 255, 285, 315, 345.} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 30, 30, 60, 60, 90, 90, 120, 120, 150, 150, 180, 180, 210, 210, 240, 240, 270, 270, 300, 300, 330, 330, 360.} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"360_day\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'" ;; noleap|365_day) # 365 days ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15.5, 45, 74.5, 105, 135.5, 166, 196.5, 227.5, 258, 288.5, 319, 349.5} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 31, 31, 59, 59, 90, 90, 120, 120, 151, 151, 181, 181, 212, 212, 243, 243, 273, 273, 304, 304, 334, 334, 365.} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"365_day\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'" ;; all_leap|366_day) # 366 days ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15.5, 45.5, 75.5, 106, 136.5, 167, 197.5, 228.5, 259, 289.5, 320, 350.5} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 31, 31, 60, 60, 91, 91, 121, 121, 152, 152, 182, 182, 213, 213, 244, 244, 274, 274, 305, 305, 335, 335, 366.} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"366_day\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'" ;; leap|gregorian|standard) # 365.2425 days ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15.5, 45.12125, 74.7425, 105.2425, 135.7425, 166.2425, 196.7425, 227.7425, 258.2425, 288.7425, 319.2425, 349.7425} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 31, 31, 59.2425, 59.2425, 90.2425, 90.2425, 120.2425, 120.2425, 151.2425, 151.2425, 181.2425, 181.2425, 212.2425, 212.2425, 243.2425, 243.2425, 273.2425, 273.2425, 304.2425, 304.2425, 334.2425, 334.2425, 365.2425} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"gregorian\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'" ;; esac eval IGCM_sys_ncap2 -Oh -s $ncap2cmd ${RESULT_SE} tmp.nc IGCM_sys_Rm ${RESULT_SE} IGCM_sys_Mv tmp.nc ${RESULT_SE} # eval IGCM_sys_Put_Out ${RESULT_SE} \${R_OUT_${comp}}/Analyse/SE/${RESULT_SE} [ -f ${RESULT_SE} ] && IGCM_sys_Rm ${RESULT_SE} # done done # DODS copy if [ X${config_Post_DodsCopy} = XTRUE ] ; then for comp in ${config_ListOfComponents[*]} ; do IGCM_sys_TestDirArchive ${R_SAVE}/${comp}/Analyse/SE [ $? = 0 ] && IGCM_sys_Put_Dods ${comp}/Analyse/SE done fi # Temporal coverage id for atlas YEARS=${an_deb}_${an_fin} DIR_OUT=SE export DEBUG_debug; export BigBrother ; export libIGCM; export SUBMIT_DIR; export POST_DIR; export Script_Output ; export StandAlone ; export RESOL_ATM; export RESOL_OCE ; export RESOL_ICE ; export RESOL_MBG ; export RESOL_SRF ; export RESOL_SBG ; export YEARS; export DIR_OUT listVarEnv="DEBUG_debug,BigBrother,libIGCM,SUBMIT_DIR,POST_DIR,Script_Post_Output,StandAlone,RESOL_ATM,RESOL_OCE,RESOL_ICE,RESOL_MBG,RESOL_SRF,RESOL_SBG,YEARS,DIR_OUT" export listVarEnv; #D- # -------------------------------------------------------------------- #D- Test if all was right before ATLAS # -------------------------------------------------------------------- IGCM_debug_Verif_Exit if [ ${config_UserChoices_TagName} = "IPSLCM4_v1_OASIS3" ] || \ [ ${config_UserChoices_TagName} = "IPSLCM4_v2" ] || \ [ ${config_UserChoices_TagName} = "IPSL_ESM_V1" ] ; then # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCHIDEE ; export Script_Post_Output=atlas_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_LMDZ ; export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCA_LIM ; export Script_Post_Output=additionnal.${PeriodDateEnd} ; IGCM_sys_QsubPost additionnal ; fi # elif [ ${config_UserChoices_TagName} = "IPSLCM5" ] || \ [ ${config_UserChoices_TagName} = "IPSLCM5A" ] || \ [ ${config_UserChoices_TagName} = "IPSLCM5B" ] || \ [ ${config_UserChoices_TagName} = "IPSLCM5A-MR" ] || \ [ ${config_UserChoices_TagName} = "IPSLCM5A2" ] || \ [ ${config_UserChoices_TagName} = "IPSLCM6" ] ; then # METRICS if [ X${config_Post_MetricsPCMDI} = XTRUE ] ; then export Script_Post_Output=metrics_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost metrics_LMDZ ; export Script_Post_Output=metrics_NEMO.${PeriodDateEnd} ; IGCM_sys_QsubPost metrics_NEMO ; fi # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCHIDEE ; export Script_Post_Output=atlas_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_LMDZ ; export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCA_LIM ; export Script_Post_Output=atlas_PISCES.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_PISCES ; fi elif [ ${config_UserChoices_TagName} = "LMDZ4OR" ] || \ [ ${config_UserChoices_TagName} = "LMDZOR" ] || \ [ ${config_UserChoices_TagName} = "LMDZ4OR_v2" ] ; then # METRICS if [ X${config_Post_MetricsPCMDI} = XTRUE ] ; then export Script_Post_Output=metrics_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost metrics_LMDZ ; fi # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_LMDZ ; export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCHIDEE ; fi elif [ ${config_UserChoices_TagName} = "LMDZ" ] ; then # METRICS if [ X${config_Post_MetricsPCMDI} = XTRUE ] ; then export Script_Post_Output=metrics_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost metrics_LMDZ ; fi # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_LMDZ.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_LMDZ ; fi elif [ ${config_UserChoices_TagName} = "OL" ] || \ [ ${config_UserChoices_TagName} = "OL2" ] ; then # METRICS # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCHIDEE ; fi elif [ ${config_UserChoices_TagName} = "ORCA2_LIM" ] || \ [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] || \ [ ${config_UserChoices_TagName} = "ORCA2_LIM3" ] || \ [ ${config_UserChoices_TagName} = "ORCA1_LIM2" ] || \ [ ${config_UserChoices_TagName} = "ORCA1_LIM3" ] ; then # METRICS if [ X${config_Post_MetricsPCMDI} = XTRUE ] ; then export Script_Post_Output=metrics_NEMO.${PeriodDateEnd} ; IGCM_sys_QsubPost metrics_NEMO ; fi # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCA_LIM ; fi elif [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] || \ [ ${config_UserChoices_TagName} = "ORCA2_LIM3_PISCES" ] || \ [ ${config_UserChoices_TagName} = "ORCA1_LIM2_PISCES" ] || \ [ ${config_UserChoices_TagName} = "ORCA1_LIM3_PISCES" ] ; then # METRICS if [ X${config_Post_MetricsPCMDI} = XTRUE ] ; then export Script_Post_Output=metrics_NEMO.${PeriodDateEnd} ; IGCM_sys_QsubPost metrics_NEMO ; fi # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_ORCA_LIM ; export Script_Post_Output=atlas_PISCES.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_PISCES ; fi elif [ ${config_UserChoices_TagName} = "ORCA2_OFF_PISCES" ] ; then # METRICS # ATLAS if [ X${config_Post_AtlasIPSL} = XTRUE ] ; then export Script_Post_Output=atlas_PISCES.${PeriodDateEnd} ; IGCM_sys_QsubPost atlas_PISCES ; fi fi # Clean RUN_DIR_PATH (necessary for cesium and titane only) IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} # ------------------------------------------------------------------ # Finalize BigBrother to inform that the jobs end # ------------------------------------------------------------------ IGCM_debug_BigBro_Finalize