nctoolkit.DataSet.spatial_percentile
- DataSet.spatial_percentile(p=None)
spatial_percentile: Calculate the spatial percentile for all variables
This is performed for each time step.
- Parameters:
p (int or float) – Percentile to calculate. 0<=p<=100.
Examples
If you want to calculate the median of each variable across space for a dataset, just do the following:
>>> ds.spatial_percentile(50)