class_docstr: Test class for reading compact viirs format.
class_docstr_tok: ["Test","class","for","reading","compact","viirs","format","."]
code: def _dataset_iterator(self):
      from satpy.readers.viirs_compact import VIIRSCompactFileHandler
      from satpy.tests.utils import make_dataid
  
      filename_info = {}
      filetype_info = {"file_type": "compact_dnb"}
      test = VIIRSCompactFileHandler(
          self.filename, filename_info, filetype_info
      )
  
      dsid = make_dataid(name="DNB", calibration="radiance")
      ds1 = test.get_dataset(dsid, {})
      dsid = make_dataid(name="longitude_dnb")
      ds2 = test.get_dataset(dsid, {"standard_name": "longitude"})
      dsid = make_dataid(name="latitude_dnb")
      ds3 = test.get_dataset(dsid, {"standard_name": "latitude"})
      dsid = make_dataid(name="solar_zenith_angle")
      ds4 = test.get_dataset(
          dsid, {"standard_name": "solar_zenith_angle"}
      )
  
      for ds in [ds1, ds2, ds3, ds4]:
          yield ds
  
file_path: satpy/satpy/tests/reader_tests/test_viirs_compact.py
imports: from contextlib import suppress
  import h5py
  import numpy
  import pytest
  from satpy.tests.reader_tests.utils import fill_h5
label_desc: Use image node_id 2 for calling the TestCompact obj's underlying member method code with example usage: obj._dataset_iterator() without return types