class_docstr: File handler for Maia files.
class_docstr_tok: ["File","handler","for","Maia","files","."]
docstr: Read the file.
docstr_tok: ["Read","the","file","."]
code: def read(self, filename):
      """Read the file."""
      self.h5 = h5py.File(filename, "r")
      missing = -9999.0
      self.Lat = (
          da.from_array(self.h5["DATA/Latitude"], chunks=CHUNK_SIZE)
          / 10000.0
      )
      self.Lon = (
          da.from_array(self.h5["DATA/Longitude"], chunks=CHUNK_SIZE)
          / 10000.0
      )
      self.selected = self.Lon > missing
      self.file_content = {}
      for key in self.h5["DATA"].keys():
          self.file_content[key] = da.from_array(
              self.h5["DATA/" + key], chunks=CHUNK_SIZE
          )
      for key in self.h5["HEADER"].keys():
          self.file_content[key] = self.h5["HEADER/" + key][:]
  
      # Cloud Mask on pixel
      mask = 2**0 + 2**1 + 2**2
      lst = self.file_content["CloudMask"] & mask
      lst = lst / 2**0
      self.file_content["cma"] = lst
  
      # Cloud Mask confidence
      mask = 2**5 + 2**6
      lst = self.file_content["CloudMask"] & mask
      lst = lst / 2**5
      self.file_content["cma_conf"] = lst
  
      # Cloud Mask Quality
      mask = 2**3 + 2**4
      lst = self.file_content["CloudMask"] & mask
      lst = lst / 2**3
      self.file_content["cma_qual"] = lst
  
      # Opaque Cloud
      mask = 2**21
      lst = self.file_content["CloudMask"] & mask
      lst = lst / 2**21
      self.file_content["opaq_cloud"] = lst
  
      # land /water Background
      mask = 2**15 + 2**16 + 2**17
      lst = self.file_content["CloudMask"] & mask
      lst = lst / 2**15
      self.file_content["land_water_background"] = lst
  
      # CT (Actual CloudType)
      mask = 2**4 + 2**5 + 2**6 + 2**7 + 2**8
      classif = self.file_content["CloudType"] & mask
      classif = classif / 2**4
      self.file_content["ct"] = classif.astype(np.uint8)
  
file_path: satpy/satpy/readers/maia.py
imports: import logging
  import dask.array
  import h5py
  import numpy
  from xarray import DataArray
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 2 for calling the MAIAFileHandler obj's underlying member method code with example usage: obj.read(filename) without return types