class_docstr: Reader for the OSISAF SST GHRSST format.
class_docstr_tok: ["Reader","for","the","OSISAF","SST","GHRSST","format","."]
docstr: Load a dataset.
docstr_tok: ["Load","a","dataset","."]
code: def get_dataset(self, dataset_id, ds_info, out=None):
      """Load a dataset."""
      var_path = ds_info.get(
          "file_key", "{}".format(dataset_id["name"])
      )
      dtype = ds_info.get("dtype", np.float32)
      if var_path + "/shape" not in self:
          # loading a scalar value
          shape = 1
      else:
          shape = self[var_path + "/shape"]
          if shape[0] == 1:
              # Remove the time dimenstion from dataset
              shape = shape[1], shape[2]
  
      file_units = ds_info.get("file_units")
      if file_units is None:
          try:
              file_units = self[var_path + "/attr/units"]
              # they were almost completely CF compliant...
              if file_units == "none":
                  file_units = "1"
          except KeyError:
              # no file units specified
              file_units = None
  
      if out is None:
          out = np.ma.empty(shape, dtype=dtype)
          out.mask = np.zeros(shape, dtype=bool)
  
      out.data[:] = np.require(self[var_path][0][::-1], dtype=dtype)
      self._scale_and_mask_data(out, var_path)
  
      ds_info.update(
          {
              "units": ds_info.get("units", file_units),
              "platform_name": PLATFORM_NAME.get(
                  self["/attr/platform"], self["/attr/platform"]
              ),
              "sensor": SENSOR_NAME.get(
                  self["/attr/sensor"], self["/attr/sensor"]
              ),
          }
      )
      ds_info.update(dataset_id.to_dict())
      cls = ds_info.pop("container", Dataset)
      return cls(out, **ds_info)
  
file_path: satpy/satpy/readers/ghrsst_l3c_sst.py
imports: import logging
  from datetime import datetime
  import numpy
  from satpy.dataset import Dataset
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
label_desc: Use image node_id 3 for calling the GHRSST_OSISAFL2 obj's underlying member method code with example usage: obj.get_dataset(dataset_id, ds_info, out) and returns: cls