How can I replace values in an xarray variable?
问题 I have an xarray dataset ds <xarray.Dataset> Dimensions: (elevation_band: 4, latitude: 1, longitude: 1) Coordinates: * longitude (longitude) float64 -111.4 * latitude (latitude) float64 44.51 * elevation_band (elevation_band) int32 1 2 3 4 Data variables: area_frac (elevation_band, latitude, longitude) float64 0.005109 ... mean_elev (elevation_band, latitude, longitude) float64 2.45e+03 ... prec_frac (elevation_band, latitude, longitude) float64 0.005109 ... And I want to replace the values