class_docstr: Test creating new Scenes by cropping an existing Scene.
docstr: Test the crop method on multi-dimensional data.
docstr_tok: ["Test","the","crop","method","on","multi-dimensional","data","."]
code: def test_crop_rgb(self):
      """Test the crop method on multi-dimensional data."""
      from pyresample.geometry import AreaDefinition
  
      scene1 = Scene()
      area_extent = (
          -5570248.477339745,
          -5561247.267842293,
          5567248.074173927,
          5570248.477339745,
      )
      proj_dict = {
          "a": 6378169.0,
          "b": 6356583.8,
          "h": 35785831.0,
          "lon_0": 0.0,
          "proj": "geos",
          "units": "m",
      }
      x_size = 3712
      y_size = 3712
      area_def = AreaDefinition(
          "test",
          "test",
          "test",
          proj_dict,
          x_size,
          y_size,
          area_extent,
      )
      area_def2 = AreaDefinition(
          "test2",
          "test2",
          "test2",
          proj_dict,
          x_size // 2,
          y_size // 2,
          area_extent,
      )
      scene1["1"] = xr.DataArray(
          np.zeros((3, y_size, x_size)),
          dims=("bands", "y", "x"),
          attrs={"area": area_def},
      )
      scene1["2"] = xr.DataArray(
          np.zeros((y_size // 2, 3, x_size // 2)),
          dims=("y", "bands", "x"),
          attrs={"area": area_def2},
      )
  
      # by lon/lat bbox
      new_scn1 = scene1.crop(ll_bbox=(-20.0, -5.0, 0, 0))
      assert "1" in new_scn1
      assert "2" in new_scn1
      assert "bands" in new_scn1["1"].dims
      assert "bands" in new_scn1["2"].dims
      assert new_scn1["1"].shape == (3, 184, 714)
      assert new_scn1["2"].shape == (92, 3, 357)
  
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 3 for calling the TestSceneCrop obj's underlying member method code with example usage: obj.test_crop_rgb() without return types