Changeset 274f9ef in flex_extract.git for source/python/mods/prepare_flexpart.py
- Timestamp:
- Oct 22, 2018, 11:44:47 AM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- db27c09
- Parents:
- 708c667
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/mods/prepare_flexpart.py
r70fee58 r274f9ef 79 79 # ------------------------------------------------------------------------------ 80 80 def main(): 81 ''' 82 @Description: 83 If prepare_flexpart is called from command line, this function controls 84 the program flow and calls the argumentparser function and 85 the prepare_flexpart function for preparation of GRIB data for FLEXPART. 81 '''Controls the program to prepare flexpart input files from mars data. 86 82 87 @Input:88 <nothing>83 This is done if it is called directly from command line. 84 Then it also takes program call arguments and control file input. 89 85 90 @Return: 91 <nothing> 86 Parameters 87 ---------- 88 89 Return 90 ------ 91 92 92 ''' 93 93 … … 105 105 106 106 def prepare_flexpart(ppid, c): 107 ''' 108 @Description: 109 Lists all grib files retrieved from MARS with get_mars_data and 110 uses prepares data for the use in FLEXPART. Specific data fields 111 are converted to a different grid and the flux data are going to be 112 disaggregated. The data fields are collected by hour and stored in 113 a file with a specific FLEXPART relevant naming convention. 107 '''Converts the mars data into flexpart ready input files. 114 108 115 @Input:116 ppid: int117 Contains the ppid number of the current ECMWF job. If it is called118 from this script, it is "None".109 Specific data fields are converted to a different grid and the flux 110 data are going to be disaggregated. The data fields are collected by 111 hour and stored in a file with a specific FLEXPART relevant naming 112 convention. 119 113 120 c: instance of class ControlFile121 Contains all the parameters of CONTROL file and122 command line.123 For more information about format and content of the parameter124 see documentation.114 Parameters 115 ---------- 116 ppid : :obj:`int` 117 Contains the ppid number of the current ECMWF job. It will be None if 118 the method was called within this module. 125 119 126 @Return: 127 <nothing> 120 c : :obj:`ControlFile` 121 Contains all the parameters of CONTROL file and 122 command line. 123 124 Return 125 ------ 126 128 127 ''' 129 128
Note: See TracChangeset
for help on using the changeset viewer.