Changeset 64cf353 in flex_extract.git for python/install.py
- Timestamp:
- Feb 8, 2018, 9:54:05 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 02c8c50
- Parents:
- 6180177
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/install.py
ra4b6cef r64cf353 1 1 #!/usr/bin/env python 2 # 3 # This software is licensed under the terms of the Apache Licence Version 2.0 4 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 5 # 6 # Functionality provided: Prepare input 3D-wind fields in hybrid coordinates + surface fields for FLEXPART runs 7 # 8 # Creation: October 2014 - Anne Fouilloux - University of Oslo 9 # Extension November 2015 - Leopold Haimberger - University of Vienna for: 10 # - using the WebAPI also for general MARS retrievals 11 # - job submission on ecgate and cca 12 # - job templates suitable for twice daily operational dissemination 13 # - dividing retrievals of longer periods into digestable chunks 14 # - retrieve also longer term forecasts, not only analyses and short term forecast data 15 # - conversion into GRIB2 16 # - conversion into .fp format for faster execution of FLEXPART 17 # 18 # 19 # Further documentation may be obtained from www.flexpart.eu 20 # 21 # Requirements: 22 # in addition to a standard python 2.6 or 2.7 installation the following packages need to be installed 23 # ECMWF WebMARS, gribAPI with python enabled, emoslib, ecaccess web toolkit, all available from https://software.ecmwf.int/ 24 # dateutils 25 # matplotlib (optional, for debugging) 26 # 27 # 2 # -*- coding: utf-8 -*- 3 #************************************************************************ 4 # TODO AP 5 #AP 6 # - Functionality Provided is not correct for this file 7 # - localpythonpath should not be set in module load section! 8 # - create a class Installation and divide installation in 3 subdefs for 9 # ecgate, local and cca seperatly 10 # - Change History ist nicht angepasst ans File! Original geben lassen 11 #************************************************************************ 12 """ 13 @Author: Anne Fouilloux (University of Oslo) 14 15 @Date: October 2014 16 17 @ChangeHistory: 18 November 2015 - Leopold Haimberger (University of Vienna): 19 - using the WebAPI also for general MARS retrievals 20 - job submission on ecgate and cca 21 - job templates suitable for twice daily operational dissemination 22 - dividing retrievals of longer periods into digestable chunks 23 - retrieve also longer term forecasts, not only analyses and 24 short term forecast data 25 - conversion into GRIB2 26 - conversion into .fp format for faster execution of FLEXPART 27 28 February 2018 - Anne Philipp (University of Vienna): 29 - applied PEP8 style guide 30 - added documentation 31 32 @License: 33 (C) Copyright 2014 UIO. 34 35 This software is licensed under the terms of the Apache Licence Version 2.0 36 which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 37 38 @Requirements: 39 - A standard python 2.6 or 2.7 installation 40 - dateutils 41 - matplotlib (optional, for debugging) 42 - ECMWF specific packages, all available from https://software.ecmwf.int/ 43 ECMWF WebMARS, gribAPI with python enabled, emoslib and 44 ecaccess web toolkit 45 46 @Description: 47 Further documentation may be obtained from www.flexpart.eu. 48 49 Functionality provided: 50 Prepare input 3D-wind fields in hybrid coordinates + 51 surface fields for FLEXPART runs 52 """ 53 # ------------------------------------------------------------------------------ 54 # MODULES 55 # ------------------------------------------------------------------------------ 28 56 import calendar 29 57 import shutil … … 44 72 from prepareFLEXPART import prepareFLEXPART 45 73 46 74 # ------------------------------------------------------------------------------ 75 # FUNCTIONS 76 # ------------------------------------------------------------------------------ 47 77 def main(): 48 78 ''' 49 79 ''' 50 # calledfromdir = os.getcwd()51 80 os.chdir(localpythonpath) 52 81 args, c = install_args_and_control() 53 # if c.outputdir[0]!='/':54 # c.outputdir=os.path.join(calledfromdir,c.outputdir)55 # c.inputdir=c.outputdir56 82 if args.install_target is not None: 57 83 install_via_gateway(c, args.install_target) … … 230 256 print('You should get an email with subject flexcompile \ 231 257 within the next few minutes') 258 232 259 else: 233 260 print('ERROR: unknown installation target ', target)
Note: See TracChangeset
for help on using the changeset viewer.