class_docstr: Reader class for FCI L2 Segmented products in NetCDF4 format.
class_docstr_tok: ["Reader","class","for","FCI","L2","Segmented","products","in","NetCDF4","format","."]
docstr: Get dataset using the file_key in dataset_info.
docstr_tok: ["Get","dataset","using","the","file_key","in","dataset_info","."]
code: def get_dataset(self, dataset_id, dataset_info):
      """Get dataset using the file_key in dataset_info."""
      var_key = dataset_info["file_key"]
      logger.debug(
          "Reading in file to get dataset with key %s.", var_key
      )
  
      try:
          variable = self.nc[var_key]
      except KeyError:
          logger.warning(
              "Could not find key %s in NetCDF file, no valid Dataset created",
              var_key,
          )
          return None
  
      if any(
          dim_id in dataset_info.keys()
          for dim_id in self.multi_dims.values()
      ):
          variable = self._slice_dataset(
              variable, dataset_info, self.multi_dims
          )
  
      if self.with_adef and var_key not in [
          "longitude",
          "latitude",
          "product_quality",
          "product_completeness",
          "product_timeliness",
      ]:
          self._area_def = self._construct_area_def(dataset_id)
  
          # coordinates are not relevant when returning data with an AreaDefinition
          if "coordinates" in dataset_info.keys():
              del dataset_info["coordinates"]
  
      if "fill_value" in dataset_info:
          variable = self._mask_data(
              variable, dataset_info["fill_value"]
          )
  
      variable = self._set_attributes(
          variable, dataset_info, segmented=True
      )
  
      return variable
  
imports: import logging
  from contextlib import suppress
  import numpy
  import xarray
  from pyresample import geometry
  from satpy._compat import cached_property
  from satpy.readers._geos_area import get_geos_area_naming, make_ext
  from satpy.readers.eum_base import get_service_mode
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.resample import get_area_def
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 3 for calling the FciL2NCSegmentFileHandler obj's underlying member method code with example usage: obj.get_dataset(dataset_id, dataset_info) and returns: variable, None