Matthew Long

Results 19 comments of Matthew Long

on second thought, I think resample only works on time axes.

I think pandas is too restrictive for our data: ``` When decoding/encoding datetimes for non-standard calendars or for dates before year 1678 or after year 2262, xarray uses the cftime...

Yes. The issue is that cftime doesn’t work with resample and pandas time is too restrictive.

That works, thanks. I will need to get to know this code better and perhaps we can discuss how to improve the interface. The original intent was to provide this...

This issue arises when `time_bound` is a coordinate, which results from reading data in via `intake_esm`. Should we be treating this case, at least in notifying the user?

Here are some prototype functions that accomplish some of this functionality. ```python def infer_lat_name(ds): lat_names = ['latitude', 'lat'] for n in lat_names: if n in ds: return n raise ValueError('could...

With grid vertices, it should be possible to have a more general algorithm. cc @klindsay28

As discussed in #48 there are a variety of imperfect options for determining "time". I suggest we check for a single `unlimited_dim` and use that as the default. If there...

@andersy005 I would prefer to look for a variable named "time" in the triage approach. How about the following? ``` def infer_time_coord_name(ds): if "time" in ds.variables: return "time" unlimited_dims =...