class_docstr: Handler for the geographical datasets.
class_docstr_tok: ["Handler","for","the","geographical","datasets","."]
docstr: Load and interpolate datasets.
docstr_tok: ["Load","and","interpolate","datasets","."]
code: def get_interpolated_dataset(
      self, name1, name2, resolution, offset=0
  ):
      """Load and interpolate datasets."""
      try:
          result1 = self.cache[(name1, resolution)]
          result2 = self.cache[(name2, resolution)]
      except KeyError:
          result1 = self._load_ds_by_name(name1)
          result2 = self._load_ds_by_name(name2) - offset
          try:
              sensor_zenith = self._load_ds_by_name(
                  "satellite_zenith_angle"
              )
          except KeyError:
              # no sensor zenith angle, do "simple" interpolation
              sensor_zenith = None
  
          result1, result2 = interpolate(
              result1,
              result2,
              sensor_zenith,
              self.geo_resolution,
              resolution,
          )
          self.cache[(name1, resolution)] = result1
          self.cache[(name2, resolution)] = result2 + offset
  
imports: from __future__ import annotations
  import logging
  import re
  from ast import literal_eval
  from contextlib import suppress
  from datetime import datetime
  import numpy
  import xarray
  from pyhdf.error import HDF4Error
  from pyhdf.SD import SD
  from satpy import DataID
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import normalize_low_res_chunks
label_desc: Use image node_id 8 for calling the HDFEOSGeoReader obj's underlying member method code with example usage: obj.get_interpolated_dataset(name1, name2, resolution, offset) without return types