Public Member Functions | |
def | __init__ |
def | get_horiz_slice |
def | get_deposition |
def | get_volume |
def | get_horiz_timeseries |
def | get_deposition_timeseries |
def | get_volume_timeseries |
def | get_timestamp_list |
Private Attributes | |
_output_dir | |
_Header | |
High level interface to encapsulate and provide access to the output of a specified FLEXPART simulation
Definition at line 15 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.__init__ | ( | self, | |
output_dir = None , |
|||
nest = False |
|||
) |
Constructor output_dir: full path to directory of FLEXPART output nest: Denotes whether this object is for the mother grid or a nest
Definition at line 20 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_deposition | ( | self, | |
timestamp = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
depo_type = 'dry' |
|||
) |
Extracts 2D horizontal slice of deposition. Note that species and release index values for the user start at 1, but they are all decremented internal to this method so they start at 0. Returned 2D grid is a NumPy array Note that if timestamp is not defined, then a timestamp "close to the middle" will be selected. If there is any kind of error, we return None
Definition at line 99 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_deposition_timeseries | ( | self, | |
timestamp_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 , |
|||
depo_type = 'dry' |
|||
) |
Extracts timeseries of 2D deposition. If timestamp_list is defined correctly, it extracts just the timestamps (in YYYYMMDDHHMMss format) listed. Otherwise, it extracts all timestamps. The timeseries is returned in a 3D NumPy array, indexed by (t, x, y)
Definition at line 309 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_horiz_slice | ( | self, | |
timestamp = None , |
|||
level = 1 , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 |
|||
) |
Extracts 2D horizontal slice. Note that level, species and release index values for the user start at 1, but they are all decremented internal to this method so they start at 0. Returned 2D grid is a NumPy array Note that if timestamp is not defined, then a timestamp "close to the middle" will be selected. If there is any kind of error, we return None
Definition at line 41 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_horiz_timeseries | ( | self, | |
timestamp_list = None , |
|||
level = 1 , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 |
|||
) |
Extracts timeseries of 2D horizontal slices. If timestamp_list is defined correctly, it extracts just the timestamps (in YYYYMMDDHHMMss format) listed. Otherwise, it extracts all timestamps. The timeseries is returned in a 3D NumPy array, indexed by (t, x, y)
Definition at line 269 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_timestamp_list | ( | self | ) |
Returns the list of timestamps as Python list
Definition at line 394 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_volume | ( | self, | |
timestamp = None , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 |
|||
) |
Extracts 3D volume. if level_list is not defined, we return the full volume for the timestamp. If level_list is defined,then we extract the specified levels and create a volume from them Note that level, species and release index values for the user start at 1, but they are all decremented internal to this method so they start at 0. Returned 2D grid is a NumPy array If there is any kind of error, we return None
Definition at line 198 of file FlexpartOutput.py.
def flextest.flexread.FlexpartOutput.FlexpartOutput.get_volume_timeseries | ( | self, | |
timestamp_list = None , |
|||
level_list = None , |
|||
species = 1 , |
|||
release = 1 , |
|||
age_class = 1 |
|||
) |
Extracts timeseries of 2D horizontal slices. If timestamp_list is defined correctly, it extracts just the timestamps (in YYYYMMDDHHMMss format) listed. Otherwise, it extracts all timestamps. The timeseries is returned in a 3D NumPy array, indexed by (t, x, y)
Definition at line 351 of file FlexpartOutput.py.
|
private |
Definition at line 33 of file FlexpartOutput.py.
|
private |
Definition at line 29 of file FlexpartOutput.py.