class_docstr: Test that the ParallaxCorrection class is behaving sensibly.
docstr: Test clearsky correction when areas have different resolutions.
docstr_tok: ["Test","clearsky","correction","when","areas","have","different","resolutions","."]
code: def test_correct_area_clearsky_different_resolutions(
      self, res1, res2
  ):
      """Test clearsky correction when areas have different resolutions."""
      from satpy.modifiers.parallax import ParallaxCorrection
      from satpy.tests.utils import make_fake_scene
  
      # areas with different resolutions, but same coverage
  
      area1 = create_area_def(
          "fribullus_xax",
          4326,
          units="degrees",
          resolution=res1,
          area_extent=[-1, -1, 1, 1],
      )
  
      area2 = create_area_def(
          "fribullus_xax",
          4326,
          units="degrees",
          resolution=res2,
          area_extent=[-1, -1, 1, 1],
      )
  
      with pytest.warns(None) as record:
          sc = make_fake_scene(
              {"CTH_clear": np.full(area1.shape, np.nan)},
              daskify=False,
              area=area1,
              common_attrs=_get_attrs(0, 0, 35_000),
          )
      assert len(record) == 0
  
      corrector = ParallaxCorrection(area2)
      new_area = corrector(sc["CTH_clear"])
      np.testing.assert_allclose(
          new_area.get_lonlats(), area2.get_lonlats()
      )
  
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 5 for calling the TestParallaxCorrectionClass obj's underlying member method code with example usage: obj.test_correct_area_clearsky_different_resolutions(res1, res2) without return types