Changeset 901


Ignore:
Timestamp:
08/07/13 17:38:06 (11 years ago)
Author:
sdipsl
Message:
  • can monitor other frequency not only what's in TS_MO. see #157
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_monitoring

    r880 r901  
    145145###################################################################### 
    146146 
    147 #set -vx  
     147#set -vx 
    148148 
    149149#=========================================== 
     
    193193fi 
    194194# -------------------------------------------- 
    195 # Insert your commands between III...III lines  
     195# Insert your commands between III...III lines 
    196196# and precise produced directories to save 
    197197# IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII 
     
    217217  if [ X${PATH_monitoring_file} != X"" ] ; then 
    218218    IGCM_debug_Print 1 "Monitoring file used : ${PATH_monitoring_file}" 
     219    IGCM_debug_Print 1 "Determine which frequency of time series to be used." 
     220 
     221    FreqTS=$( grep FreqTS ${PATH_monitoring_file} | grep -v \# | awk -F "=" '{print $2}' ) 
     222    if [ X${FreqTS} = X ] ; then 
     223      # Default frequency is MO 
     224      FreqTS=MO 
     225    fi 
     226 
     227    IGCM_debug_Print 1 "Times series frequency to be used is ${FreqTS}" 
    219228    IGCM_debug_Print 1 "Determine which files we need." 
    220     . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
    221     liste_file_monitoring=$( . monitoring01 -q -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO ) 
     229    . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_${FreqTS} 
     230    liste_file_monitoring=$( . monitoring01 -q -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_${FreqTS} ) 
    222231  fi 
    223232  # 
     
    229238  else 
    230239    IGCM_debug_Print 1 "No time series detected by this command :" 
    231     IGCM_debug_Print 1 "monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO" 
    232     . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_MO 
     240    IGCM_debug_Print 1 "monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_${FreqTS}" 
     241    . monitoring01 -l2 --listcommand 'IGCM_sys_RshArchive_NoError ls' ${PATH_monitoring_file} ${R_SAVE}/${comp}/Analyse/TS_${FreqTS} 
    233242  fi 
    234243  # 
Note: See TracChangeset for help on using the changeset viewer.