class_docstr: Test the implementation of the calibration factors.
class_docstr_tok: ["Test","the","implementation","of","the","calibration","factors","."]
docstr: Test the radiance to reflectance converter.
docstr_tok: ["Test","the","radiance","to","reflectance","converter","."]
code: def test_cal_rad(self):
      """Test the radiance to reflectance converter."""
      rad = np.array([10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0])
      didx = np.array([1, 2.0, 1.0, 3.0, 2.0, 2.0, 0.0])
      solflux = np.array([100.0, 200.0, 300.0, 400.0])
  
      good_rad = np.array(
          [
              1.0 / 20.0,
              1.0 / 15.0,
              3.0 / 20.0,
              1.0 / 10.0,
              1.0 / 6.0,
              2.0 / 10.0,
              7.0 / 10.0,
          ]
      )
  
      out_rad = NCSLSTR1B._cal_rad(rad, didx, solflux)
      np.testing.assert_allclose(out_rad, good_rad)
  
file_path: satpy/satpy/tests/reader_tests/test_slstr_l1b.py
imports: import unittest
  import unittest.mock
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from satpy.dataset.dataid import DataID, ModifierTuple, WavelengthRange
  from satpy.readers.slstr_l1b import NCSLSTR1B, NCSLSTRAngles, NCSLSTRFlag, NCSLSTRGeo
label_desc: Use image node_id 3 for calling the TestSLSTRCalibration obj's underlying member method code with example usage: obj.test_cal_rad() without return types