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_ancillary(self):
      """Test that the Scene reducing data does not affect final output."""
      from pyresample.geometry import AreaDefinition
      from pyresample.utils import proj4_str_to_dict
  
      proj_dict = proj4_str_to_dict(
          "+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_dict,
          5,
          5,
          (-1000.0, -1500.0, 1000.0, 1500.0),
      )
      scene = Scene(filenames=["fake1_1.txt"], reader="fake1")
  
      scene.load(["comp19", "comp20"])
      scene["comp19"].attrs["area"] = area_def
      scene["comp19"].attrs["ancillary_variables"] = [scene["comp20"]]
      scene["comp20"].attrs["area"] = area_def
  
      dst_area = AreaDefinition(
          "dst",
          "dst",
          "dst",
          proj_dict,
          2,
          2,
          (-1000.0, -1500.0, 0.0, 0.0),
      )
      new_scene = scene.resample(dst_area)
      assert (
          new_scene["comp20"]
          is new_scene["comp19"].attrs["ancillary_variables"][0]
      )
  
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 6 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_resample_ancillary() without return types