class_docstr: Test individual functions used for blending.
class_docstr_tok: ["Test","individual","functions","used","for","blending","."]
docstr: X-Array datasets with area definition plus weights for input to tests.
docstr_tok: ["X-Array","datasets","with","area","definition","plus","weights","for","input","to","tests","."]
code: def datasets_and_weights(self):
      """X-Array datasets with area definition plus weights for input to tests."""
      shape = (8, 12)
      area = AreaDefinition(
          "test",
          "test",
          "test",
          {"proj": "geos", "lon_0": -95.5, "h": 35786023.0},
          shape[1],
          shape[0],
          [-200, -200, 200, 200],
      )
  
      ds1 = xr.DataArray(
          da.ones(shape, chunks=-1),
          dims=("y", "x"),
          attrs={
              "start_time": datetime(2018, 1, 1, 0, 0, 0),
              "area": area,
          },
      )
      ds2 = xr.DataArray(
          da.ones(shape, chunks=-1) * 2,
          dims=("y", "x"),
          attrs={
              "start_time": datetime(2018, 1, 1, 1, 0, 0),
              "area": area,
          },
      )
      ds3 = xr.DataArray(
          da.ones(shape, chunks=-1) * 3,
          dims=("y", "x"),
          attrs={
              "start_time": datetime(2018, 1, 1, 1, 0, 0),
              "area": area,
          },
      )
  
      ds4 = xr.DataArray(
          da.zeros(shape, chunks=-1),
          dims=("y", "time"),
          attrs={
              "start_time": datetime(2018, 1, 1, 0, 0, 0),
              "area": area,
          },
      )
      ds5 = xr.DataArray(
          da.zeros(shape, chunks=-1),
          dims=("y", "time"),
          attrs={
              "start_time": datetime(2018, 1, 1, 1, 0, 0),
              "area": area,
          },
      )
  
      wgt1 = xr.DataArray(
          da.ones(shape, chunks=-1),
          dims=("y", "x"),
          attrs={
              "start_time": datetime(2018, 1, 1, 0, 0, 0),
              "area": area,
          },
      )
      wgt2 = xr.DataArray(
          da.zeros(shape, chunks=-1),
          dims=("y", "x"),
          attrs={
              "start_time": datetime(2018, 1, 1, 0, 0, 0),
              "area": area,
          },
      )
      wgt3 = xr.DataArray(
          da.zeros(shape, chunks=-1),
          dims=("y", "x"),
          attrs={
              "start_time": datetime(2018, 1, 1, 0, 0, 0),
              "area": area,
          },
      )
  
      datastruct = {
          "shape": shape,
          "area": area,
          "datasets": [ds1, ds2, ds3, ds4, ds5],
          "weights": [wgt1, wgt2, wgt3],
      }
      return datastruct
  
imports: from datetime import datetime
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy import DataQuery, Scene
  from satpy.multiscene import stack, timeseries
  from satpy.tests.multiscene_tests.test_utils import DEFAULT_SHAPE, _create_test_area, _create_test_dataset, _create_test_int8_dataset
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 4 for calling the TestBlendFuncs obj's underlying member method code with example usage: obj.datasets_and_weights() and returns: datastruct