Changeset 6f951ca in flex_extract.git for source/python/submit.py


Ignore:
Timestamp:
Jan 15, 2019, 1:05:10 AM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
d4696e0
Parents:
2625ca8
Message:

new style of docstring params and updates in docstrings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/submit.py

    r0629ba8 r6f951ca  
    1818#        - changed path names to variables from config file
    1919#        - 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
    2123#
    2224# @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.
    4032#*******************************************************************************
     33'''This script allows the user to extract meteorological fields from the ECMWF.
     34
     35It prepares the settings for retrieving the data from ECMWF servers and
     36process the resulting files to prepare them for the use with FLEXPART or
     37FLEXTRA.
     38
     39If it is supposed to work locally then it works through the necessary
     40functions get_mars_data and prepare_flexpart. Otherwise it prepares
     41a job script (korn shell) which will do the necessary work on the
     42ECMWF server. This script will de submitted via the ecaccess command
     43ecaccess-job-submit.
     44
     45This file can also be imported as a module which then contains the following
     46functions:
     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
     52Type: submit.py --help
     53to get information about command line parameters.
     54Read the documentation for usage instructions.
     55'''
    4156
    4257# ------------------------------------------------------------------------------
     
    5974
    6075# ------------------------------------------------------------------------------
    61 # FUNCTIONS
     76# METHODS
    6277# ------------------------------------------------------------------------------
    6378
     
    112127    Parameters
    113128    ----------
    114     jtemplate : :obj:`string`
     129    jtemplate : str
    115130        Job template file from sub-directory "_templates" for
    116131        submission to ECMWF. It contains all necessary
     
    119134        Default is "job.temp".
    120135
    121     c : :obj:`ControlFile`
     136    c : ControlFile
    122137        Contains all the parameters of CONTROL file and
    123138        command line.
    124139
    125     queue : :obj:`string`
     140    queue : str
    126141        Name of queue for submission to ECMWF (e.g. ecgate or cca )
    127142
     
    201216    Parameters
    202217    ----------
    203     jtemplate : :obj:`string`
     218    jtemplate : str
    204219        Job template file from sub-directory "_templates" for
    205220        submission to ECMWF. It contains all necessary
     
    208223        Default is "job.temp".
    209224
    210     job_file : :obj:`string`
     225    job_file : str
    211226        Path to the job script file.
    212227
    213     clist : :obj:`list` of :obj:`string`
     228    clist : list of str
    214229        Contains all necessary parameters for ECMWF CONTROL file.
    215230
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG