reader:
    name: viirs_edr_flood
    short_name: VIIRS flood
    long_name: VIIRS EDR Flood data in HDF4 format
    description: VIIRS flood HDF4 reader
    status: Beta
    supports_fsspec: false
    reader: !!python/name:satpy.readers.yaml_reader.FileYAMLReader
    sensors: [viirs]

file_types:
    viirs_edr:
        file_reader: !!python/name:satpy.readers.viirs_edr_flood.VIIRSEDRFlood
        file_patterns:
            - 'WATER_VIIRS_Prj_SVI_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_{source:8s}_{dim0:d}_{dim1:d}_01.hdf'
            - 'WATER_VIIRS_Prj_SVI_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}_{source:8s}_{aoi:3s}_{dim0:d}_{dim1:d}_01.hdf'
            - 'WATER_COM_VIIRS_Prj_SVI_d{start_time:%Y%m%d}_d{end_time:%Y%m%d}_{dim0:d}_{dim1:d}_{unknown1:2d}_{total_days:3d}day_{tile_num:3d}.hdf'

datasets:
    water_detection:
        name: 'WaterDetection'
        file_type: viirs_edr
