class_docstr: Filehandler for angles.
docstr: Load a dataset.
docstr_tok: ["Load","a","dataset","."]
code: def get_dataset(self, key, info):
      """Load a dataset."""
      if not key["view"].name.startswith(self.view[0]):
          return
      logger.debug("Reading %s.", key["name"])
      # Check if file_key is specified in the yaml
      file_key = info["file_key"].format(view=key["view"].name[0])
  
      variable = self.nc[file_key]
      l_step = self.nc.attrs.get("al_subsampling_factor", 1)
      c_step = self.nc.attrs.get("ac_subsampling_factor", 16)
  
      if key.get("resolution", 1000) == 500:
          l_step *= 2
          c_step *= 2
  
      if c_step != 1 or l_step != 1:
          logger.debug("Interpolating %s.", key["name"])
          # TODO: do it in cartesian coordinates ! pbs at date line and
          # possible
          tie_x = self.cartx["x_tx"].data[0, :][::-1]
          tie_y = self.cartx["y_tx"].data[:, 0]
          if key.get("resolution", 1000) == 500:
              full_x = self.carta["x_a" + self.view[0]].data
              full_y = self.carta["y_a" + self.view[0]].data
          else:
              full_x = self.carti["x_i" + self.view[0]].data
              full_y = self.carti["y_i" + self.view[0]].data
  
          variable = variable.fillna(0)
          variable.attrs["resolution"] = key.get("resolution", 1000)
  
          from scipy.interpolate import RectBivariateSpline
  
          spl = RectBivariateSpline(
              tie_y, tie_x, variable.data[:, ::-1]
          )
  
          values = spl.ev(full_y, full_x)
  
          variable = xr.DataArray(
              da.from_array(values, chunks=(CHUNK_SIZE, CHUNK_SIZE)),
              dims=["y", "x"],
              attrs=variable.attrs,
          )
  
      variable.attrs["platform_name"] = self.platform_name
      variable.attrs["sensor"] = self.sensor
  
      if "units" not in variable.attrs:
          variable.attrs["units"] = "degrees"
  
      variable.attrs.update(key.to_dict())
  
      return variable
  
imports: import logging
  import os
  import re
  import warnings
  from datetime import datetime
  import dask.array
  import numpy
  import xarray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 3 for calling the NCSLSTRAngles obj's underlying member method code with example usage: obj.get_dataset(key, info) and returns: variable