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(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
          )
          lons40km = np.array(
              [
                  [
                      -115.9773,
                      -122.3054,
                      -127.7482,
                      -132.464,
                      -136.5788,
                      -140.1951,
                      -143.3961,
                      -146.2497,
                      -148.8112,
                      -151.1259,
                      -153.2309,
                      -155.1568,
                      -156.9291,
                      -158.5689,
                      -160.0941,
                      -161.5196,
                      -162.8584,
                      -164.1212,
                      -165.3176,
                      -166.4557,
                      -167.5426,
                      -168.5846,
                      -169.5872,
                      -170.5555,
                      -171.4937,
                      -172.406,
                      -173.296,
                      -174.1671,
                      -175.0224,
                      -175.865,
                      -176.6976,
                      -177.523,
                      -178.3439,
                      -179.1628,
                      -179.9825,
                      179.1944,
                      178.3651,
                      177.5267,
                      176.6761,
                      175.8098,
                      174.9242,
                      174.0149,
                      173.0773,
                      172.1057,
                      171.0935,
                      170.0326,
                      168.9128,
                      167.7211,
                      166.4397,
                      165.0436,
                      163.4946,
                  ],
                  [
                      -115.9639,
                      -122.2967,
                      -127.7441,
                      -132.4639,
                      -136.5824,
                      -140.2018,
                      -143.4055,
                      -146.2614,
                      -148.8249,
                      -151.1413,
                      -153.2478,
                      -155.175,
                      -156.9484,
                      -158.5892,
                      -160.1152,
                      -161.5415,
                      -162.8809,
                      -164.1443,
                      -165.3412,
                      -166.4797,
                      -167.567,
                      -168.6094,
                      -169.6123,
                      -170.5808,
                      -171.5192,
                      -172.4317,
                      -173.3219,
                      -174.1931,
                      -175.0486,
                      -175.8913,
                      -176.724,
                      -177.5494,
                      -178.3703,
                      -179.1893,
                      179.991,
                      179.168,
                      178.3388,
                      177.5005,
                      176.6499,
                      175.7838,
                      174.8983,
                      173.9892,
                      173.0518,
                      172.0805,
                      171.0685,
                      170.0079,
                      168.8885,
                      167.6972,
                      166.4164,
                      165.0209,
                      163.4726,
                  ],
                  [
                      -115.9504,
                      -122.288,
                      -127.7399,
                      -132.4639,
                      -136.5859,
                      -140.2084,
                      -143.4148,
                      -146.2731,
                      -148.8386,
                      -151.1567,
                      -153.2647,
                      -155.1932,
                      -156.9677,
                      -158.6095,
                      -160.1363,
                      -161.5634,
                      -162.9034,
                      -164.1674,
                      -165.3648,
                      -166.5038,
                      -167.5915,
                      -168.6341,
                      -169.6374,
                      -170.6061,
                      -171.5448,
                      -172.4575,
                      -173.3478,
                      -174.2192,
                      -175.0748,
                      -175.9176,
                      -176.7503,
                      -177.5758,
                      -178.3968,
                      -179.2157,
                      179.9646,
                      179.1416,
                      178.3124,
                      177.4742,
                      176.6238,
                      175.7577,
                      174.8724,
                      173.9635,
                      173.0263,
                      172.0552,
                      171.0436,
                      169.9833,
                      168.8643,
                      167.6734,
                      166.3931,
                      164.9982,
                      163.4507,
                  ],
              ]
          )
          lats40km = np.array(
              [
                  [
                      78.6613,
                      78.9471,
                      79.0802,
                      79.1163,
                      79.0889,
                      79.019,
                      78.9202,
                      78.8016,
                      78.6695,
                      78.528,
                      78.38,
                      78.2276,
                      78.0721,
                      77.9145,
                      77.7553,
                      77.5949,
                      77.4335,
                      77.2712,
                      77.1079,
                      76.9435,
                      76.7779,
                      76.6108,
                      76.4419,
                      76.2708,
                      76.0973,
                      75.921,
                      75.7412,
                      75.5576,
                      75.3696,
                      75.1764,
                      74.9776,
                      74.7721,
                      74.5592,
                      74.3379,
                      74.1069,
                      73.865,
                      73.6106,
                      73.342,
                      73.057,
                      72.7531,
                      72.4273,
                      72.076,
                      71.6945,
                      71.2773,
                      70.8171,
                      70.3046,
                      69.7272,
                      69.0676,
                      68.3014,
                      67.3914,
                      66.2778,
                  ],
                  [
                      78.6703,
                      78.9565,
                      79.0897,
                      79.1259,
                      79.0985,
                      79.0286,
                      78.9297,
                      78.8111,
                      78.6789,
                      78.5373,
                      78.3892,
                      78.2367,
                      78.0811,
                      77.9233,
                      77.764,
                      77.6035,
                      77.442,
                      77.2796,
                      77.1162,
                      76.9518,
                      76.7861,
                      76.6188,
                      76.4498,
                      76.2787,
                      76.1051,
                      75.9287,
                      75.7488,
                      75.5651,
                      75.377,
                      75.1838,
                      74.9848,
                      74.7793,
                      74.5663,
                      74.3448,
                      74.1138,
                      73.8718,
                      73.6173,
                      73.3486,
                      73.0635,
                      72.7595,
                      72.4336,
                      72.0821,
                      71.7005,
                      71.2832,
                      70.8229,
                      70.3102,
                      69.7326,
                      69.0729,
                      68.3065,
                      67.3963,
                      66.2825,
                  ],
                  [
                      78.6794,
                      78.9658,
                      79.0993,
                      79.1355,
                      79.1082,
                      79.0381,
                      78.9392,
                      78.8205,
                      78.6882,
                      78.5465,
                      78.3984,
                      78.2458,
                      78.0901,
                      77.9322,
                      77.7728,
                      77.6122,
                      77.4506,
                      77.2881,
                      77.1246,
                      76.96,
                      76.7942,
                      76.6269,
                      76.4578,
                      76.2866,
                      76.1129,
                      75.9364,
                      75.7564,
                      75.5727,
                      75.3844,
                      75.1911,
                      74.9921,
                      74.7864,
                      74.5734,
                      74.3518,
                      74.1207,
                      73.8786,
                      73.624,
                      73.3552,
                      73.0699,
                      72.7658,
                      72.4398,
                      72.0882,
                      71.7065,
                      71.2891,
                      70.8286,
                      70.3158,
                      69.7381,
                      69.0782,
                      68.3116,
                      67.4012,
                      66.2872,
                  ],
              ]
          )
          fh._get_coordinates_in_degrees = mock.MagicMock()
          fh._get_coordinates_in_degrees.return_value = (
              lons40km,
              lats40km,
          )
          (lons, lats) = fh._get_all_interpolated_coordinates()
          lon_data = lons.compute()
          assert np.max(lon_data) <= 180
          # Not longitdes between -110, 110 in indata
          assert np.all(np.abs(lon_data) > 110)
  
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 5 for calling the TestAAPPL1BAllChannelsPresent obj's underlying member method code with example usage: obj.test_interpolation() without return types