Changeset a916e8f in flex_extract.git


Ignore:
Timestamp:
Jun 11, 2020, 11:14:56 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
3a54479
Parents:
0c8c068
Message:

ECMWF server output directory renamed; reformulate dapoly formula; changed template filenames; make use of config jobscript names

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Run/run.sh

    r0c8c068 ra916e8f  
    3838OUTPUTDIR=None
    3939PP_ID=None
    40 JOB_TEMPLATE='jobscript.template'
     40JOB_TEMPLATE='submitscript.template'
    4141CONTROLFILE='CONTROL_EA5'
    4242DEBUG=0
  • Source/Python/Mods/disaggregation.py

    r026b359 ra916e8f  
    1818#          to a new module named disaggregation
    1919#        - added the new disaggregation method for precipitation
     20#
     21#    June 2020 - Anne Philipp (University of Vienna):
     22#        - reformulated formular for dapoly
    2023#
    2124# @License:
     
    9295
    9396    """
    94 
    95     pya = (alist[3] - alist[0] + 3. * (alist[1] - alist[2])) / 6.
    96     pyb = (alist[2] + alist[0]) / 2. - alist[1] - 9. * pya / 2.
    97     pyc = alist[1] - alist[0] - 7. * pya / 2. - 2. * pyb
    98     pyd = alist[0] - pya / 4. - pyb / 3. - pyc / 2.
    99     nfield = 8. * pya + 4. * pyb + 2. * pyc + pyd
     97   
     98    nfield = -1./12.*alist[0] + \
     99              7./12.*alist[1] + \
     100              7./12.*alist[2] - \
     101              1./12.*alist[3]
    100102
    101103    return nfield
  • Source/Python/_config.py

    r5f67883 ra916e8f  
    77#
    88# @Change History:
     9#      June 2020 - Anne Philipp
     10#         - changed template filenames to .template
    911#
    1012# @License:
  • Source/Python/install.py

    r5f67883 ra916e8f  
    1717#        - splitted install function into several smaller pieces
    1818#        - use of tarfile package in python
     19#    June 2020 - Anne Philipp
     20#        - renamed "convert" functions to "fortran" functions
     21#        - reconfigured mk_tarball to select *.template files instead
     22#          of *.nl and *.temp
     23#        - added check for makefile settings
    1924#
    2025# @License:
     
    373378                 for x in UioFiles(_config.PATH_REL_TEST, '*').files]
    374379    tempfiles = [os.path.relpath(x, ecd)
    375                  for x in UioFiles(_config.PATH_REL_TEMPLATES, '*.temp').files]
    376     nlfiles = [os.path.relpath(x, ecd)
    377                for x in UioFiles(_config.PATH_REL_TEMPLATES, '*.nl').files]
     380                 for x in UioFiles(_config.PATH_REL_TEMPLATES, '*.template').files]
    378381    gribtable = [os.path.relpath(x, ecd)
    379382                 for x in UioFiles(_config.PATH_REL_TEMPLATES, '*grib*').files]
     
    387390
    388391    # concatenate single lists to one for a better looping
    389     filelist = pyfiles + pytestfiles + controlfiles + tempfiles + nlfiles + \
     392    filelist = pyfiles + pytestfiles + controlfiles + tempfiles + \
    390393               ffiles + gribtable + hfiles + makefiles + ecmwf_env_file + \
    391394               runfile + jobdir + testfiles +\
  • Source/Python/submit.py

    r5f67883 ra916e8f  
    2121#        - splitted submit function to use genshi templates for the
    2222#          job script and avoid code duplication
     23#    June 2020 - Anne Philipp
     24#        - changed finale job_file to filename from config file
     25#          instead of generating from the template filename
    2326#
    2427# @License:
     
    7275from Mods.get_mars_data import get_mars_data
    7376from Mods.prepare_flexpart import prepare_flexpart
    74 #from Classes.ControlFile import ControlFile
    75 
    7677
    7778# ------------------------------------------------------------------------------
     
    151152
    152153        job_file = os.path.join(_config.PATH_JOBSCRIPTS,
    153                                 jtemplate[:-5] + '.ksh')
     154                                _config.FILE_JOB_OD)
    154155
    155156        # divide time periode into specified number of job chunks
     
    189190
    190191        job_file = os.path.join(_config.PATH_JOBSCRIPTS,
    191                                 jtemplate[:-5] + 'oper.ksh')
     192                                _config.FILE_JOB_OP)
    192193
    193194        c.start_date = '${MSJ_YEAR}${MSJ_MONTH}${MSJ_DAY}'
     
    214215    ----------
    215216    jtemplate : str
    216         Job template file from sub-directory "_templates" for
     217        Job template file from sub-directory "Templates" for
    217218        submission to ECMWF. It contains all necessary
    218219        module and variable settings for the ECMWF environment as well as
  • Templates/jobscript.template

    r5f67883 ra916e8f  
    4949
    5050cd $$$${SCRATCH}
    51 mkdir -p python$$$$$$$$
    52 cd python$$$$$$$$
     51mkdir -p extract$$$$$$$$
     52cd extract$$$$$$$$
    5353
    5454export CONTROL=CONTROL
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG