class_docstr: Testing the file handler.
class_docstr_tok: ["Testing","the","file","handler","."]
docstr: Test conversion from VIS counts to radiance.
code: def test_viscounts2radiance(self):
      """Test conversion from VIS counts to radiance."""
      # Reference data is for detector #1
      slope = self.coefs["00_7"]["slope"][0]
      offset = self.coefs["00_7"]["offset"][0]
      counts = xr.DataArray([0, 100, 200, 500, 1000, 1023])
      rad_expected = xr.DataArray(
          [0.0, 41.54896, 100.06862, 275.6276, 568.2259, 581.685422]
      )
      rad = self.reader._viscounts2radiance(
          counts=counts, slope=slope, offset=offset
      )
      assert np.allclose(
          rad.data, rad_expected.data, atol=1e-06
      ), "Incorrect conversion from VIS counts to radiance"
  
imports: import datetime
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.readers.goes_imager_nc import is_vis_channel
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 4 for calling the GOESNCBaseFileHandlerTest obj's underlying member method code with example usage: obj.test_viscounts2radiance() without return types