Changeset 1399 for tags/libIGCM_v3.0_beta1/AA_create_ts
- Timestamp:
- 07/05/17 20:18:51 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/libIGCM_v3.0_beta1/AA_create_ts
r1356 r1399 736 736 # 737 737 if [ "${DEPOT}" = "TRUE" ] ; then 738 # YEARLY AVERAGE DERIVED FROM MONTHLY MEAN739 if ( [ ${FlagDir} = "1M" ] && [ -f ${file_out} ] ) ; then740 file_before_YE=${config_UserChoices_JobName}_${DateBegin}_${DATE_FIN_JOB_B}_1Y_${var}.nc741 file_out_YE=${config_UserChoices_JobName}_${DATE_BUILD_END}_1Y_${var}.nc742 #743 # Compute yearly average considering calendar744 IGCM_sys_cdo yearmonmean -selvar,${var} ${file_out} ${file_out_YE}745 # Extract all ancillary variables except $var, they will be appended after the cdo command746 # Needed because cdo applies calculs on all variables747 IGCM_sys_ncks -Oh -x -v ${var} ${file_out} ${file_out_YE%%.nc}_tmp1.nc748 # This will remove the time axis because cdo rewrites severely with only considered useful variables749 IGCM_sys_cdo -mulc,1 ${file_out_YE%%.nc}_tmp1.nc ${file_out_YE%%.nc}_tmp2.nc 2>/dev/null750 if [ $? -eq 0 ] ; then751 # Now append all ancillary variables if previous cdo operator ok752 IGCM_sys_ncks -h -A ${file_out_YE%%.nc}_tmp2.nc ${file_out_YE}753 fi754 755 # Put global history attribut756 IGCM_sys_ncatted -Oh -a history,global,o,c,"build by libIGCM/create_ts" ${file_out_YE}757 IGCM_debug_Verif_Exit758 #759 eval IGCM_sys_Put_Out ${file_out_YE} \${R_OUT_${comp}}/Analyse/TS_MO_YE/${file_out_YE}760 [ "${FLAG_B}" = "TRUE" ] && eval MENAGE \${R_OUT_${comp}}/Analyse/TS_MO_YE/ ${file_before_YE} ${file_out_YE}761 IGCM_sys_Rm ${file_out_YE%%.nc}_tmp*.nc762 fi763 738 # WE PUT FINAL FILE ON FILE SYSTEM 764 739 [ "${FLAG_B}" = "FALSE" ] && file_out=${config_UserChoices_JobName}_${DATE_BUILD}_${FlagDir}_${var}.nc … … 786 761 # DODS copy 787 762 for comp in ${config_ListOfComponents[*]} ; do 788 for TS_Dir in TS_YE TS_MO TS_ MO_YE TS_DA TS_HF TS_INS ; do763 for TS_Dir in TS_YE TS_MO TS_DA TS_HF TS_INS ; do 789 764 IGCM_sys_TestDirArchive ${R_SAVE}/${comp}/Analyse/${TS_Dir} 790 765 [ $? = 0 ] && IGCM_sys_Put_Dods ${comp}/Analyse/${TS_Dir}
Note: See TracChangeset
for help on using the changeset viewer.