Changeset f20af73 in flex_extract.git for source/python/mods/prepare_flexpart.py
- Timestamp:
- Mar 8, 2019, 10:05:20 AM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 82c2959
- Parents:
- b4a4777
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/mods/prepare_flexpart.py
re811e1a rf20af73 71 71 inspect.getfile(inspect.currentframe()))) + '/../') 72 72 import _config 73 from checks import check_ppid73 from .checks import check_ppid 74 74 from classes.UioFiles import UioFiles 75 75 from classes.ControlFile import ControlFile 76 from tools import clean_up, get_cmdline_args, read_ecenv, make_dir 76 from .tools import (setup_controldata, clean_up, get_cmdline_args, 77 read_ecenv, make_dir) 77 78 from classes.EcFlexpart import EcFlexpart 78 79 ecapi = 'ecmwf' not in socket.gethostname()80 try:81 if ecapi:82 import ecmwfapi83 except ImportError:84 ecapi = False85 79 86 80 # ------------------------------------------------------------------------------ … … 101 95 ''' 102 96 103 args = get_cmdline_args() 104 c = ControlFile(args.controlfile) 105 106 env_parameter = read_ecenv(_config.PATH_ECMWF_ENV) 107 c.assign_args_to_control(args) 108 c.assign_envs_to_control(env_parameter) 109 c.check_conditions(args.queue) 110 111 prepare_flexpart(args.ppid, c) 97 c, ppid, _, _ = setup_controldata() 98 prepare_flexpart(ppid, c) 99 normal_exit('Preparing FLEXPART output files: Done!') 112 100 113 101 return … … 136 124 ''' 137 125 check_ppid(c, ppid) 138 139 c.ecapi = ecapi140 126 141 127 # create the start and end date
Note: See TracChangeset
for help on using the changeset viewer.