class_docstr: A file handler class for VIIRS compact format.
class_docstr_tok: ["A","file","handler","class","for","VIIRS","compact","format","."]
docstr: Get the bounding box of the data.
docstr_tok: ["Get","the","bounding","box","of","the","data","."]
code: def get_bounding_box(self):
      """Get the bounding box of the data."""
      for key in self.h5f["Data_Products"].keys():
          if key.startswith("VIIRS") and key.endswith("GEO"):
              lats = self.h5f["Data_Products"][key][
                  key + "_Gran_0"
              ].attrs["G-Ring_Latitude"][()]
              lons = self.h5f["Data_Products"][key][
                  key + "_Gran_0"
              ].attrs["G-Ring_Longitude"][()]
              break
      else:
          raise KeyError("Cannot find bounding coordinates!")
      return lons.ravel(), lats.ravel()
  
imports: import logging
  from contextlib import suppress
  from datetime import datetime, timedelta
  import dask.array
  import h5py
  import numpy
  import xarray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.readers.utils import np2str
  from satpy.utils import angle2xyz, get_legacy_chunk_size, lonlat2xyz, xyz2angle, xyz2lonlat
label_desc: Use image node_id 4 for calling the VIIRSCompactFileHandler obj's underlying member method code with example usage: obj.get_bounding_box() and returns: lons,  lats