nctoolkit.DataSet.top

DataSet.top()

top: Extract the top/surface level from a dataset

This extracts the first vertical level from each file in a dataset.

This method is most useful for things like oceanic data, where this method will extract the sea surface.

You may need to double check that the first vertical level is the surface, as this is not always the case.

Examples

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

>>> ds.top()