class_docstr: Test that the ParallaxCorrection class is behaving sensibly.
docstr: Test that ParallaxCorrection doesn't touch SSP.
docstr_tok: ["Test","that","ParallaxCorrection","does","n't","touch","SSP","."]
code: def test_correct_area_ssp(self, lat, lon, resolution):
      """Test that ParallaxCorrection doesn't touch SSP."""
      from satpy.modifiers.parallax import ParallaxCorrection
      from satpy.tests.utils import make_fake_scene
  
      codes = {
          (0, 0): 4326,
          (0, 40): 4326,
          (0, 180): 3575,
          (90, 0): 3575,
      }
      small = 5
      large = 9
      (fake_area_small, fake_area_large) = _get_fake_areas(
          (lon, lat), [small, large], resolution, code=codes[(lat, lon)]
      )
      corrector = ParallaxCorrection(fake_area_small)
  
      sc = make_fake_scene(
          {"CTH_constant": np.full((large, large), 10000)},
          daskify=False,
          area=fake_area_large,
          common_attrs=_get_attrs(lat, lon, 35_000),
      )
      new_area = corrector(sc["CTH_constant"])
      assert new_area.shape == fake_area_small.shape
      old_lonlats = fake_area_small.get_lonlats()
      new_lonlats = new_area.get_lonlats()
      if lat != 90:  # don't check SSP longitude if lat=90
          np.testing.assert_allclose(
              old_lonlats[0][2, 2], new_lonlats[0][2, 2], atol=1e-9
          )
          np.testing.assert_allclose(
              old_lonlats[0][2, 2], lon, atol=1e-9
          )
      np.testing.assert_allclose(
          old_lonlats[1][2, 2], new_lonlats[1][2, 2], atol=1e-9
      )
      np.testing.assert_allclose(old_lonlats[1][2, 2], lat, atol=1e-9)
  
imports: import datetime
  import logging
  import math
  import os
  import unittest.mock
  import dask.array
  import dask.config
  import numpy
  import pyorbital.tlefile
  import pyresample.kd_tree
  import pytest
  import xarray
  from pyproj import Geod
  from pyresample import create_area_def
  import satpy.resample
  from satpy.tests.utils import xfail_skyfield_unstable_numpy2
  from satpy.writers import get_enhanced_image
label_desc: Use image node_id 3 for calling the TestParallaxCorrectionClass obj's underlying member method code with example usage: obj.test_correct_area_ssp(lat, lon, resolution) without return types