- Timestamp:
- 30/11/16 10:00:03 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreqbuild/trunk/src/framework/ingest/dreq_consol_dreq2.py
r878 r884 15 15 16 16 deckExptMap = {'CMIP6 historical':['historical','esm-hist','historical-ext','esm-hist-ext'], 17 'control':['piControl','esm-piControl'] }17 'control':['piControl','esm-piControl'], 'AMIP':['amip'], 'abrupt4xCO2':'abrupt-4xCO2' } 18 18 deckExptMapStar = {'CMIP6 historical':['historical','historical-ext'], 19 19 'control':['piControl']} … … 413 413 if expt in deckExptMap or string.find( expt, ',' ) != -1 or (string.find( expt, ' ' ) != -1 and expt != "CMIP6 historical"): 414 414 il = list(i) 415 print 'INFO.expt.01001: %s, %s' % (expt, str(il) ) 415 416 if expt in deckExptMap: 416 if i[-1][-2:] == '**':417 if type(i[-1]) in [type(''),type(u'')] and i[-1][-2:] == '**': 417 418 il[-1] = i[-1][:-2] 418 419 bits = deckExptMapStar[expt] … … 421 422 else: 422 423 bits = map( lambda x: string.strip(x), string.split( expt, ',' ) ) 423 print 'INFO.expt.00006: ',i [:3], bits424 print 'INFO.expt.00006: ',il, bits 424 425 for b in bits: 425 426 il[2] = b
Note: See TracChangeset
for help on using the changeset viewer.