class_docstr: Test NDVI-weighted hybrid green correction of green band.
class_docstr_tok: ["Test","NDVI-weighted","hybrid","green","correction","of","green","band","."]
docstr: Test the case where an input (typically the red band) has a slightly different coordinate.
  
  If match_data_arrays is called correctly, the coords will be aligned and the array will have the expected shape.
docstr_tok: ["Test","the","case","where","an","input","(","typically","the","red","band",")","has","a","slightly","different","coordinate",".","If","match_data_arrays","is","called","correctly",",","the","coords","will","be","aligned","and","the","array","will","have","the","expected","shape","."]
code: def test_with_slightly_mismatching_coord_input(self):
      """Test the case where an input (typically the red band) has a slightly different coordinate.
  
      If match_data_arrays is called correctly, the coords will be aligned and the array will have the expected shape.
  
      """
      comp = NDVIHybridGreen(
          "ndvi_hybrid_green",
          limits=(0.15, 0.05),
          prerequisites=(0.51, 0.65, 0.85),
          standard_name="toa_bidirectional_reflectance",
      )
  
      c02_bad_shape = self.c02.copy()
      c02_bad_shape.coords["y"] = [1.1, 2.0]
      res = comp((self.c01, c02_bad_shape, self.c03))
      assert res.shape == (2, 2)
  
file_path: satpy/satpy/tests/compositor_tests/test_spectral.py
imports: import dask
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.composites.spectral import HybridGreen, NDVIHybridGreen, SpectralBlender
  from satpy.tests.utils import CustomScheduler
label_desc: Use image node_id 6 for calling the TestNdviHybridGreenCompositor obj's underlying member method code with example usage: obj.test_with_slightly_mismatching_coord_input() without return types