Changeset 0f89116 in flex_extract.git for Source/Python/Mods/prepare_flexpart.py
- Timestamp:
- Dec 19, 2019, 8:07:12 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- a73c0f6
- Parents:
- 0d99607
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Mods/prepare_flexpart.py
r44174de r0f89116 38 38 # http://creativecommons.org/licenses/by/4.0/ or send a letter to 39 39 # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 40 #******************************************************************************* 40 # ******************************************************************************* 41 # pylint: disable=ungrouped-imports 42 # not necessary that we group the imports 41 43 '''This script prepares the final version of the grib files which are 42 44 then used by FLEXPART. … … 68 70 import inspect 69 71 import sys 70 import socket71 72 72 73 # software specific classes and modules from flex_extract … … 74 75 sys.path.append(os.path.dirname(os.path.abspath( 75 76 inspect.getfile(inspect.currentframe()))) + '/../') 76 import _config 77 # pylint: disable=wrong-import-position 78 #import _config 77 79 from Mods.checks import check_ppid 78 80 from Classes.UioFiles import UioFiles 79 from Classes.ControlFile import ControlFile 80 from Mods.tools import (setup_controldata, clean_up, get_cmdline_args, 81 read_ecenv, make_dir, normal_exit) 81 #from Classes.ControlFile import ControlFile 82 from Mods.tools import (setup_controldata, clean_up, make_dir, normal_exit) 82 83 from Classes.EcFlexpart import EcFlexpart 84 # pylint: enable=wrong-import-position 83 85 84 86 # ------------------------------------------------------------------------------ … … 146 148 147 149 print('Prepare ' + start.strftime("%Y%m%d") + 148 "/to/"+ end.strftime("%Y%m%d"))150 '/to/' + end.strftime("%Y%m%d")) 149 151 150 152 # create output dir if necessary … … 171 173 flexpart.process_output(c) 172 174 173 # make use of a possible conversion to a174 # specific flexpart binary format175 if c.grib2flexpart:176 flexpart.prepare_fp_files(c)177 178 175 # check if in debugging mode, then store all files 179 176 # otherwise delete temporary files
Note: See TracChangeset
for help on using the changeset viewer.