Changeset 1027
- Timestamp:
- 05/06/17 20:03:36 (4 years ago)
- Location:
- CMIP6dreqbuild/trunk/src/framework/ingest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMIP6dreqbuild/trunk/src/framework/ingest/expts.py
r1016 r1027 2 2 import os 3 3 import json, re, collections, string 4 from dreqPy import dreq 5 4 import sys 5 ##sys.path.append( <path to dirFoo> ) 6 sys.path.insert(0, '../dreqPy/' ) 7 ##from dreqPy import dreq 8 import dreq 6 9 7 10 import exptMaps as em … … 56 59 cc = {} 57 60 self.alias = {} 61 self.edesc = {} 58 62 self.dn = [] 59 63 self.mip = {} … … 63 67 if r[0] != '': 64 68 en = r[2] 69 des = r[5] 70 self.edesc[en] = des 65 71 self.experiment = en 66 72 if en.strip() not in [ 'N/A', 'n/a', '', ' ']: … … 292 298 json.dump( {'info':{'title':'Updating experiment names in data request'}, 'maps':ee}, oo, indent=4, sort_keys=True ) 293 299 oo.close() 300 oo = open( 'exptDesc.json', 'w' ) 301 json.dump( {'info':{'title':'Updating experiment descriptions from ESDOC'}, 'maps':xc.es.edesc}, oo, indent=4, sort_keys=True ) 302 oo.close() 294 303 295 304 -
CMIP6dreqbuild/trunk/src/framework/ingest/utils_wb.py
r1012 r1027 22 22 ss = ss.replace( u'\u2026', '...' ) 23 23 ss = ss.replace( u'\u25e6', 'o' ) 24 ss = ss.replace( u'\xfc', 'u' ) 25 ss = ss.replace( u'\xad', '-' ) 26 ss = ss.replace( u'\xb1', '+-' ) 27 ss = ss.replace( u'\xb2', '2' ) 28 ss = ss.replace( u'\xb0', 'o' ) 24 29 ss = ss.replace( u'\xb2', '2' ) 25 30 ss = ss.replace( u'\xb3', '3' )
Note: See TracChangeset
for help on using the changeset viewer.