Changeset 423 for CMIP6dreqbuild/trunk/src
- Timestamp:
- 15/10/15 16:12:52 (7 years ago)
- Location:
- CMIP6dreqbuild/trunk/src/workbook
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreqbuild/trunk/src/workbook/importShDreq.py
r397 r423 13 13 from utils_wb import uniCleanFunc 14 14 import ivg 15 16 freqmap = {'daily':'day', u'Annual':'yr', u'Timestep':'subhr', u'1day':'day', u'1mon':'mon', 'month':'mon', 'year':'yr', 'monthly':'mon', 'Day':'day', '6h':'6hr', '3 hourly':'3hr' } 15 17 16 18 class s1(object): … … 149 151 elif string.find( tt.mipTable, '_' ) != -1: 150 152 prov = '%s [%s]' % tuple( string.split( tt.mipTable, '_' ) ) 153 else: 154 prov = '%s' % tt.mipTable 155 151 156 if tt.var[:5] == 'ccmi_': 152 157 pass … … 895 900 if n == "stid": 896 901 item.setAttribute( n, stid ) 902 elif n == "freq": 903 fr = freqmap.get( str(r[k]), str(r[k]) ) 904 item.setAttribute( n, fr ) 897 905 else: 898 906 item.setAttribute( n, str(r[k]) ) 907 899 908 self.ff[ksect][0].appendChild( item ) 900 909 elif ksect == u'structure':
Note: See TracChangeset
for help on using the changeset viewer.