class_docstr: Test resampling a Scene to another Scene object.
docstr: Test that the Scene reducing data does not affect final output.
docstr_tok: ["Test","that","the","Scene","reducing","data","does","not","affect","final","output","."]
code: def test_resample_reduce_data(self):
      """Test that the Scene reducing data does not affect final output."""
      from pyresample.geometry import AreaDefinition
  
      proj_str = (
          "+proj=lcc +datum=WGS84 +ellps=WGS84 "
          "+lon_0=-95. +lat_0=25 +lat_1=25 +units=m +no_defs"
      )
      area_def = AreaDefinition(
          "test",
          "test",
          "test",
          proj_str,
          20,
          20,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
      scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
  
      scene.load(["comp19"])
      scene["comp19"].attrs["area"] = area_def
      dst_area = AreaDefinition(
          "dst",
          "dst",
          "dst",
          proj_str,
          20,
          20,
          (-1000.0, -1500.0, 0.0, 0.0),
      )
      new_scene1 = scene.resample(dst_area, reduce_data=False)
      new_scene2 = scene.resample(dst_area)
      new_scene3 = scene.resample(dst_area, reduce_data=True)
      assert new_scene1["comp19"].shape == (20, 20, 3)
      assert new_scene2["comp19"].shape == (20, 20, 3)
      assert new_scene3["comp19"].shape == (20, 20, 3)
  
imports: from unittest import mock
  import numpy
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
  from satpy.dataset.dataid import default_id_keys_config
  from satpy.tests.utils import make_cid, make_dataid
label_desc: Use image node_id 8 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_resample_reduce_data() without return types