class_docstr: Base reader class for VII products in netCDF format.
  
  Args:
      filename (str): File to read
      filename_info (dict): Dictionary with filename information
      filetype_info (dict): Dictionary with filetype information
      orthorect (bool): activates the orthorectification correction where available
class_docstr_tok: ["Base","reader","class","for","VII","products","in","netCDF","format",".","Args",":","filename","(","str",")",":","File","to","read","filename_info","(","dict",")",":","Dictionary","with","filename","information","filetype_info","(","dict",")",":","Dictionary","with","filetype","information","orthorect","(","bool",")",":","activates","the","orthorectification","correction","where","available"]
docstr: Prepare the class for dataset reading.
docstr_tok: ["Prepare","the","class","for","dataset","reading","."]
code: def __init__(
      self, filename, filename_info, filetype_info, orthorect=False
  ):
      """Prepare the class for dataset reading."""
      super().__init__(
          filename, filename_info, filetype_info, auto_maskandscale=True
      )
  
      # Saves the orthorectification flag
      self.orthorect = orthorect and filetype_info.get(
          "orthorect", True
      )
  
      # Saves the interpolation flag
      self.interpolate = filetype_info.get("interpolate", True)
  
      try:
          longitude = self[filetype_info["cached_longitude"]]
          latitude = self[filetype_info["cached_latitude"]]
  
          if self.interpolate:
              (
                  self.longitude,
                  self.latitude,
              ) = self._perform_geo_interpolation(longitude, latitude)
          else:
              self.longitude, self.latitude = longitude, latitude
  
      except KeyError:
          logger.warning(
              "Cached longitude and/or latitude datasets are not correctly defined in YAML file"
          )
          self.longitude, self.latitude = None, None
  
file_path: satpy/satpy/readers/vii_base_nc.py
imports: import logging
  from datetime import datetime
  from geotiepoints.viiinterpolator import tie_points_geo_interpolation, tie_points_interpolation
  from satpy.readers.netcdf_utils import NetCDF4FileHandler
  from satpy.readers.vii_utils import SCAN_ALT_TIE_POINTS, TIE_POINTS_FACTOR
label_desc: Use image node_id 1 to create a new ViiNCBaseFileHandler object from inherited base classes: NetCDF4FileHandler with example: obj = ViiNCBaseFileHandler(filename, filename_info, filetype_info, orthorect)