class_docstr: Shared operations for file handlers.
class_docstr_tok: ["Shared","operations","for","file","handlers","."]
docstr: Set fill_values, as defined in yaml-file, to NaN.
  
  Set data points in variable to NaN if they are equal to fill_value
  or any of the values in fill_value if fill_value is a list.
docstr_tok: ["Set","fill_values",",","as","defined","in","yaml-file",",","to","NaN",".","Set","data","points","in","variable","to","NaN","if","they","are","equal","to","fill_value","or","any","of","the","values","in","fill_value","if","fill_value","is","a","list","."]
code: def _mask_data(variable, fill_value):
      """Set fill_values, as defined in yaml-file, to NaN.
  
      Set data points in variable to NaN if they are equal to fill_value
      or any of the values in fill_value if fill_value is a list.
      """
      if not isinstance(fill_value, list):
          fill_value = [fill_value]
  
      for val in fill_value:
          variable = variable.where(variable != val).astype("float32")
  
      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 7 for calling the FciL2CommonFunctions obj's underlying member method code with example usage: obj._mask_data(variable, fill_value) and returns: variable