class_docstr: Test the forward parallax function with various inputs.
docstr: Test parallax correction for mixed cloudy case.
docstr_tok: ["Test","parallax","correction","for","mixed","cloudy","case","."]
code: def test_get_parallax_corrected_lonlats_mixed(self):
      """Test parallax correction for mixed cloudy case."""
      from satpy.modifiers.parallax import (
          get_parallax_corrected_lonlats,
      )
  
      sat_lon = sat_lat = 0
      sat_alt = 35_785_831.0  # m
      lon = da.array([[-20, -10, 0, 10, 20]] * 5)
      lat = da.array([[-20, -10, 0, 10, 20]] * 5).T
      alt = da.array(
          [
              [np.nan, np.nan, 5000.0, 6000.0, np.nan],
              [np.nan, 6000.0, 7000.0, 7000.0, 7000.0],
              [np.nan, 7000.0, 8000.0, 9000.0, np.nan],
              [np.nan, 7000.0, 7000.0, 7000.0, np.nan],
              [np.nan, 4000.0, 3000.0, np.nan, np.nan],
          ]
      )
      (corrected_lon, corrected_lat) = get_parallax_corrected_lonlats(
          sat_lon, sat_lat, sat_alt, lon, lat, alt
      )
      assert corrected_lon.shape == lon.shape
      assert corrected_lat.shape == lat.shape
      # lon/lat should be nan for clear-sky pixels
      assert np.isnan(corrected_lon[np.isnan(alt)]).all()
      assert np.isnan(corrected_lat[np.isnan(alt)]).all()
      # otherwise no nans
      assert np.isfinite(corrected_lon[~np.isnan(alt)]).all()
      assert np.isfinite(corrected_lat[~np.isnan(alt)]).all()
  
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 TestForwardParallax obj's underlying member method code with example usage: obj.test_get_parallax_corrected_lonlats_mixed() without return types