reader:
  description: Generic Eumetsat Compact VIIRS Reader
  name: viirs_compact
  reader: !!python/name:satpy.readers.yaml_reader.FileYAMLReader
  sensors: [viirs]
  default_datasets:

datasets:
  longitude_m:
    name: longitude_m
    resolution: 742
    file_type: compact_m
    standard_name: longitude
    units: degree

  latitude_m:
    name: latitude_m
    resolution: 742
    file_type: compact_m
    standard_name: latitude
    units: degree

  longitude_dnb:
    name: longitude_dnb
    resolution: 743
    file_type: compact_dnb
    standard_name: longitude
    units: degree

  latitude_dnb:
    name: latitude_dnb
    resolution: 743
    file_type: compact_dnb
    standard_name: latitude
    units: degree

  M01:
    name: M01
    sensor: viirs
    wavelength: [0.402,0.412,0.422]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M02:
    name: M02
    sensor: viirs
    wavelength: [0.436,0.445,0.454]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M03:
    name: M03
    sensor: viirs
    wavelength: [0.478,0.488,0.498]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M04:
    name: M04
    sensor: viirs
    wavelength: [0.545,0.555,0.565]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M05:
    name: M05
    sensor: viirs
    wavelength: [0.662,0.672,0.682]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M06:
    name: M06
    sensor: viirs
    wavelength: [0.739,0.746,0.754]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M07:
    name: M07
    sensor: viirs
    wavelength: [0.846,0.865,0.885]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M08:
    name: M08
    sensor: viirs
    wavelength: [1.230,1.240,1.250]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M09:
    name: M09
    sensor: viirs
    resolution: 742
    wavelength: [1.371,1.378,1.386]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M10:
    name: M10
    sensor: viirs
    wavelength: [1.580,1.610,1.640]
    resolution: 742
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M11:
    name: M11
    sensor: viirs
    resolution: 742
    wavelength: [2.225,2.250,2.275]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M12:
    name: M12
    sensor: viirs
    wavelength: [3.610,3.700,3.790]
    resolution: 742
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        units: "K"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M13:
    name: M13
    sensor: viirs
    wavelength: [3.973,4.050,4.128]
    resolution: 742
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        units: "K"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M14:
    name: M14
    sensor: viirs
    resolution: 742
    wavelength: [8.400,8.550,8.700]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        units: "K"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M15:
    name: M15
    sensor: viirs
    resolution: 742
    wavelength: [10.263,10.763,11.263]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        units: "K"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  M16:
    name: M16
    sensor: viirs
    wavelength: [11.538,12.013,12.489]
    resolution: 742
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        units: "K"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 um-1 sr-1
    coordinates: [longitude_m, latitude_m]
    file_type: compact_m

  DNB:
    name: DNB
    sensor: viirs
    wavelength: [0.500,0.700,0.900]
    resolution: 743
    calibration:
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W cm-2 sr-1
    coordinates: [longitude_dnb, latitude_dnb]
    file_type: compact_dnb

  satellite_azimuth_angle:
    name: satellite_azimuth_angle
    sensor: viirs
    resolution: 742
    file_type: compact_m
    units: degree
    coordinates: [longitude_m, latitude_m]
    standard_name: platform_azimuth_angle

  solar_azimuth_angle:
    name: solar_azimuth_angle
    sensor: viirs
    resolution: 742
    file_type: compact_m
    units: degree
    coordinates: [longitude_m, latitude_m]
    standard_name: solar_azimuth_angle

  satellite_zenith_angle:
    name: satellite_zenith_angle
    sensor: viirs
    resolution: 742
    file_type: compact_m
    units: degree
    coordinates: [longitude_m, latitude_m]
    standard_name: platform_zenith_angle

  solar_zenith_angle:
    name: solar_zenith_angle
    sensor: viirs
    resolution: 742
    file_type: compact_m
    units: degree
    coordinates: [longitude_m, latitude_m]
    standard_name: solar_zenith_angle

  satellite_azimuth_angle_dnb:
    name: dnb_satellite_azimuth_angle
    sensor: viirs
    resolution: 743
    file_type: compact_dnb
    units: degree
    coordinates: [longitude_dnb, latitude_dnb]
    standard_name: platform_azimuth_angle

  solar_azimuth_angle_dnb:
    name: dnb_solar_azimuth_angle
    sensor: viirs
    resolution: 743
    file_type: compact_dnb
    units: degree
    coordinates: [longitude_dnb, latitude_dnb]
    standard_name: solar_azimuth_angle

  satellite_zenith_angle_dnb:
    name: dnb_satellite_zenith_angle
    sensor: viirs
    resolution: 743
    file_type: compact_dnb
    units: degree
    coordinates: [longitude_dnb, latitude_dnb]
    standard_name: platform_zenith_angle

  solar_zenith_angle_dnb:
    name: dnb_solar_zenith_angle
    sensor: viirs
    resolution: 743
    file_type: compact_dnb
    units: degree
    coordinates: [longitude_dnb, latitude_dnb]
    standard_name: solar_zenith_angle

  lunar_zenith_angle_dnb:
    name: dnb_lunar_zenith_angle
    sensor: viirs
    resolution: 743
    file_type: compact_dnb
    units: degree
    coordinates: [longitude_dnb, latitude_dnb]
    standard_name: lunar_zenith_angle

  lunar_azimuth_angle_dnb:
    name: dnb_lunar_azimuth_angle
    sensor: viirs
    resolution: 743
    file_type: compact_dnb
    units: degree
    coordinates: [longitude_dnb, latitude_dnb]
    standard_name: lunar_azimuth_angle

  moon_illumination_fraction_dnb:
    name: dnb_moon_illumination_fraction
    resolution: 743
    file_type: compact_dnb

file_types:
  compact_m:
    file_reader: !!python/name:satpy.readers.viirs_compact.VIIRSCompactFileHandler
    file_patterns: ['SVMC_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_eum_ops.h5']
  compact_dnb:
    file_reader: !!python/name:satpy.readers.viirs_compact.VIIRSCompactFileHandler
    file_patterns: ['SVDNBC_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_c{creation_time:%Y%m%d%H%M%S%f}_eum_ops.h5']
