Changeset 364


Ignore:
Timestamp:
31/07/15 12:12:00 (5 years ago)
Author:
mjuckes
Message:

adapted to deal with DLR usage of id attribute ... for one dataset

Location:
CCCC/trunk/ceda_cc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/config/esacci_vocabs/extraAtts.txt

    r363 r364  
    55@ESA GlobSnow snow water equivalent L3B monthly aggregated|fi.fmi, , algorithm=Pulliainen2006, frequency=mon 
    66org.ghrsst, OSTIA-ESACCI-L4-v01.0, algorithm=OSTIA2-0, frequency=day 
    7 DLR, ESACCI-OZONE-L3S-TC-MERGED-DLR_1M-20110501-fv0100.nc, algorith=DLR.merged, frequency=mon 
     7DLR, ESACCI-OZONE-L3S-TC-MERGED-DLR_1M, algorith=DLR.merged, frequency=mon 
  • CCCC/trunk/ceda_cc/utils_c4.py

    r345 r364  
    77from fcc_utils import mipTableScan 
    88from xceptions import * 
     9 
     10re_dlr01 = re.compile( 'MERGED-DLR_1M-[0-9]{8}-fv0100.nc$' ) 
    911 
    1012class timeInt(object): 
     
    464466    if self.fileId == None: 
    465467      id = self.globalAts['id'] 
     468## 
     469## hack to allow for awkward usage in DLR ozone, where id is different for each file 
     470## may need to improve on this if problem exists for other files in different form 
     471## 
     472      xx = re_dlr01.findall( id ) 
     473      if len(xx) != 0: 
     474        id = id[:-19] 
    466475      if id != '': 
    467476        self.fileId = '%s.%s' % (self.globalAts['naming_authority'],id) 
Note: See TracChangeset for help on using the changeset viewer.