bottom: Extract the bottom level from a dataset

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

You may need to double check that the bottom vertical level is the sea ‘bottom’ etc., as this is not always the case.

Use bottom_mask for files when the bottom cell in netCDF files do not represent the actual bottom.


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

>>> ds.bottom()

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