Ignore:
Timestamp:
22/09/16 19:34:30 (4 years ago)
Author:
mjuckes
Message:

release cand

File:
1 edited

Legend:

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

    r714 r760  
    676676      
    677677  def strTtl(self,dq): 
     678    this = self.doc.getElementsByTagName('cellMethods')[0] 
     679    dil = this.getElementsByTagName('item') 
     680    eecm = {} 
     681    for item in dil: 
     682      eecm[item.getAttribute( 'uid' )] = item.getAttribute( 'label' ) 
     683 
    678684    that = self.doc.getElementsByTagName('spatialShape')[0] 
    679685    dil = that.getElementsByTagName('item') 
     
    699705        tmid = item.getAttribute( 'tmid' )   
    700706        spid = item.getAttribute( 'spid' )   
     707        cmid = item.getAttribute( 'cmid' )   
     708        cml = eecm.get( cmid, '' ) 
     709        if cml != '': 
     710          cml = ' [%s]' % cml 
    701711        o = item.getAttribute( 'odims' )   
    702712        c = item.getAttribute( 'coords' )   
     
    714724        if string.strip( c ) != '' or string.strip( o ) != '': 
    715725          title += ' {%s:%s}' % (o,c) 
     726        title += cml 
    716727        print 'STRUCT: ',title,o,c 
    717728        item.setAttribute( 'title', title ) 
Note: See TracChangeset for help on using the changeset viewer.