class_docstr: Test various olci_nc filehandlers.
class_docstr_tok: ["Test","various","olci_nc","filehandlers","."]
docstr: Test unlogging the chl_nn product.
docstr_tok: ["Test","unlogging","the","chl_nn","product","."]
code: def test_chl_nn(self, mocked_dataset):
      """Test unlogging the chl_nn product."""
      import numpy as np
      import xarray as xr
  
      from satpy.readers.olci_nc import NCOLCI2
      from satpy.tests.utils import make_dataid
  
      attr_dict = {
          "ac_subsampling_factor": 64,
          "al_subsampling_factor": 1,
      }
      data = {
          "CHL_NN": (
              ["rows", "columns"],
              np.arange(30).reshape(5, 6).astype(float),
              {"units": "lg(re mg.m-3)"},
          )
      }
      mocked_dataset.return_value = xr.Dataset(
          data,
          coords={"rows": np.arange(5), "columns": np.arange(6)},
          attrs=attr_dict,
      )
      ds_info = {
          "name": "chl_nn",
          "sensor": "olci",
          "resolution": 300,
          "standard_name": "algal_pigment_concentration",
          "units": "lg(re mg.m-3)",
          "coordinates": ("longitude", "latitude"),
          "file_type": "esa_l2_chl_nn",
          "nc_key": "CHL_NN",
          "modifiers": (),
      }
      filename_info = {
          "mission_id": "S3A",
          "datatype_id": "WFR",
          "start_time": datetime.datetime(2019, 9, 24, 9, 29, 39),
          "end_time": datetime.datetime(2019, 9, 24, 9, 32, 39),
          "creation_time": datetime.datetime(2019, 9, 24, 11, 40, 26),
          "duration": 179,
          "cycle": 49,
          "relative_orbit": 307,
          "frame": 1800,
          "centre": "MAR",
          "mode": "O",
          "timeliness": "NR",
          "collection": "002",
      }
      ds_id = make_dataid(name="chl_nn")
      file_handler = NCOLCI2(
          "somedir/somefile.nc", filename_info, None, unlog=True
      )
      res = file_handler.get_dataset(ds_id, ds_info)
  
      assert res.attrs["units"] == "mg.m-3"
      assert res.values[-1, -1] == 1e29
  
file_path: satpy/satpy/tests/reader_tests/test_olci_nc.py
imports: import datetime
  import unittest
  import unittest.mock
label_desc: Use image node_id 7 for calling the TestOLCIReader obj's underlying member method code with example usage: obj.test_chl_nn(mocked_dataset) without return types