sensor_name: visir/viirs

modifiers:
  rayleigh_corrected:
    compositor: !!python/name:satpy.composites.viirs.ReflectanceCorrector
    dem_filename: CMGDEM.hdf
    prerequisites:
    - satellite_azimuth_angle
    - satellite_zenith_angle
    - solar_azimuth_angle
    - solar_zenith_angle

  sunz_corrected:
    compositor: !!python/name:satpy.composites.SunZenithCorrector
    prerequisites:
    - solar_zenith_angle

composites:

  unsharp_true_color:
    compositor: !!python/name:satpy.composites.RGBCompositor
    prerequisites:
    - name: m05
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m04
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m03
      modifiers: [sunz_corrected, rayleigh_corrected]
# FIXME: Ratio is wrong due to sunz correction producing high output (I think)
#    optional_prerequisites:
#    - I01: [sunz_corrected, rayleigh_corrected]
    standard_name: true_color

  true_color:
    compositor: !!python/name:satpy.composites.viirs.RatioSharpenedRGB
    prerequisites:
    - name: m05
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m04
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m03
      modifiers: [sunz_corrected, rayleigh_corrected]
    optional_prerequisites:
    - name: i01
      modifiers: [sunz_corrected, rayleigh_corrected]
    standard_name: true_color
    high_resolution_band: red

  # copy of natural_color
  false_color:
    compositor: !!python/name:satpy.composites.viirs.RatioSharpenedRGB
    prerequisites:
    - name: m11
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m07
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m05
      modifiers: [sunz_corrected, rayleigh_corrected]
    optional_prerequisites:
    - name: i01
      modifiers: [sunz_corrected, rayleigh_corrected]
    standard_name: false_color
    high_resolution_band: blue

  natural_color:
    compositor: !!python/name:satpy.composites.viirs.RatioSharpenedRGB
    prerequisites:
    - name: m11
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m07
      modifiers: [sunz_corrected, rayleigh_corrected]
    - name: m05
      modifiers: [sunz_corrected, rayleigh_corrected]
    optional_prerequisites:
    - name: i01
      modifiers: [sunz_corrected, rayleigh_corrected]
    standard_name: natural_color
    high_resolution_band: blue

  true_color_raw:
    compositor: !!python/name:satpy.composites.RGBCompositor
    prerequisites:
    - name: m05
      modifiers: [sunz_corrected]
    - name: m04
      modifiers: [sunz_corrected]
    - name: m03
      modifiers: [sunz_corrected]
    standard_name: true_color

  night_overview:
    compositor: !!python/name:satpy.composites.RGBCompositor
    prerequisites:
    - DNB
    - DNB
    - m15
    standard_name: overview

  night_microphysics:
    compositor: !!python/name:satpy.composites.RGBCompositor
    prerequisites:
    - DNB
    - m12
    - m15
    standard_name: night_microphysics

  ifog:
    compositor: !!python/name:satpy.composites.viirs.VIIRSFog
    prerequisites:
    - i05
    - i04
    standard_name: temperature_difference
