class_docstr: Test the filehandler.
class_docstr_tok: ["Test","the","filehandler","."]
docstr: Test reading the longitudes and latitudes.
docstr_tok: ["Test","reading","the","longitudes","and","latitudes","."]
code: def test_navigation(self):
      """Test reading the longitudes and latitudes."""
      with tempfile.TemporaryFile() as tmpfile:
          self._header.tofile(tmpfile)
          tmpfile.seek(HEADER_LENGTH, 0)
          self._data.tofile(tmpfile)
  
          fh_ = MHS_AMSUB_AAPPL1CFile(
              tmpfile, self.filename_info, self.filetype_info
          )
          info = {}
          key = make_dataid(name="longitude")
          res = fh_.get_dataset(key, info)
  
          assert np.all(res[2] == 0)
          assert np.all(res[1] == 0)
          expected = np.array(
              [
                  78.7602,
                  78.6999,
                  78.6407,
                  78.5827,
                  78.5255,
                  78.4692,
                  78.4134,
                  78.3583,
                  78.3035,
                  78.2492,
                  78.1951,
                  78.1412,
                  78.0875,
                  78.0338,
                  77.9801,
                  77.9264,
                  77.8726,
                  77.8186,
                  77.7644,
                  77.71,
                  77.6552,
                  77.6,
                  77.5444,
                  77.4882,
                  77.4316,
                  77.3743,
                  77.3163,
                  77.2576,
                  77.1981,
                  77.1377,
                  77.0764,
                  77.014,
                  76.9506,
                  76.886,
                  76.8201,
                  76.7528,
                  76.6841,
                  76.6138,
                  76.5419,
                  76.4681,
                  76.3924,
                  76.3147,
                  76.2347,
                  76.1523,
                  76.0673,
                  75.9796,
                  75.8888,
                  75.7949,
                  75.6974,
                  75.5962,
                  75.4909,
                  75.3812,
                  75.2666,
                  75.1468,
                  75.0213,
                  74.8894,
                  74.7507,
                  74.6043,
                  74.4496,
                  74.2855,
                  74.1112,
                  73.9253,
                  73.7265,
                  73.5132,
                  73.2835,
                  73.0352,
                  72.7656,
                  72.4716,
                  72.1492,
                  71.7939,
                  71.3998,
                  70.9597,
                  70.4644,
                  69.9024,
                  69.2583,
                  68.5119,
                  67.6358,
                  66.5918,
                  65.3256,
                  63.757,
                  61.7626,
                  59.1448,
                  55.5681,
                  50.4285,
                  42.5703,
                  29.7538,
                  8.5636,
                  -20.4309,
                  -46.1741,
                  -62.63,
              ]
          )
  
          np.testing.assert_allclose(res[0], expected)
  
          key = make_dataid(name="latitude")
          res = fh_.get_dataset(key, info)
  
          assert np.all(res[2] == 0)
          assert np.all(res[1] == 0)
          expected = np.array(
              [
                  71.5994,
                  72.0651,
                  72.4976,
                  72.9013,
                  73.2799,
                  73.6362,
                  73.9728,
                  74.2919,
                  74.5953,
                  74.8844,
                  75.1607,
                  75.4254,
                  75.6796,
                  75.924,
                  76.1597,
                  76.3872,
                  76.6073,
                  76.8206,
                  77.0275,
                  77.2287,
                  77.4245,
                  77.6153,
                  77.8015,
                  77.9836,
                  78.1617,
                  78.3361,
                  78.5073,
                  78.6753,
                  78.8405,
                  79.0031,
                  79.1633,
                  79.3212,
                  79.4771,
                  79.6312,
                  79.7837,
                  79.9346,
                  80.0842,
                  80.2326,
                  80.3799,
                  80.5264,
                  80.6721,
                  80.8171,
                  80.9617,
                  81.106,
                  81.25,
                  81.3939,
                  81.5378,
                  81.6819,
                  81.8263,
                  81.9712,
                  82.1166,
                  82.2627,
                  82.4096,
                  82.5575,
                  82.7065,
                  82.8567,
                  83.0084,
                  83.1617,
                  83.3167,
                  83.4736,
                  83.6327,
                  83.794,
                  83.9578,
                  84.1243,
                  84.2938,
                  84.4665,
                  84.6425,
                  84.8223,
                  85.006,
                  85.1941,
                  85.3868,
                  85.5845,
                  85.7875,
                  85.9963,
                  86.2113,
                  86.4329,
                  86.6616,
                  86.8979,
                  87.1421,
                  87.3947,
                  87.6557,
                  87.925,
                  88.2013,
                  88.4815,
                  88.7577,
                  89.0102,
                  89.1907,
                  89.2134,
                  89.0331,
                  88.7022,
              ]
          )
  
          np.testing.assert_allclose(res[0], expected)
  
file_path: satpy/satpy/tests/reader_tests/test_aapp_mhs_amsub_l1c.py
imports: import datetime
  import tempfile
  import unittest
  import numpy
  import pytest
  from satpy.readers.aapp_mhs_amsub_l1c import _HEADERTYPE, _SCANTYPE, HEADER_LENGTH, MHS_AMSUB_AAPPL1CFile
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling the TestMHS_AMSUB_AAPPL1CReadData obj's underlying member method code with example usage: obj.test_navigation() without return types