reader:
  name: viirs_sdr
  short_name: VIIRS SDR
  long_name: SNPP VIIRS data in HDF5 SDR format
  description: VIIRS SDR Reader
  status: Nominal
  supports_fsspec: false
  reader: !!python/name:satpy.readers.viirs_sdr.VIIRSSDRReader
  sensors: [viirs]
  # file pattern keys to sort files by with 'satpy.utils.group_files'
  # by default, don't use start_time group files (only orbit and platform)
  group_keys: ['orbit', 'platform_shortname']

datasets:
  i_lon:
    name: i_longitude
    resolution: 371
    file_type: generic_file
    dataset_groups: [GITCO, GIMGO]
    file_key: All_Data/{dataset_group}_All/Longitude
    file_units: "degrees_east"
    standard_name: longitude
    coordinates: [i_longitude, i_latitude]
  i_lat:
    name: i_latitude
    resolution: 371
    file_type: generic_file
    dataset_groups: [GITCO, GIMGO]
    file_key: All_Data/{dataset_group}_All/Latitude
    file_units: "degrees_north"
    standard_name: latitude
    coordinates: [i_longitude, i_latitude]
  m_lon:
    name: m_longitude
    resolution: 742
    file_type: generic_file
    dataset_groups: [GMTCO, GMODO]
    file_key: All_Data/{dataset_group}_All/Longitude
    file_units: "degrees_east"
    standard_name: longitude
    coordinates: [m_longitude, m_latitude]
  m_lat:
    name: m_latitude
    resolution: 742
    file_type: generic_file
    dataset_groups: [GMTCO, GMODO]
    file_key: All_Data/{dataset_group}_All/Latitude
    file_units: "degrees_north"
    standard_name: latitude
    coordinates: [m_longitude, m_latitude]
  dnb_lon:
    name: dnb_longitude
    resolution: 743
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: All_Data/{dataset_group}_All/Longitude
    file_units: "degrees_east"
    standard_name: longitude
    coordinates: [dnb_longitude, dnb_latitude]
  dnb_lat:
    name: dnb_latitude
    resolution: 743
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: All_Data/{dataset_group}_All/Latitude
    file_units: "degrees_north"
    standard_name: latitude
    coordinates: [dnb_longitude, dnb_latitude]
  I01:
    name: I01
    wavelength: [0.600, 0.640, 0.680]
    modifiers: [sunz_corrected_iband]
    dataset_groups: [SVI01]
    file_type: generic_file
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  I02:
    name: I02
    wavelength: [0.845, 0.865, 0.884]
    modifiers: [sunz_corrected_iband]
    dataset_groups: [SVI02]
    file_type: generic_file
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  I03:
    name: I03
    wavelength: [1.580, 1.610, 1.640]
    modifiers: [sunz_corrected_iband]
    dataset_groups: [SVI03]
    file_type: generic_file
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  I04:
    name: I04
    wavelength: [3.580, 3.740, 3.900]
    file_type: generic_file
    dataset_groups: [SVI04]
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  I05:
    name: I05
    wavelength: [10.500, 11.450, 12.300]
    dataset_groups: [SVI05]
    file_type: generic_file
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M01:
    name: M01
    wavelength: [0.402, 0.412, 0.422]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM01]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M02:
    name: M02
    wavelength: [0.436, 0.445, 0.454]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM02]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M03:
    name: M03
    wavelength: [0.478, 0.488, 0.498]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM03]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M04:
    name: M04
    wavelength: [0.545, 0.555, 0.565]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM04]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M05:
    name: M05
    wavelength: [0.662, 0.672, 0.682]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM05]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M06:
    name: M06
    wavelength: [0.739, 0.746, 0.754]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM06]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M07:
    name: M07
    wavelength: [0.846, 0.865, 0.885]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM07]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M08:
    name: M08
    wavelength: [1.230, 1.240, 1.250]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM08]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M09:
    name: M09
    wavelength: [1.371, 1.378, 1.386]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM09]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M10:
    name: M10
    wavelength: [1.580, 1.610, 1.640]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM10]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M11:
    name: M11
    wavelength: [2.225, 2.250, 2.275]
    modifiers: [sunz_corrected]
    dataset_groups: [SVM11]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      reflectance:
        standard_name: toa_bidirectional_reflectance
        file_units: "1"
        units: "%"
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M12:
    name: M12
    wavelength: [3.610, 3.700, 3.790]
    dataset_groups: [SVM12]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M13:
    name: M13
    wavelength: [3.973, 4.050, 4.128]
    dataset_groups: [SVM13]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M14:
    name: M14
    wavelength: [8.400, 8.550, 8.700]
    dataset_groups: [SVM14]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M15:
    name: M15
    wavelength: [10.263, 10.763, 11.263]
    dataset_groups: [SVM15]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1
  M16:
    name: M16
    wavelength: [11.538, 12.013, 12.489]
    dataset_groups: [SVM16]
    file_type: generic_file
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    calibration:
      brightness_temperature:
        standard_name: toa_brightness_temperature
        file_units: K
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        file_units: W m-2 um-1 sr-1

  I_SOLZ:
    name: solar_zenith_angle
    standard_name: solar_zenith_angle
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GITCO, GIMGO]
    file_key: 'All_Data/{dataset_group}_All/SolarZenithAngle'
  I_SOLA:
    name: solar_azimuth_angle
    standard_name: solar_azimuth_angle
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GITCO, GIMGO]
    file_key: 'All_Data/{dataset_group}_All/SolarAzimuthAngle'
  I_SENZ:
    name: satellite_zenith_angle
    standard_name: sensor_zenith_angle
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GITCO, GIMGO]
    file_key: 'All_Data/{dataset_group}_All/SatelliteZenithAngle'
  I_SENA:
    name: satellite_azimuth_angle
    standard_name: sensor_azimuth_angle
    resolution: 371
    coordinates: [i_longitude, i_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GITCO, GIMGO]
    file_key: 'All_Data/{dataset_group}_All/SatelliteAzimuthAngle'
  M_SOLZ:
    name: solar_zenith_angle
    standard_name: solar_zenith_angle
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GMTCO, GMODO]
    file_key: 'All_Data/{dataset_group}_All/SolarZenithAngle'
  M_SOLA:
    name: solar_azimuth_angle
    standard_name: solar_azimuth_angle
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GMTCO, GMODO]
    file_key: 'All_Data/{dataset_group}_All/SolarAzimuthAngle'
  M_SENZ:
    name: satellite_zenith_angle
    standard_name: sensor_zenith_angle
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GMTCO, GMODO]
    file_key: 'All_Data/{dataset_group}_All/SatelliteZenithAngle'
  M_SENA:
    name: satellite_azimuth_angle
    standard_name: sensor_azimuth_angle
    resolution: 742
    coordinates: [m_longitude, m_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GMTCO, GMODO]
    file_key: 'All_Data/{dataset_group}_All/SatelliteAzimuthAngle'
  DNB:
    name: DNB
    wavelength: [0.500, 0.700, 0.900]
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    calibration:
      radiance:
        standard_name: toa_outgoing_radiance_per_unit_wavelength
        units: W m-2 sr-1
        file_units: W cm-2 sr-1
    dataset_groups: [SVDNB]
    file_type: generic_file
  DNB_SZA:
    name: dnb_solar_zenith_angle
    standard_name: solar_zenith_angle
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/SolarZenithAngle'
  DNB_LZA:
    name: dnb_lunar_zenith_angle
    standard_name: lunar_zenith_angle
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/LunarZenithAngle'
  DNB_SENZ:
    name: dnb_satellite_zenith_angle
    standard_name: sensor_zenith_angle
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/SatelliteZenithAngle'
  DNB_SAA:
    name: dnb_solar_azimuth_angle
    standard_name: solar_azimuth_angle
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/SolarAzimuthAngle'
  DNB_LAA:
    name: dnb_lunar_azimuth_angle
    standard_name: lunar_azimuth_angle
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/LunarAzimuthAngle'
  DNB_SENA:
    name: dnb_satellite_azimuth_angle
    standard_name: sensor_azimuth_angle
    resolution: 743
    coordinates: [dnb_longitude, dnb_latitude]
    file_units: degrees
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/SatelliteAzimuthAngle'
  dnb_moon_illumination_fraction:
    name: dnb_moon_illumination_fraction
    file_type: generic_file
    dataset_groups: [GDNBO]
    file_key: 'All_Data/{dataset_group}_All/MoonIllumFraction'
    file_units: '1'

file_types:
  generic_file:
    file_reader: !!python/name:satpy.readers.viirs_sdr.VIIRSSDRFileHandler
    file_patterns: ['{datasets}_{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}_{source}.h5']
    # Example filenames
    # GMODO-SVM01-SVM02-SVM03-SVM04-SVM05-SVM06-SVM07-SVM08-SVM09-SVM10-SVM11-SVM12-SVM13-SVM14-SVM15-SVM16_j01_d20190304_t1103049_e1108449_b06684_c20190304213641984108_nobc_ops.h5
    # GMTCO_j01_d20190304_t1103049_e1108449_b06684_c20190304150845549693_nobc_ops.h5
    # GDNBO-SVDNB_j01_d20190304_t1057236_e1103036_b06684_c20190304213641088765_nobc_ops.h5
    # SVM15_npp_d20150311_t1126366_e1128008_b17451_c20150311113344455225_cspp_dev.h5
