Skip to content

cftime-manipulation methods #193

Open
@aulemahal

Description

@aulemahal

At xclim, we implemented some methods for dealing with cftime arrays in xarray. I was wondering if any of this could be of interest for cf-xarray? We are planning to add cf-xarray as a dependency in the near future, so moving some functionality over here would make sense for everyone.

The two functions that could be interesting:

  • xclim.core.calendar.convert_calendar, it converts datetime variables to other calendars, handling missing days and stuff like that. It could be made available as ds.time.cf.convert_calendar or simply as an helper I guess.
  • xclim.core.calender.interp_calendar, same but instead of converting dates it interpolates data on a yearly basis. This might be too narrow for cf-xarray, because it only makes sense on data coarser than daily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions