class_docstr: Test various olci_nc filehandlers.
class_docstr_tok: ["Test","various","olci_nc","filehandlers","."]
docstr: Test reading datasets.
docstr_tok: ["Test","reading","datasets","."]
code: def test_olci_meteo(self, mocked_dataset):
      """Test reading datasets."""
      import numpy as np
      import xarray as xr
  
      from satpy.readers.olci_nc import NCOLCIMeteo
      from satpy.tests.utils import make_dataid
  
      attr_dict = {
          "ac_subsampling_factor": 1,
          "al_subsampling_factor": 2,
      }
      data = {
          "humidity": (
              ["tie_rows", "tie_columns"],
              np.array([1 << x for x in range(30)]).reshape(5, 6),
          ),
          "total_ozone": (
              ["tie_rows", "tie_columns"],
              np.array([1 << x for x in range(30)]).reshape(5, 6),
          ),
          "sea_level_pressure": (
              ["tie_rows", "tie_columns"],
              np.array([1 << x for x in range(30)]).reshape(5, 6),
          ),
          "total_columnar_water_vapour": (
              ["tie_rows", "tie_columns"],
              np.array([1 << x for x in range(30)]).reshape(5, 6),
          ),
      }
      mocked_dataset.return_value = xr.Dataset(
          data,
          coords={"rows": np.arange(5), "columns": np.arange(6)},
          attrs=attr_dict,
      )
      filename_info = {
          "mission_id": "S3A",
          "dataset_name": "humidity",
          "start_time": 0,
          "end_time": 0,
      }
  
      ds_id = make_dataid(name="humidity")
      ds_id2 = make_dataid(name="total_ozone")
      test = NCOLCIMeteo("somedir/somefile.nc", filename_info, "c")
      test.get_dataset(ds_id, filename_info)
      test.get_dataset(ds_id2, filename_info)
      mocked_dataset.assert_called()
      mocked_dataset.reset_mock()
  
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 6 for calling the TestOLCIReader obj's underlying member method code with example usage: obj.test_olci_meteo(mocked_dataset) without return types