class_docstr: Test resampling a Scene to another Scene object.
docstr: Test that multiple ancillary variables are retained after resampling.
  
  This test corresponds to GH#2329
docstr_tok: ["Test","that","multiple","ancillary","variables","are","retained","after","resampling",".","This","test","corresponds","to","GH","#","2329"]
code: def test_resample_multi_ancillary(self):
      """Test that multiple ancillary variables are retained after resampling.
  
      This test corresponds to GH#2329
      """
      from pyresample import create_area_def
  
      sc = Scene()
      n = 5
      ar = create_area_def(
          "a", 4087, resolution=1000, center=(0, 0), shape=(n, n)
      )
      anc_vars = [
          xr.DataArray(
              np.arange(n * n).reshape(n, n) * i,
              dims=("y", "x"),
              attrs={"name": f"anc{i:d}", "area": ar},
          )
          for i in range(2)
      ]
      sc["test"] = xr.DataArray(
          np.arange(n * n).reshape(n, n),
          dims=("y", "x"),
          attrs={
              "area": ar,
              "name": "test",
              "ancillary_variables": anc_vars,
          },
      )
      subset = create_area_def(
          "b", 4087, resolution=800, center=(0, 0), shape=(n - 1, n - 1)
      )
      ls = sc.resample(subset)
      assert [
          av.attrs["name"]
          for av in sc["test"].attrs["ancillary_variables"]
      ] == [
          av.attrs["name"]
          for av in ls["test"].attrs["ancillary_variables"]
      ]
  
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 7 for calling the TestSceneResampling obj's underlying member method code with example usage: obj.test_resample_multi_ancillary() without return types