class_docstr: Test IR specific things about the AMI reader.
class_docstr_tok: ["Test","IR","specific","things","about","the","AMI","reader","."]
docstr: Test default (pyspectral) IR calibration.
docstr_tok: ["Test","default","(","pyspectral",")","IR","calibration","."]
code: def test_default_calibrate(self):
      """Test default (pyspectral) IR calibration."""
      from satpy.readers.ami_l1b import rad2temp
  
      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_called_once()
      expected = np.array(
          [
              [
                  238.34385135,
                  238.31443527,
                  238.28500087,
                  238.25554813,
                  238.22607701,
              ],
              [
                  238.1965875,
                  238.16707956,
                  238.13755317,
                  238.10800829,
                  238.07844489,
              ],
          ]
      )
      np.testing.assert_allclose(
          res.data.compute(), expected, equal_nan=True
      )
      # 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 2 for calling the TestAMIL1bNetCDFIRCal obj's underlying member method code with example usage: obj.test_default_calibrate() without return types