Ignore:
Timestamp:
09/05/22 16:20:13 (20 months ago)
Author:
ssenesi
Message:

Handle C-ESM-EP atlas in post-processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_CESMEP/libIGCM_config/libIGCM_config.ksh

    r1546 r1554  
    179179  if ( [ X${config_Post_MetricsPCMDI} = X${NULL_STR} ] || [ X${config_Post_MetricsPCMDI} = X ] ) ; then 
    180180    config_Post_MetricsPCMDI=FALSE 
     181  fi 
     182 
     183  #==================================================== 
     184  # Cesmep : apply default value FALSE if not defined, and if TRUE 
     185  # set it based on an adhoc algorithm 
     186  if ( [ X${config_Post_Cesmep} = XNONE ] || [ X${config_Post_Cesmep} = X ] ) ; then 
     187    config_Post_Cesmep=FALSE 
     188  elif [ X${config_Post_Cesmep} = XTRUE ]; then  
     189    if ([ ! X${config_Post_SeasonalFrequency} = XNONE ] && [ ! X${config_Post_SeasonalFrequency} = X ] ) ; then 
     190      config_Post_Cesmep="SE" 
     191    elif ([ ! X${config_Post_TimeSeriesFrequency} = XNONE ] && [ ! X${config_Post_TimeSeriesFrequency} = X ] ) ; then 
     192      config_Post_Cesmep="TS" 
     193    elif ([ ! X${config_Post_PackFrequency} = XNONE ] && [ ! X${config_Post_PackFrequency} = X ] ) ; then 
     194      config_Post_Cesmep="Pack" 
     195    else 
     196      # This covers case SpaceName=TEST with no SE nor TS (nor Pack) 
     197      config_Post_Cesmep="AtEnd" 
     198    fi 
     199    # 
     200  else 
     201      # Check that user-provided value make sense 
     202      if ([ X${config_Post_Cesmep} = XSE ]) ; then 
     203          if ([ X${config_Post_SeasonalFrequency} = XNONE ] || [ X${config_Post_SeasonalFrequency} = X ] ) ; then 
     204              IGCM_debug_Exit "Cannot use SE for Cesmep : SE post-processing is not active" 
     205          fi 
     206      elif ([ X${config_Post_Cesmep} = XTS ]) ; then 
     207          if ([ X${config_Post_TimeSeriesFrequency} = XNONE ] || [ X${config_Post_TimeSeriesFrequency} = X ] ) ; then 
     208              IGCM_debug_Exit "Cannot use TS for Cesmep : TS post-processing is not active" 
     209          fi 
     210      elif ([ X${config_Post_Cesmep} = XPack ]) ; then 
     211          if ([ X${config_Post_PackFrequency} = XNONE ] || [ X${config_Post_PackFrequency} = X ] ) ; then 
     212              IGCM_debug_Exit "Cannot use Packed output for Cesmep : Pack post-processing is not active" 
     213          fi 
     214      elif ([ X${config_Post_Cesmep} != XAtend ]) ; then 
     215          IGCM_debug_Exit "config.card Post section value for Cesmep is invalid (use SE, TS, Pack, AtEnd or TRUE) : ${config_Post_Cesmep}" 
     216      fi 
     217  fi 
     218  if ( [ X${config_Post_CesmepComparison} = XNONE ] || [ X${config_Post_CesmepComparison} = X ] ) ; then 
     219      config_Post_CesmepComparison=standard_comparison 
     220  fi 
     221  if ( [ X${config_Post_CesmepCode} = XNONE ] || [ X${config_Post_CesmepCode} = X ] ) ; then 
     222      config_Post_CesmepCode=/ccc/work/cont003/gen0826/senesis/cesmep 
    181223  fi 
    182224 
Note: See TracChangeset for help on using the changeset viewer.