class_docstr: Common setup for SLSTR_L1B tests.
class_docstr_tok: ["Common","setup","for","SLSTR_L1B","tests","."]
docstr: Create a fake dataset using the given radiance data.
docstr_tok: ["Create","a","fake","dataset","using","the","given","radiance","data","."]
code: def setUp(self, xr_):
      """Create a fake dataset using the given radiance data."""
      self.base_data = np.array(([1.0, 2.0, 3.0], [4.0, 5.0, 6.0]))
      self.det_data = np.array(([0, 1, 1], [0, 1, 0]))
      self.start_time = "2020-05-10T12:01:15.585Z"
      self.end_time = "2020-05-10T12:06:18.012Z"
      self.rad = xr.DataArray(
          self.base_data,
          dims=("columns", "rows"),
          attrs={
              "scale_factor": 1.0,
              "add_offset": 0.0,
              "_FillValue": -32768,
              "units": "mW.m-2.sr-1.nm-1",
          },
      )
      det = xr.DataArray(
          self.base_data,
          dims=("columns", "rows"),
          attrs={
              "scale_factor": 1.0,
              "add_offset": 0.0,
              "_FillValue": 255,
          },
      )
      self.fake_dataset = xr.Dataset(
          data_vars={
              "S5_radiance_an": self.rad,
              "S9_BT_ao": self.rad,
              "foo_radiance_an": self.rad,
              "S5_solar_irradiances": self.rad,
              "geometry_tn": self.rad,
              "latitude_an": self.rad,
              "x_tx": self.rad,
              "y_tx": self.rad,
              "x_in": self.rad,
              "y_in": self.rad,
              "x_an": self.rad,
              "y_an": self.rad,
              "flags_an": self.rad,
              "detector_an": det,
          },
          attrs={
              "start_time": self.start_time,
              "stop_time": self.end_time,
          },
      )
  
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 1 for calling the TestSLSTRL1B obj's underlying member method code with example usage: obj.setUp(xr_) without return types