class_docstr: Container for multiple `Scene` objects.
class_docstr_tok: ["Container","for","multiple","`","Scene","`","objects","."]
docstr: Blend the datasets into one scene.
  
  Reduce the :class:`MultiScene` to a single :class:`~satpy.scene.Scene`.  Datasets
  occurring in each scene will be passed to a blending
  function, which shall take as input a list of datasets
  (:class:`xarray.DataArray` objects) and shall return a single
  dataset (:class:`xarray.DataArray` object).  The blend method
  then assigns those datasets to the blended scene.
  
  Blending functions provided in this module are :func:`stack`
  (the default), :func:`timeseries`, and :func:`temporal_rgb`, but the Python built-in
  function :func:`sum` also works and may be appropriate for
  some types of data.
  
  .. note::
  
      Blending is not currently optimized for generator-based
      MultiScene.
code: def blend(
      self, blend_function: Callable[..., xr.DataArray] | None = None
  ) -> Scene:
      """Blend the datasets into one scene.
  
      Reduce the :class:`MultiScene` to a single :class:`~satpy.scene.Scene`.  Datasets
      occurring in each scene will be passed to a blending
      function, which shall take as input a list of datasets
      (:class:`xarray.DataArray` objects) and shall return a single
      dataset (:class:`xarray.DataArray` object).  The blend method
      then assigns those datasets to the blended scene.
  
      Blending functions provided in this module are :func:`stack`
      (the default), :func:`timeseries`, and :func:`temporal_rgb`, but the Python built-in
      function :func:`sum` also works and may be appropriate for
      some types of data.
  
      .. note::
  
          Blending is not currently optimized for generator-based
          MultiScene.
  
      """
      if blend_function is None:
          # delay importing blend funcs until now in case they aren't used
          from ._blend_funcs import stack
  
          blend_function = stack
  
      new_scn = Scene()
      common_datasets = self.shared_dataset_ids
      for ds_id in common_datasets:
          datasets = [scn[ds_id] for scn in self.scenes if ds_id in scn]
          new_scn[ds_id] = blend_function(datasets)
  
      return new_scn
  
imports: from __future__ import annotations
  import copy
  import logging
  import warnings
  from queue import Queue
  from threading import Thread
  from typing import Callable, Collection, Mapping
  import dask.array
  import numpy
  import xarray
  from satpy.dataset import DataID
  from satpy.scene import Scene
  from satpy.writers import get_enhanced_image, split_results
label_desc: Use image node_id 16 for calling the MultiScene obj's underlying member method code with example usage: obj.blend(blend_function) and returns: new_scn