home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1206361835

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/6879#issuecomment-1206361835 https://api.github.com/repos/pydata/xarray/issues/6879 1206361835 IC_kwDOAMm_X85H557r 12760310 2022-08-05T11:53:15Z 2022-08-05T11:53:30Z NONE

Thanks for the issue.

I would claim that this is the correct broadcasting behavior.

You could obtain your required result using

python ds_mask = xr.Dataset({"t_2m_min_anom": mask, "t_2m_min_anom_stations": True}) data.where(ds_mask)

Hey, thanks for the workaround. However, I'm still not convinced that this is the "correct" behaviour. If mask has as explicit coodinates lat and lon it should only be applied to variables that have these coordinates.

What is the use case in enlarging the 1-D array to a 3-D array with coordinates that it didn't have before?

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