Changeset 6f951ca in flex_extract.git for source/python/submit.py
- Timestamp:
- Jan 15, 2019, 1:05:10 AM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- d4696e0
- Parents:
- 2625ca8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/submit.py
r0629ba8 r6f951ca 18 18 # - changed path names to variables from config file 19 19 # - added option for writing mars requests to extra file 20 # additionally,as option without submitting the mars jobs 20 # additionally, as option without submitting the mars jobs 21 # - splitted submit function to use genshi templates for the 22 # job script and avoid code duplication 21 23 # 22 24 # @License: 23 # (C) Copyright 2014-2018. 24 # 25 # This software is licensed under the terms of the Apache Licence Version 2.0 26 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 27 # 28 # @Program Functionality: 29 # This program is the main program of flex_extract and controls the 30 # program flow. 31 # If it is supposed to work locally then it works through the necessary 32 # functions get_mars_data and prepareFlexpart. Otherwise it prepares 33 # a shell job script which will do the necessary work on the 34 # ECMWF server and is submitted via ecaccess-job-submit. 35 # 36 # @Program Content: 37 # - main 38 # - submit 39 # 25 # (C) Copyright 2014-2019. 26 # Anne Philipp, Leopold Haimberger 27 # 28 # This work is licensed under the Creative Commons Attribution 4.0 29 # International License. To view a copy of this license, visit 30 # http://creativecommons.org/licenses/by/4.0/ or send a letter to 31 # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 40 32 #******************************************************************************* 33 '''This script allows the user to extract meteorological fields from the ECMWF. 34 35 It prepares the settings for retrieving the data from ECMWF servers and 36 process the resulting files to prepare them for the use with FLEXPART or 37 FLEXTRA. 38 39 If it is supposed to work locally then it works through the necessary 40 functions get_mars_data and prepare_flexpart. Otherwise it prepares 41 a job script (korn shell) which will do the necessary work on the 42 ECMWF server. This script will de submitted via the ecaccess command 43 ecaccess-job-submit. 44 45 This file can also be imported as a module which then contains the following 46 functions: 47 48 * main - the main function of the script 49 * submit - calls mk_jobscript depending on operation mode and submits its 50 * mk_jobscript - creates the job script from a template 51 52 Type: submit.py --help 53 to get information about command line parameters. 54 Read the documentation for usage instructions. 55 ''' 41 56 42 57 # ------------------------------------------------------------------------------ … … 59 74 60 75 # ------------------------------------------------------------------------------ 61 # FUNCTIONS76 # METHODS 62 77 # ------------------------------------------------------------------------------ 63 78 … … 112 127 Parameters 113 128 ---------- 114 jtemplate : :obj:`string`129 jtemplate : str 115 130 Job template file from sub-directory "_templates" for 116 131 submission to ECMWF. It contains all necessary … … 119 134 Default is "job.temp". 120 135 121 c : :obj:`ControlFile`136 c : ControlFile 122 137 Contains all the parameters of CONTROL file and 123 138 command line. 124 139 125 queue : :obj:`string`140 queue : str 126 141 Name of queue for submission to ECMWF (e.g. ecgate or cca ) 127 142 … … 201 216 Parameters 202 217 ---------- 203 jtemplate : :obj:`string`218 jtemplate : str 204 219 Job template file from sub-directory "_templates" for 205 220 submission to ECMWF. It contains all necessary … … 208 223 Default is "job.temp". 209 224 210 job_file : :obj:`string`225 job_file : str 211 226 Path to the job script file. 212 227 213 clist : :obj:`list` of :obj:`string`228 clist : list of str 214 229 Contains all necessary parameters for ECMWF CONTROL file. 215 230
Note: See TracChangeset
for help on using the changeset viewer.