nctoolkit.DataSet.bottom

Contents

nctoolkit.DataSet.bottom#

DataSet.bottom(choice='level')#

bottom: Extract the bottom level or value from a dataset

This extracts the bottom level or value from each netCDF file. Please note that for ensembles, it uses the first file to derive the index of the bottom level.

Parameters:

choice (str) – Set to ‘level’ to extract the bottom level, or ‘value’ to extract the bottommost non-missing value.

Examples

If you wanted to extract the bottom vertical level of a dataset, do the following:

>>> ds.bottom(choice = 'level')

This method is most useful for things like oceanic model data, where the bottom cell corresponds to the bottom of the ocean.

If you wanted to find the deepest non-missing value in a dataset, you would do the following:

>>> ds.bottom(choice = 'value')