Changeset 64


Ignore:
Timestamp:
02/10/13 19:19:37 (6 years ago)
Author:
mjuckes
Message:

adapted for SPECS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCC2/trunk/source/comp_mip.py

    r63 r64  
    55ml = ['CORDEX_3h', 'CORDEX_6h', 'CORDEX_fx', 'CORDEX_day', 'CORDEX_mon', 'CORDEX_sem' ] 
    66ml = ['CCMI1_Amon_v1_complete'] 
     7ml = ['SPECS_Amon', 'SPECS_fx', 'SPECS_Lmon', 'SPECS_Omon', 'SPECS_6hrLev', 'SPECS_day', 'SPECS_OImon'] 
    78newMip = 'CCMI' 
     9newMip = 'SPECS' 
    810ml2 = ['CMIP5_3hr', 'CMIP5_6hrPlev', 'CMIP5_Amon', 'CMIP5_cfDay', 'CMIP5_cfOff', 'CMIP5_day', 'CMIP5_grids', 'CMIP5_Lmon', 'CMIP5_OImon', 'CMIP5_Oyr', 
    911       'CMIP5_6hrLev', 'CMIP5_aero', 'CMIP5_cf3hr', 'CMIP5_cfMon', 'CMIP5_cfSites', 'CMIP5_fx', 'CMIP5_LImon', 'CMIP5_Oclim', 'CMIP5_Omon']  
     
    110112                nmm.append(k2) 
    111113          if ne1 > 0: 
    112                 print 'ERROR[4A]: Anomaly bewteen MIP tables: %s:: %s ' % (k, str(nmm) ) 
     114                print 'ERROR[4A]: Anomaly between MIP tables: %s:: %s ' % (k, str(nmm) ) 
    113115          else: 
    114116             if not suppress4B: 
    115                 print 'ERROR[4B]: Anomaly bewteen MIP tables: %s:: %s -- %s [%s]' % (k, str(e1[k][1]), str( e2[k][1] ), vrln ) 
     117                print 'ERROR[4B]: Anomaly between MIP tables: %s:: %s -- %s [%s]' % (k, str(e1[k][1]), str( e2[k][1] ), vrln ) 
    116118          e0 = 1 
    117119        else: 
     
    138140         
    139141base='/home/users/prototype/cordex/exarch/FCC2/trunk/work/' 
     142base='/home/martin/2013/mipML/FCC2/trunk/work/' 
    140143snl,snla = gen_sn_list( base + cfsntab ) 
    141144print 'Len snl = %s' % len(snl) 
     
    203206mpat = 'CORDEX_%s' 
    204207newMipDir = '/ccmi_vocabs/mip/' 
     208newMipDir = '/specs_vocabs/mip/' 
    205209mpat = 'CCMI1_%s_v1_complete' 
     210mpat = 'SPECS_%s' 
    206211def validate( t,cc ): 
    207212  if t == 'all': 
     
    224229tlist = ['3hr','6hr','day','mon','sem','fx'] 
    225230tlist = ['Amon'] 
     231tlist = ['Amon', 'fx', 'Lmon', 'Omon', '6hrLev', 'day', 'OImon'] 
    226232for tab in tlist: 
    227233  ms = mipTableScan() 
    228234  print 'Validating table %s ' % tab 
    229   if newMip == 'CCMI': 
     235  if newMip in ['CCMI','SPECS']: 
    230236    ec1 = None 
    231237  else: 
Note: See TracChangeset for help on using the changeset viewer.