class_docstr: Test the ViiL1bNCFileHandler reader.
class_docstr_tok: ["Test","the","ViiL1bNCFileHandler","reader","."]
docstr: Set up the test.
docstr_tok: ["Set","up","the","test","."]
code: def setUp(self):
      """Set up the test."""
      # Easiest way to test the reader is to create a test netCDF file on the fly
      # uses a UUID to avoid permission conflicts during execution of tests in parallel
      self.test_file_name = TEST_FILE + str(uuid.uuid1()) + ".nc"
  
      with Dataset(self.test_file_name, "w") as nc:
          # Create data group
          g1 = nc.createGroup("data")
  
          # Add dimensions to data group
          g1.createDimension("num_chan_solar", 11)
          g1.createDimension("num_chan_thermal", 9)
          g1.createDimension("num_pixels", 72)
          g1.createDimension("num_lines", 600)
  
          # Create calibration_data group
          g1_1 = g1.createGroup("calibration_data")
  
          # Add variables to data/calibration_data group
          bt_a = g1_1.createVariable(
              "bt_conversion_a",
              np.float32,
              dimensions=("num_chan_thermal",),
          )
          bt_a[:] = np.arange(9)
          bt_b = g1_1.createVariable(
              "bt_conversion_b",
              np.float32,
              dimensions=("num_chan_thermal",),
          )
          bt_b[:] = np.arange(9)
          cw = g1_1.createVariable(
              "channel_cw_thermal",
              np.float32,
              dimensions=("num_chan_thermal",),
          )
          cw[:] = np.arange(9)
          isi = g1_1.createVariable(
              "Band_averaged_solar_irradiance",
              np.float32,
              dimensions=("num_chan_solar",),
          )
          isi[:] = np.arange(11)
  
          # Create measurement_data group
          g1_2 = g1.createGroup("measurement_data")
  
          # Add dimensions to data/measurement_data group
          g1_2.createDimension("num_tie_points_act", 10)
          g1_2.createDimension("num_tie_points_alt", 100)
  
          # Add variables to data/measurement_data group
          sza = g1_2.createVariable(
              "solar_zenith",
              np.float32,
              dimensions=("num_tie_points_alt", "num_tie_points_act"),
          )
          sza[:] = 25.0
          delta_lat = g1_2.createVariable(
              "delta_lat",
              np.float32,
              dimensions=("num_lines", "num_pixels"),
          )
          delta_lat[:] = 1.0
  
      self.reader = ViiL1bNCFileHandler(
          filename=self.test_file_name,
          filename_info={
              "creation_time": datetime.datetime(
                  year=2017,
                  month=9,
                  day=22,
                  hour=22,
                  minute=40,
                  second=10,
              ),
              "sensing_start_time": datetime.datetime(
                  year=2017,
                  month=9,
                  day=20,
                  hour=12,
                  minute=30,
                  second=30,
              ),
              "sensing_end_time": datetime.datetime(
                  year=2017,
                  month=9,
                  day=20,
                  hour=18,
                  minute=30,
                  second=50,
              ),
          },
          filetype_info={},
      )
  
file_path: satpy/satpy/tests/reader_tests/test_vii_l1b_nc.py
imports: import datetime
  import os
  import unittest
  import uuid
  import dask.array
  import numpy
  import pytest
  import xarray
  from netCDF4 import Dataset
  from satpy.readers.vii_l1b_nc import ViiL1bNCFileHandler
  from satpy.readers.vii_utils import MEAN_EARTH_RADIUS
label_desc: Use image node_id 1 for calling the TestViiL1bNCFileHandler obj's underlying member method code with example usage: obj.setUp() without return types