ConceptPythonBeginner Labeled arrays: why broadcasting by name cannot pick the wrong axis t = xr.DataArray(T, dims=("time", "lat", "lon"), coords={"time": time, "lat": lat, "lon": lon})other = xr.DataArray(ref, dims=("lat", "lon"), coords={"lat": lat2, "lon": lon})shifted = xr.DataArray(zm_t.values, dims="lat", coords={"lat": lat + 1e-9})
ToolPythonBeginner xarray from the ground up: two years of air temperature over North America lat_c = xr.DataArray([46.9, 47.6], dims="city", coords={"city": city})lon_c = xr.DataArray([-96.8 % 360, -122.3 % 360], dims="city", coords={"city": city})