- Timestamp:
- Jun 2, 2018, 10:37:48 AM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 54a8a01
- Parents:
- ff99eae
- Location:
- python
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ControlFile.py
rff99eae re1228f3 68 68 import inspect 69 69 70 # software specific module from flex_extract71 from tools import get_list_as_string, my_error72 73 70 # ------------------------------------------------------------------------------ 74 71 # CLASS … … 109 106 <nothing> 110 107 ''' 108 from tools import my_error 111 109 112 110 # read whole CONTROL file -
python/EcFlexpart.py
rff99eae re1228f3 112 112 113 113 # software specific classes and modules from flex_extract 114 from Grib tools import Gribtools114 from GribTools import GribTools 115 115 from tools import init128, to_param_id, silent_remove, product, my_error 116 116 from MarsRetrieval import MarsRetrieval … … 224 224 self.glevelist = '1/to/' + c.level 225 225 226 if c.gaussian:226 if hasattr(c, 'gaussian') and c.gaussian: 227 227 self.gaussian = c.gaussian 228 228 else: 229 229 self.gaussian = '' 230 230 231 if c.expver:231 if hasattr(c, 'expver') and c.expver: 232 232 self.expver = c.expver 233 233 else: 234 234 self.expver = '1' 235 235 236 if c.number:236 if hasattr(c, 'number') and c.number: 237 237 self.number = c.number 238 238 else: … … 872 872 indexfile = c.inputdir + "/date_time_stepRange.idx" 873 873 silent_remove(indexfile) 874 grib = Grib tools(inputfiles.files)874 grib = GribTools(inputfiles.files) 875 875 # creates new index file 876 876 iid = grib.index(index_keys=index_keys, index_file=indexfile) … … 1114 1114 indexfile = c.inputdir + "/date_time_stepRange.idx" 1115 1115 silent_remove(indexfile) 1116 grib = Grib tools(inputfiles.files)1116 grib = GribTools(inputfiles.files) 1117 1117 # creates new index file 1118 1118 iid = grib.index(index_keys=index_keys, index_file=indexfile) -
python/GribTools.py
rff99eae re1228f3 52 52 # CLASS 53 53 # ------------------------------------------------------------------------------ 54 class Grib tools(object):54 class GribTools(object): 55 55 ''' 56 56 Class for GRIB utilities (new methods) based on GRIB API … … 62 62 ''' 63 63 @Description: 64 Initialise an object of Grib tools and assign a list64 Initialise an object of GribTools and assign a list 65 65 of filenames. 66 66
Note: See TracChangeset
for help on using the changeset viewer.