Changeset 270 for CCCC


Ignore:
Timestamp:
08/01/15 05:39:26 (5 years ago)
Author:
mjuckes
Message:

added resolution attribute check

Location:
CCCC/trunk/ceda_cc
Files:
2 edited

Legend:

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

    r269 r270  
    3535platform Envisat 
    3636sensor AATSR 
    37 spatial_resolution (a string describing the approximate resolution of the product. For example, “1.1km at nadir”) 
     37spatial_resolution 1.1km at nadir 
  • CCCC/trunk/ceda_cc/config_c4.py

    r269 r270  
    186186               'cdm_data_type':utils.listControl( 'cdm_data_type', lrdr.getSimpleList( 'threddsDataType.txt', bit=0 ) ), \ 
    187187               'time_coverage_duration':utils.patternControl( 'time_coverage_duration',  'ISO8601 duration', cls='ISO' ), \ 
     188               'spatial_resolution':utils.patternControl( 'spatial_resolution',  '([0-9]+(.[0-9]+){0,1})(km|m).*' ), \ 
    188189               'project':utils.listControl( 'project', ['Climate Change Initiative - European Space Agency'] ), \ 
    189190               'cciProject':utils.listControl( 'project', lrdr.getSimpleList( 'cciProject.txt', bit=-1 ) ), \ 
     
    285286      self.checkVarType = False 
    286287      self.requiredGlobalAttributes = lrdr.getSimpleList( 'requiredGlobalAts.txt', bit=0 ) 
    287       self.controlledGlobalAttributes = ['platform','sensor','project','Conventions','institution','cdm_data_type','time_coverage_duration' ] 
     288      self.controlledGlobalAttributes = ['platform','sensor','project','Conventions','institution','cdm_data_type','time_coverage_duration','spatial_resolution' ] 
    288289      self.controlledFnParts = ['level','cciProject','var','version'] 
    289290      self.requiredVarAttributes = ['long_name', 'standard_name', 'units'] 
Note: See TracChangeset for help on using the changeset viewer.