Ignore:
Timestamp:
21/04/17 18:53:08 (3 years ago)
Author:
mjuckes
Message:

01.00.07

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/scanDreq.py

    r978 r979  
    703703    filterStr = True 
    704704    estr = [] 
    705     strForce = ['str-a076'] 
     705    strForce = ['str-a076','str-x269','str-x100'] 
    706706    for item in dil: 
    707707      uid = item.getAttribute( 'uid' )   
     
    816816    dil = this.getElementsByTagName('item') 
    817817    self.usedVar = set() 
     818 
     819    self.keepVar = {'ugrido',} 
    818820    for item in dil: 
    819821        uid = item.getAttribute( 'uid' )   
    820         if (uid not in self.usedCmv) or (uid in self.removedCmv): 
     822        if ((uid not in self.usedCmv) or (uid in self.removedCmv)) and (item.getAttribute( 'label' ) not in self.keepVar): 
    821823          print 'INFO.cmv.04004: removing unused CMORvar: %s, %s, %s, %s: ' % (uid,item.getAttribute( 'label' ),item.getAttribute( 'table' ),item.getAttribute( 'mipTable' )) 
    822824          this.removeChild(item) 
     
    831833        uid = item.getAttribute( 'uid' )   
    832834        self.varLookUp[ item.getAttribute( 'label' ) ] = uid 
    833         if uid not in self.usedVar: 
     835        if uid not in self.usedVar and item.getAttribute( 'label' ) not in self.keepVar: 
    834836          print 'INFO.var.04004: removing unused var: %s, %s, %s, %s: ' % (uid,item.getAttribute( 'label' ),item.getAttribute( 'table' ),item.getAttribute( 'units' )) 
    835837          this.removeChild(item) 
     
    845847    extra_old = [('E6hrZ','ps','str-a076','ps','atmos','Surface Pressure','Surface Pressure .. needed for vertical coordinates','6hr', 'CMIP extra','scanDreq.py','1','float',''), 
    846848             ('AERmon','ps','str-013','ps','atmos','Surface Pressure','Surface Pressure .. needed for vertical coordinates','mon', 'CMIP extra','scanDreq.py','1','float',''), 
    847              ('E3hrPt','ps','str-103','ps','atmos','Surface Pressure','Surface Pressure .. needed for vertical coordinates','3hr', 'CMIP extra','scanDreq.py','1','float',''),] 
     849             ('E3hrPt','ps','str-d11','ps','atmos','Surface Pressure','Surface Pressure .. needed for vertical coordinates','3hr', 'CMIP extra','scanDreq.py','1','float',''),] 
    848850    eh = ['label','modeling_realm','title','description','frequency','provNote','prov','defaultPriority','type','positive'] 
    849851    hids = set() 
     
    871873         new.setAttribute( eh[k], e[3+k] ) 
    872874       this.appendChild( new ) 
     875     else: 
     876       print 'SKIPPING extraCMV: %s.%s' % (e[0],e[1]) 
    873877          
    874878       
Note: See TracChangeset for help on using the changeset viewer.