class_docstr: ASCII reader for VIIRS Active Fires.
class_docstr_tok: ["ASCII","reader","for","VIIRS","Active","Fires","."]
docstr: Get requested data as DataArray.
docstr_tok: ["Get","requested","data","as","DataArray","."]
code: def get_dataset(self, dsid, dsinfo):
      """Get requested data as DataArray."""
      ds = self[dsid["name"]].to_dask_array(lengths=True)
      data = xr.DataArray(
          ds,
          dims=("y",),
          attrs={
              "platform_name": self.platform_name,
              "sensor": "VIIRS",
          },
      )
      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(" ")
      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 VIIRSActiveFiresTextFileHandler obj's underlying member method code with example usage: obj.get_dataset(dsid, dsinfo) and returns: data