class_docstr: NetCDF4 reader for VIIRS Active Fires.
class_docstr_tok: ["NetCDF4","reader","for","VIIRS","Active","Fires","."]
docstr: Get requested data as DataArray.
  
  Args:
      dsid: Dataset ID
      param2: Dataset Information
  
  Returns:
      Dask DataArray: Data
docstr_tok: ["Get","requested","data","as","DataArray",".","Args",":","dsid",":","Dataset","ID","param2",":","Dataset","Information","Returns",":","Dask","DataArray",":","Data"]
code: def get_dataset(self, dsid, dsinfo):  # noqa: D417
      """Get requested data as DataArray.
  
      Args:
          dsid: Dataset ID
          param2: Dataset Information
  
      Returns:
          Dask DataArray: Data
  
      """
      key = dsinfo.get("file_key", dsid["name"]).format(
          variable_prefix=self.prefix
      )
      data = self[key]
      # rename "phoney dims"
      data = data.rename(dict(zip(data.dims, ["y", "x"])))
  
      # handle attributes from YAML
      for key in (
          "units",
          "standard_name",
          "flag_meanings",
          "flag_values",
          "_FillValue",
      ):
          # we only want to add information that isn't present already
          if key in dsinfo and key not in data.attrs:
              data.attrs[key] = dsinfo[key]
      if isinstance(data.attrs.get("flag_meanings"), str):
          data.attrs["flag_meanings"] = data.attrs[
              "flag_meanings"
          ].split(" ")
  
      # use more common CF standard units
      if data.attrs.get("units") == "kelvins":
          data.attrs["units"] = "K"
  
      data.attrs["platform_name"] = PLATFORM_MAP.get(
          self.filename_info["satellite_name"].upper(), "unknown"
      )
      data.attrs["sensor"] = self.sensor_name
  
      return data
  
file_path: satpy/satpy/readers/viirs_edr_active_fires.py
imports: import dask.dataframe
  import xarray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
label_desc: Use image node_id 2 for calling the VIIRSActiveFiresFileHandler obj's underlying member method code with example usage: obj.get_dataset(dsid, dsinfo) and returns: data