home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1241523928

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/7012#issuecomment-1241523928 https://api.github.com/repos/pydata/xarray/issues/7012 1241523928 IC_kwDOAMm_X85KACbY 10194086 2022-09-09T05:46:16Z 2022-09-09T05:46:16Z MEMBER

I cannot reproduce this (on master but I don't think we touched this since 2022.06):

python import xarray as xr import cf_xarray air = xr.tutorial.open_dataset("air_temperature") air.resample(time="MS").mean(dim="time").lat Returns <xarray.DataArray 'lat' (lat: 25)> array([75. , 72.5, 70. , 67.5, 65. , 62.5, 60. , 57.5, 55. , 52.5, 50. , 47.5, 45. , 42.5, 40. , 37.5, 35. , 32.5, 30. , 27.5, 25. , 22.5, 20. , 17.5, 15. ], dtype=float32) Coordinates: * lat (lat) float32 75.0 72.5 70.0 67.5 65.0 ... 25.0 22.5 20.0 17.5 15.0 Attributes: standard_name: latitude long_name: Latitude units: degrees_north axis: Y Would be interesting to get to the bottom of this.

(Funny enough - the attrs are not even dropped for r.mean(keep_attrs=False).lat.)

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