Changeset 1027 for CMIP6dreqbuild


Ignore:
Timestamp:
05/06/17 20:03:36 (3 years ago)
Author:
mjuckes
Message:

cand

Location:
CMIP6dreqbuild/trunk/src/framework/ingest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreqbuild/trunk/src/framework/ingest/expts.py

    r1016 r1027  
    22import os 
    33import json, re, collections, string 
    4 from dreqPy import dreq 
    5  
     4import sys 
     5##sys.path.append( <path to dirFoo> ) 
     6sys.path.insert(0, '../dreqPy/' ) 
     7##from dreqPy import dreq 
     8import dreq 
    69 
    710import exptMaps as em 
     
    5659    cc = {} 
    5760    self.alias = {} 
     61    self.edesc = {} 
    5862    self.dn = [] 
    5963    self.mip = {} 
     
    6367      if r[0] != '': 
    6468       en = r[2] 
     69       des = r[5] 
     70       self.edesc[en] = des 
    6571       self.experiment = en 
    6672       if en.strip() not in [ 'N/A', 'n/a', '', ' ']: 
     
    292298json.dump( {'info':{'title':'Updating experiment names in data request'}, 'maps':ee}, oo, indent=4, sort_keys=True ) 
    293299oo.close() 
     300oo = open( 'exptDesc.json', 'w' ) 
     301json.dump( {'info':{'title':'Updating experiment descriptions from ESDOC'}, 'maps':xc.es.edesc}, oo, indent=4, sort_keys=True ) 
     302oo.close() 
    294303 
    295304 
  • CMIP6dreqbuild/trunk/src/framework/ingest/utils_wb.py

    r1012 r1027  
    2222          ss = ss.replace( u'\u2026', '...' ) 
    2323          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' ) 
    2429          ss = ss.replace( u'\xb2', '2' ) 
    2530          ss = ss.replace( u'\xb3', '3' ) 
Note: See TracChangeset for help on using the changeset viewer.