Changeset a916e8f in flex_extract.git
- Timestamp:
- Jun 11, 2020, 11:14:56 PM (4 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 3a54479
- Parents:
- 0c8c068
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Run/run.sh
r0c8c068 ra916e8f 38 38 OUTPUTDIR=None 39 39 PP_ID=None 40 JOB_TEMPLATE=' jobscript.template'40 JOB_TEMPLATE='submitscript.template' 41 41 CONTROLFILE='CONTROL_EA5' 42 42 DEBUG=0 -
Source/Python/Mods/disaggregation.py
r026b359 ra916e8f 18 18 # to a new module named disaggregation 19 19 # - added the new disaggregation method for precipitation 20 # 21 # June 2020 - Anne Philipp (University of Vienna): 22 # - reformulated formular for dapoly 20 23 # 21 24 # @License: … … 92 95 93 96 """ 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] 100 102 101 103 return nfield -
Source/Python/_config.py
r5f67883 ra916e8f 7 7 # 8 8 # @Change History: 9 # June 2020 - Anne Philipp 10 # - changed template filenames to .template 9 11 # 10 12 # @License: -
Source/Python/install.py
r5f67883 ra916e8f 17 17 # - splitted install function into several smaller pieces 18 18 # - 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 19 24 # 20 25 # @License: … … 373 378 for x in UioFiles(_config.PATH_REL_TEST, '*').files] 374 379 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] 378 381 gribtable = [os.path.relpath(x, ecd) 379 382 for x in UioFiles(_config.PATH_REL_TEMPLATES, '*grib*').files] … … 387 390 388 391 # concatenate single lists to one for a better looping 389 filelist = pyfiles + pytestfiles + controlfiles + tempfiles + nlfiles +\392 filelist = pyfiles + pytestfiles + controlfiles + tempfiles + \ 390 393 ffiles + gribtable + hfiles + makefiles + ecmwf_env_file + \ 391 394 runfile + jobdir + testfiles +\ -
Source/Python/submit.py
r5f67883 ra916e8f 21 21 # - splitted submit function to use genshi templates for the 22 22 # 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 23 26 # 24 27 # @License: … … 72 75 from Mods.get_mars_data import get_mars_data 73 76 from Mods.prepare_flexpart import prepare_flexpart 74 #from Classes.ControlFile import ControlFile75 76 77 77 78 # ------------------------------------------------------------------------------ … … 151 152 152 153 job_file = os.path.join(_config.PATH_JOBSCRIPTS, 153 jtemplate[:-5] + '.ksh')154 _config.FILE_JOB_OD) 154 155 155 156 # divide time periode into specified number of job chunks … … 189 190 190 191 job_file = os.path.join(_config.PATH_JOBSCRIPTS, 191 jtemplate[:-5] + 'oper.ksh')192 _config.FILE_JOB_OP) 192 193 193 194 c.start_date = '${MSJ_YEAR}${MSJ_MONTH}${MSJ_DAY}' … … 214 215 ---------- 215 216 jtemplate : str 216 Job template file from sub-directory " _templates" for217 Job template file from sub-directory "Templates" for 217 218 submission to ECMWF. It contains all necessary 218 219 module and variable settings for the ECMWF environment as well as -
Templates/jobscript.template
r5f67883 ra916e8f 49 49 50 50 cd $$$${SCRATCH} 51 mkdir -p python$$$$$$$$52 cd python$$$$$$$$51 mkdir -p extract$$$$$$$$ 52 cd extract$$$$$$$$ 53 53 54 54 export CONTROL=CONTROL
Note: See TracChangeset
for help on using the changeset viewer.