Changeset 298 for CCCC


Ignore:
Timestamp:
27/02/15 15:19:12 (5 years ago)
Author:
astephen
Message:

added activity to json record for ESA-CCI

Location:
CCCC/trunk/ceda_cc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CCCC/trunk/ceda_cc/config_c4.py

    r296 r298  
    261261      self.drsMappings = {'variable':'#var','platform':'platform','sensor':'sensor','level':'#level', \ 
    262262                'standard_name':'*standard_name', \ 
     263                'activity':'=CLIPC', \ 
    263264                'algorithm':'$algorithm:unset', 'frequency':'$frequency', \ 
    264265                'spatial_resolution':'spatial_resolution', 'ecv':'@ecv','version':'#version','convention_version':'#gdsv'} 
  • CCCC/trunk/ceda_cc/utils_c4.py

    r279 r298  
    391391      if self.drsMappings[k] == '@var': 
    392392        ee[k] = self.var 
     393      elif self.drsMappings[k][0] == '=': 
     394        ee[k] = self.drsMappings[k][1:] 
    393395      elif self.drsMappings[k] == '@ensemble': 
    394396        ee[k] = "r%si%sp%s" % (self.globalAts["realization"],self.globalAts["initialization_method"],self.globalAts["physics_version"]) 
Note: See TracChangeset for help on using the changeset viewer.