Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions doc/user-guide/time-series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ resampling group:

ds.resample(time="6H").reduce(np.mean)

You can also resample on the time dimension while applying reducing along other dimensions at the same time
by specifying the `dim` keyword argument

.. code-block:: python

ds.resample(time="6H").mean(dim=["time", "latitude", "longitude"])

For upsampling, xarray provides six methods: ``asfreq``, ``ffill``, ``bfill``, ``pad``,
``nearest`` and ``interpolate``. ``interpolate`` extends ``scipy.interpolate.interp1d``
and supports all of its schemes. All of these resampling operations work on both
Expand Down