class_docstr: Test the filehandler.
class_docstr_tok: ["Test","the","filehandler","."]
docstr: Test reading the lon and lats.
docstr_tok: ["Test","reading","the","lon","and","lats","."]
code: def test_interpolation_angles(self):
      """Test reading the lon and lats."""
      with tempfile.TemporaryFile() as tmpfile:
          self._header.tofile(tmpfile)
          tmpfile.seek(22016, 0)
          self._data.tofile(tmpfile)
          fh = AVHRRAAPPL1BFile(
              tmpfile, self.filename_info, self.filetype_info
          )
  
          sunz40km = np.array(
              [
                  [
                      122.42,
                      121.72,
                      121.14,
                      120.63,
                      120.19,
                      119.79,
                      119.43,
                      119.1,
                      118.79,
                      118.51,
                      118.24,
                      117.99,
                      117.76,
                      117.53,
                      117.31,
                      117.1,
                      116.9,
                      116.71,
                      116.52,
                      116.33,
                      116.15,
                      115.97,
                      115.79,
                      115.61,
                      115.44,
                      115.26,
                      115.08,
                      114.91,
                      114.73,
                      114.55,
                      114.36,
                      114.18,
                      113.98,
                      113.79,
                      113.58,
                      113.37,
                      113.15,
                      112.92,
                      112.68,
                      112.43,
                      112.15,
                      111.87,
                      111.55,
                      111.22,
                      110.85,
                      110.44,
                      109.99,
                      109.47,
                      108.88,
                      108.18,
                      107.33,
                  ],
                  [
                      122.41,
                      121.71,
                      121.13,
                      120.62,
                      120.18,
                      119.78,
                      119.42,
                      119.09,
                      118.78,
                      118.5,
                      118.24,
                      117.99,
                      117.75,
                      117.52,
                      117.31,
                      117.1,
                      116.9,
                      116.7,
                      116.51,
                      116.32,
                      116.14,
                      115.96,
                      115.78,
                      115.6,
                      115.43,
                      115.25,
                      115.08,
                      114.9,
                      114.72,
                      114.54,
                      114.36,
                      114.17,
                      113.98,
                      113.78,
                      113.57,
                      113.36,
                      113.14,
                      112.91,
                      112.67,
                      112.42,
                      112.15,
                      111.86,
                      111.55,
                      111.21,
                      110.84,
                      110.43,
                      109.98,
                      109.46,
                      108.87,
                      108.17,
                      107.32,
                  ],
              ]
          )
          satz40km = np.array(
              [
                  [
                      6.623e01,
                      6.281e01,
                      5.960e01,
                      5.655e01,
                      5.360e01,
                      5.075e01,
                      4.797e01,
                      4.524e01,
                      4.256e01,
                      3.992e01,
                      3.731e01,
                      3.472e01,
                      3.216e01,
                      2.962e01,
                      2.710e01,
                      2.460e01,
                      2.210e01,
                      1.962e01,
                      1.714e01,
                      1.467e01,
                      1.221e01,
                      9.760e00,
                      7.310e00,
                      4.860e00,
                      2.410e00,
                      3.000e-02,
                      2.470e00,
                      4.920e00,
                      7.370e00,
                      9.820e00,
                      1.227e01,
                      1.474e01,
                      1.720e01,
                      1.968e01,
                      2.216e01,
                      2.466e01,
                      2.717e01,
                      2.969e01,
                      3.223e01,
                      3.479e01,
                      3.737e01,
                      3.998e01,
                      4.263e01,
                      4.531e01,
                      4.804e01,
                      5.082e01,
                      5.368e01,
                      5.662e01,
                      5.969e01,
                      6.290e01,
                      6.633e01,
                  ],
                  [
                      6.623e01,
                      6.281e01,
                      5.960e01,
                      5.655e01,
                      5.360e01,
                      5.075e01,
                      4.797e01,
                      4.524e01,
                      4.256e01,
                      3.992e01,
                      3.731e01,
                      3.472e01,
                      3.216e01,
                      2.962e01,
                      2.710e01,
                      2.460e01,
                      2.210e01,
                      1.962e01,
                      1.714e01,
                      1.467e01,
                      1.221e01,
                      9.760e00,
                      7.310e00,
                      4.860e00,
                      2.410e00,
                      3.000e-02,
                      2.470e00,
                      4.920e00,
                      7.370e00,
                      9.820e00,
                      1.227e01,
                      1.474e01,
                      1.720e01,
                      1.968e01,
                      2.216e01,
                      2.466e01,
                      2.717e01,
                      2.969e01,
                      3.223e01,
                      3.479e01,
                      3.737e01,
                      3.998e01,
                      4.263e01,
                      4.531e01,
                      4.804e01,
                      5.082e01,
                      5.368e01,
                      5.662e01,
                      5.969e01,
                      6.290e01,
                      6.633e01,
                  ],
              ]
          )
          azidiff40km = np.array(
              [
                  [
                      56.9,
                      56.24,
                      55.71,
                      55.27,
                      54.9,
                      54.57,
                      54.29,
                      54.03,
                      53.8,
                      53.59,
                      53.4,
                      53.22,
                      53.05,
                      52.89,
                      52.74,
                      52.6,
                      52.47,
                      52.34,
                      52.22,
                      52.1,
                      51.98,
                      51.87,
                      51.76,
                      51.65,
                      51.55,
                      128.55,
                      128.65,
                      128.76,
                      128.86,
                      128.96,
                      129.07,
                      129.17,
                      129.27,
                      129.38,
                      129.49,
                      129.6,
                      129.72,
                      129.83,
                      129.95,
                      130.08,
                      130.21,
                      130.35,
                      130.5,
                      130.65,
                      130.81,
                      130.99,
                      131.18,
                      131.39,
                      131.63,
                      131.89,
                      132.19,
                  ],
                  [
                      56.9,
                      56.24,
                      55.72,
                      55.28,
                      54.9,
                      54.58,
                      54.29,
                      54.03,
                      53.8,
                      53.59,
                      53.4,
                      53.22,
                      53.05,
                      52.89,
                      52.75,
                      52.6,
                      52.47,
                      52.34,
                      52.22,
                      52.1,
                      51.98,
                      51.87,
                      51.76,
                      51.65,
                      51.55,
                      128.55,
                      128.65,
                      128.75,
                      128.86,
                      128.96,
                      129.06,
                      129.17,
                      129.27,
                      129.38,
                      129.49,
                      129.6,
                      129.71,
                      129.83,
                      129.95,
                      130.08,
                      130.21,
                      130.35,
                      130.49,
                      130.65,
                      130.81,
                      130.99,
                      131.18,
                      131.39,
                      131.62,
                      131.89,
                      132.19,
                  ],
              ]
          )
          fh._get_tiepoint_angles_in_degrees = mock.MagicMock()
          fh._get_tiepoint_angles_in_degrees.return_value = (
              sunz40km,
              satz40km,
              azidiff40km,
          )
          (sunz, satz, azidiff) = fh._get_all_interpolated_angles()
          assert np.max(sunz) <= 123
          assert np.max(satz) <= 70
  
imports: import datetime
  import os
  import tempfile
  import unittest
  from contextlib import suppress
  from unittest import mock
  import numpy
  from satpy.readers.aapp_l1b import _HEADERTYPE, _SCANTYPE, AVHRRAAPPL1BFile
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling the TestAAPPL1BAllChannelsPresent obj's underlying member method code with example usage: obj.test_interpolation_angles() without return types