class_docstr: Test the HRITJMAFileHandler.
class_docstr_tok: ["Test","the","HRITJMAFileHandler","."]
docstr: Test masking of space pixels.
docstr_tok: ["Test","masking","of","space","pixels","."]
code: def test_mask_space(self):
      """Test masking of space pixels."""
      mda = self._get_mda(
          loff=1375.0,
          coff=1375.0,
          nlines=275,
          ncols=1375,
          segno=1,
          numseg=10,
      )
      reader = self._get_reader(mda=mda)
      data = DataArray(da.ones((275, 1375), chunks=1024))
      masked = reader._mask_space(data)
  
      # First line of the segment should be space, in the middle of the
      # last line there should be some valid pixels
      np.testing.assert_allclose(masked.values[0, :], np.nan)
      assert np.all(masked.values[-1, 588:788] == 1)
  
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 8 for calling the TestHRITJMAFileHandler obj's underlying member method code with example usage: obj.test_mask_space() without return types