Changeset 6f951ca in flex_extract.git for source/python/mods/prepare_flexpart.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/mods/prepare_flexpart.py
r9aefaad r6f951ca 22 22 # - added documentation 23 23 # - minor changes in programming style for consistence 24 # - BUG : removed call of clean_up-Function after call of24 # - BUGFIX: removed call of clean_up-Function after call of 25 25 # prepareFlexpart in main since it is already called in 26 26 # prepareFlexpart at the end! … … 29 29 # 30 30 # @License: 31 # (C) Copyright 2014-2018. 31 # (C) Copyright 2014-2019. 32 # Anne Philipp, Leopold Haimberger 32 33 # 33 # This software is licensed under the terms of the Apache Licence Version 2.0 34 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 35 # 36 # @Program Functionality: 37 # This program prepares the final version of the grib files which are 38 # then used by FLEXPART. It converts the bunch of grib files extracted 39 # via get_mars_data by doing for example the necessary conversion to get 40 # consistent grids or the disaggregation of flux data. Finally, the 41 # program combines the data fields in files per available hour with the 42 # naming convention xxYYMMDDHH, where xx should be 2 arbitrary letters 43 # (mostly xx is chosen to be "EN"). 44 # 45 # @Program Content: 46 # - main 47 # - prepare_flexpart 48 # 34 # This work is licensed under the Creative Commons Attribution 4.0 35 # International License. To view a copy of this license, visit 36 # http://creativecommons.org/licenses/by/4.0/ or send a letter to 37 # Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 49 38 #******************************************************************************* 39 '''This script prepares the final version of the grib files which are 40 then used by FLEXPART. 41 42 It converts the bunch of grib files extracted via get_mars_data before, 43 by doing the necessary conversion to get consistent grids or the 44 disaggregation of flux data. Finally, the data fields are combined 45 in files per available hour with the naming convention xxYYMMDDHH, 46 where xx should be 2 arbitrary letters (mostly xx is chosen to be "EN"). 47 48 This file can also be imported as a module which then contains the following 49 functions: 50 51 * main 52 * prepare_flexpart 53 54 Type: prepare_flexpart.py --help 55 to get information about command line parameters. 56 Read the documentation for usage instructions. 57 ''' 50 58 51 59 # ------------------------------------------------------------------------------ … … 59 67 60 68 # software specific classes and modules from flex_extract 61 69 # add path to local main python path for flex_extract to get full access 62 70 sys.path.append(os.path.dirname(os.path.abspath( 63 71 inspect.getfile(inspect.currentframe()))) + '/../') … … 115 123 Parameters 116 124 ---------- 117 ppid : :obj:`int`125 ppid : int 118 126 Contains the ppid number of the current ECMWF job. It will be None if 119 127 the method was called within this module. 120 128 121 c : :obj:`ControlFile`129 c : ControlFile 122 130 Contains all the parameters of CONTROL file and 123 131 command line.
Note: See TracChangeset
for help on using the changeset viewer.