class_docstr: File handler for HY2 scat.
class_docstr_tok: ["File","handler","for","HY2","scat","."]
docstr: Get the dataset.
docstr_tok: ["Get","the","dataset","."]
code: def get_dataset(self, key, info):
      """Get the dataset."""
      dims = ["y", "x"]
      if self[key["name"]].ndim == 3:
          dims = ["y", "x", "selection"]
      data = self[key["name"]]
      if "valid range" in data.attrs:
          data.attrs.update(
              {"valid_range": data.attrs.pop("valid range")}
          )
      if key["name"] in "wvc_row_time":
          data = data.rename({data.dims[0]: "y"})
      else:
          dim_map = {
              curr_dim: new_dim
              for curr_dim, new_dim in zip(data.dims, dims)
          }
          data = data.rename(dim_map)
          data = self._mask_data(data)
          data = self._scale_data(data)
  
          if key["name"] in "wvc_lon":
              _attrs = data.attrs
              data = xr.where(data > 180, data - 360.0, data)
              data.attrs.update(_attrs)
      data.attrs.update(info)
      data.attrs.update(self.get_metadata())
      data.attrs.update(self.get_variable_metadata())
      if "Platform_ShortName" in data.attrs:
          data.attrs.update(
              {"platform_name": data.attrs["Platform_ShortName"]}
          )
  
      return data
  
file_path: satpy/satpy/readers/hy2_scat_l2b_h5.py
imports: from datetime import datetime
  import numpy
  import xarray
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 6 for calling the HY2SCATL2BH5FileHandler obj's underlying member method code with example usage: obj.get_dataset(key, info) and returns: data