class_docstr: Test that the ParallaxCorrection class is behaving sensibly.
docstr: Test ParallaxCorrection for partly cloudy situation.
docstr_tok: ["Test","ParallaxCorrection","for","partly","cloudy","situation","."]
code: def test_correct_area_partlycloudy(self, daskify):
      """Test ParallaxCorrection for partly cloudy situation."""
      from satpy.modifiers.parallax import ParallaxCorrection
      from satpy.tests.utils import make_fake_scene
  
      small = 5
      large = 9
      (fake_area_small, fake_area_large) = _get_fake_areas(
          (0, 50), [small, large], 0.1
      )
      (fake_area_lons, fake_area_lats) = fake_area_small.get_lonlats()
      corrector = ParallaxCorrection(fake_area_small)
  
      sc = make_fake_scene(
          {
              "CTH": np.array(
                  [
                      [
                          np.nan,
                          np.nan,
                          5000.0,
                          6000.0,
                          7000.0,
                          6000.0,
                          5000.0,
                          np.nan,
                          np.nan,
                      ],
                      [
                          np.nan,
                          6000.0,
                          7000.0,
                          7000.0,
                          7000.0,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                      ],
                      [
                          np.nan,
                          7000.0,
                          8000.0,
                          9000.0,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                      ],
                      [
                          np.nan,
                          7000.0,
                          7000.0,
                          7000.0,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                      ],
                      [
                          np.nan,
                          4000.0,
                          3000.0,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                          np.nan,
                      ],
                      [
                          np.nan,
                          np.nan,
                          5000.0,
                          8000.0,
                          8000.0,
                          8000.0,
                          6000.0,
                          np.nan,
                          np.nan,
                      ],
                      [
                          np.nan,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          np.nan,
                      ],
                      [
                          np.nan,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          np.nan,
                      ],
                      [
                          np.nan,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          9000.0,
                          np.nan,
                      ],
                  ]
              )
          },
          daskify=daskify,
          area=fake_area_large,
          common_attrs=_get_attrs(0, 0, 40_000),
      )
      new_area = corrector(sc["CTH"])
      assert new_area.shape == fake_area_small.shape
      (new_lons, new_lats) = new_area.get_lonlats()
      assert fake_area_lons[3, 4] != new_lons[3, 4]
  
      np.testing.assert_allclose(
          new_lons,
          np.array(
              [
                  [np.nan, np.nan, 0.0, 0.1, 0.2],
                  [-0.20078652, -0.10044222, 0.0, 0.1, 0.2],
                  [-0.20068529, -0.10034264, 0.0, 0.1, 0.2],
                  [np.nan, np.nan, np.nan, np.nan, np.nan],
                  [
                      -0.20048537,
                      -0.10038778,
                      0.0,
                      0.10038778,
                      0.20058219,
                  ],
              ]
          ),
          rtol=1e-5,
      )
      np.testing.assert_allclose(
          new_lats,
          np.array(
              [
                  [np.nan, np.nan, 50.2, 50.2, 50.2],
                  [50.2110675, 50.22493181, 50.1, 50.1, 50.1],
                  [50.09680357, 50.09680346, 50.0, 50.0, 50.0],
                  [np.nan, np.nan, np.nan, np.nan, np.nan],
                  [
                      49.86860622,
                      49.9097198,
                      49.90971976,
                      49.9097198,
                      49.88231496,
                  ],
              ]
          ),
          rtol=1e-6,
      )
  
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 4 for calling the TestParallaxCorrectionClass obj's underlying member method code with example usage: obj.test_correct_area_partlycloudy(daskify) without return types