class_docstr: Manipulate flags stored bitwise.
docstr: Init the flags.
docstr_tok: ["Init","the","flags","."]
code: def __init__(self, value, flag_list=None):
      """Init the flags."""
      self._value = value
      flag_list = flag_list or [
          "INVALID",
          "WATER",
          "LAND",
          "CLOUD",
          "SNOW_ICE",
          "INLAND_WATER",
          "TIDAL",
          "COSMETIC",
          "SUSPECT",
          "HISOLZEN",
          "SATURATED",
          "MEGLINT",
          "HIGHGLINT",
          "WHITECAPS",
          "ADJAC",
          "WV_FAIL",
          "PAR_FAIL",
          "AC_FAIL",
          "OC4ME_FAIL",
          "OCNN_FAIL",
          "Extra_1",
          "KDM_FAIL",
          "Extra_2",
          "CLOUD_AMBIGUOUS",
          "CLOUD_MARGIN",
          "BPAC_ON",
          "WHITE_SCATT",
          "LOWRW",
          "HIGHRW",
      ]
      self.meaning = {f: i for i, f in enumerate(flag_list)}
  
imports: import logging
  from functools import reduce
  import dask.array
  import numpy
  import xarray
  from satpy._compat import cached_property
  from satpy.readers import open_file_or_filename
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import angle2xyz, get_legacy_chunk_size, xyz2angle
label_desc: Use image node_id 1 to create a new BitFlags object  with example: obj = BitFlags(value, flag_list)