nctoolkit.DataSet.spatial_percentile

DataSet.spatial_percentile(self, p=None)

Calculate the spatial sum for all variables This is performed for each time step. :param p: Percentile to calculate. 0<=p<=100. :type p: int or float

Examples

If you want to calculate the median of each variable across space for a dataset, just do the following:

>>> ds.spatial_percentile(50)