class_docstr: Test the HRITJMAFileHandler.
class_docstr_tok: ["Test","the","HRITJMAFileHandler","."]
docstr: Get sample header entry for scanline acquisition times.
  
  Lines: 1, 21, 41, 61, ..., nlines
  Times: 1970-01-01 00:00 + (1, 21, 41, 61, ..., nlines) seconds
  
  So the interpolated times are expected to be 1970-01-01 +
  (1, 2, 3, 4, ..., nlines) seconds. Note that there will be some
  floating point inaccuracies, because timestamps are stored
  with only 6 decimals precision.
docstr_tok: ["Get","sample","header","entry","for","scanline","acquisition","times",".","Lines",":","1",",","21",",","41",",","61",",","...",",","nlines","Times",":","1970-01-01","00:00","+","(","1",",","21",",","41",",","61",",","...",",","nlines",")","seconds","So","the","interpolated","times","are","expected","to","be","1970-01-01","+","(","1",",","2",",","3",",","4",",","...",",","nlines",")","seconds",".","Note","that","there","will","be","some","floating","point","inaccuracies",",","because","timestamps","are","stored","with","only","6","decimals","precision","."]
code: def _get_acq_time(self, nlines):
      """Get sample header entry for scanline acquisition times.
  
      Lines: 1, 21, 41, 61, ..., nlines
      Times: 1970-01-01 00:00 + (1, 21, 41, 61, ..., nlines) seconds
  
      So the interpolated times are expected to be 1970-01-01 +
      (1, 2, 3, 4, ..., nlines) seconds. Note that there will be some
      floating point inaccuracies, because timestamps are stored
      with only 6 decimals precision.
      """
      mjd_1970 = 40587.0
      lines_sparse = np.array(list(range(1, nlines, 20)) + [nlines])
      times_sparse = mjd_1970 + lines_sparse / 24 / 3600
      acq_time_s = [
          "LINE:={}\rTIME:={:.6f}\r".format(line, time)
          for line, time in zip(lines_sparse, times_sparse)
      ]
      acq_time_b = "".join(acq_time_s).encode()
      return acq_time_b
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  from xarray import DataArray
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 2 for calling the TestHRITJMAFileHandler obj's underlying member method code with example usage: obj._get_acq_time(nlines) and returns: acq_time_b