home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 731741542

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/4598#issuecomment-731741542 https://api.github.com/repos/pydata/xarray/issues/4598 731741542 MDEyOklzc3VlQ29tbWVudDczMTc0MTU0Mg== 17162724 2020-11-22T12:37:15Z 2020-11-22T12:37:15Z CONTRIBUTOR

Which functionality are you looking for in xarray that pandas Timestamp objects provide, but cftime objects do not?

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.tz_localize.html

For a bit more reference. I'm working with HyCOM data and want to keep track of 'local time'.

ds = xr.open_dataset('https://tds.hycom.org/thredds/dodsC/GLBy0.08/latest', decode_times=False) reference_date = ds.time.attrs['units'][12:25] ds['time'] = xr.cftime_range(start=reference_date, periods=len(ds.time), freq='3H')

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  748229907
Powered by Datasette · Queries took 7.275ms · About: xarray-datasette