Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: sketch of resample support for CFTimeIndex #2458

Closed
wants to merge 2 commits into from

Commits on Oct 2, 2018

  1. WIP: sketch of resample support for CFTimeIndex

    Example usage:
    
    >>> import xarray
    >>> times = xarray.cftime_range('2000', periods=30, freq='MS')
    >>> da = xarray.DataArray(range(30), [('time', times)])
    >>> da.resample(time='1AS').mean()
    <xarray.DataArray (time: 3)>
    array([ 5.5, 17.5, 26.5])
    Coordinates:
      * time     (time) object 2001-01-01 00:00:00 ... 2003-01-01 00:00:00
    shoyer committed Oct 2, 2018
    Copy the full SHA
    fe700d7 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2018

  1. Copy the full SHA
    b488148 View commit details
    Browse the repository at this point in the history