reader:
  name: clavrx
  short_name: CLAVR-X
  long_name: The Clouds from AVHRR Extended (CLAVR-x)
  description: CLAVR-X Reader
  status: Nominal
  supports_fsspec: false
  reader: !!python/name:satpy.readers.yaml_reader.FileYAMLReader
  sensors: [viirs, modis, avhrr, ahi, abi]

file_types:
  clavrx_hdf4:
    #    clavrx_npp_d20170520_t2055235_e2056477_b28822.level2.hdf'
    #    clavrx_H08_20180719_1300.level2.hdf
    file_reader: !!python/name:satpy.readers.clavrx.CLAVRXHDF4FileHandler
    file_patterns:
      - 'clavrx_{platform_shortname}_d{start_time:%Y%m%d_t%H%M%S%f}_e{end_time:%H%M%S%f}_b{orbit:5d}.level2.hdf'
      - 'clavrx_{platform_shortname}.{start_time:%y%j.%H%M}.{resolution:s}.level2.hdf'
      - 'clavrx_hrpt_{platform_shortname}_{start_time:%Y%m%d_%H%M}_{orbit}.level2.hdf'
      - 'clavrx_{platform_shortname}_{start_time:%Y%m%d_%H%M}.level2.hdf'
  clavrx_nc:
    #    clavrx_OR_ABI-L1b-RadF-M6C01_G16_s20211101600189.level2.nc
    #    clavrx_H08_20210322_0300_B01_FLDK_R.level2.nc
    file_reader: !!python/name:satpy.readers.clavrx.CLAVRXNetCDFFileHandler
    file_patterns:
      - 'clavrx_OR_{sensor}-L1b-Rad{sector}-{mode}C{channel_number}_{platform_shortname}_s{start_time:%Y%j%H%M%S%f}.level2.nc'
      - 'clavrx_{platform_shortname}_{start_time:%Y%m%d_%H%M}_B{channel_number}_{sector}_R.level2.nc'

#datasets:
#  longitude:
#    name: longitude
#    resolution: 0
#    file_type: level2
#  latitude:
#    name: latitude
#    resolution: 0
#    file_type: level2
#  # resolution come from file
#  cld_temp_acha:
#    name: Solar_Zenith
#    resolution: 0
#    coordinates: [longitude, latitude]
#    file_type: level2
