class_docstr: Test IR specific things about the AMI reader.
class_docstr_tok: ["Test","IR","specific","things","about","the","AMI","reader","."]
docstr: Test IR radiance adjustment using in-file GSICS coefs.
docstr_tok: ["Test","IR","radiance","adjustment","using","in-file","GSICS","coefs","."]
code: def test_gsics_radiance_corr(self):
      """Test IR radiance adjustment using in-file GSICS coefs."""
      from satpy.readers.ami_l1b import rad2temp
  
      self.reader.calib_mode = "GSICS"
      expected = np.array(
          [
              [
                  238.036797,
                  238.007106,
                  237.977396,
                  237.947668,
                  237.91792,
              ],
              [
                  237.888154,
                  237.85837,
                  237.828566,
                  237.798743,
                  237.768902,
              ],
          ]
      )
      with mock.patch(
          "satpy.readers.ami_l1b.rad2temp", wraps=rad2temp
      ) as r2t_mock:
          res = self.reader.get_dataset(self.ds_id, self.ds_info)
          r2t_mock.assert_not_called()
      # file coefficients are pretty close, give some wiggle room
      np.testing.assert_allclose(
          res.data.compute(), expected, equal_nan=True, atol=0.01
      )
      # make sure the attributes from the file are in the data array
      assert res.attrs["standard_name"] == "toa_brightness_temperature"
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  import xarray
  from pytest import approx, raises
label_desc: Use image node_id 4 for calling the TestAMIL1bNetCDFIRCal obj's underlying member method code with example usage: obj.test_gsics_radiance_corr() without return types