class_docstr: File handler for the SGLI l1b data.
class_docstr_tok: ["File","handler","for","the","SGLI","l1b","data","."]
docstr: Get the dataset from the file.
docstr_tok: ["Get","the","dataset","from","the","file","."]
code: def get_dataset(self, key, info):
      """Get the dataset from the file."""
      if key["resolution"] != self.resolution:
          return
      file_key = info["file_key"]
      if key["name"].startswith("P"):
          file_key = file_key.format(
              polarization=polarization_keys[key["polarization"]]
          )
      h5dataset = self.h5file[file_key]
  
      chunks = normalize_chunks(
          ("auto", "auto"),
          h5dataset.shape,
          previous_chunks=h5dataset.chunks,
          dtype=np.float32,
      )
      dataset = da.from_array(h5dataset, chunks=chunks)
      attrs = h5dataset.attrs
  
      dataset = xr.DataArray(dataset, attrs=attrs, dims=["y", "x"])
      dataset = self.prepare_dataset(key, dataset)
  
      dataset.attrs["platform_name"] = "GCOM-C1"
      dataset.attrs["sensor"] = "sgli"
      dataset.attrs["units"] = info["units"]
      dataset.attrs["standard_name"] = info["standard_name"]
      return dataset
  
imports: import logging
  from datetime import datetime
  import dask.array
  import h5py
  import numpy
  import xarray
  from dask.array.core import normalize_chunks
  from satpy.readers.file_handlers import BaseFileHandler
label_desc: Use image node_id 4 for calling the HDF5SGLI obj's underlying member method code with example usage: obj.get_dataset(key, info) and returns: dataset