reader:
  name: amsr2_l1b
  short_name: AMSR2 l1b
  long_name: GCOM-W1 AMSR2 data in HDF5 format
  description: GCOM-W1 AMSR2 instrument HDF5 reader
  status: Nominal
  supports_fsspec: false
  # could this be a python hook ?
  reader: !!python/name:satpy.readers.yaml_reader.FileYAMLReader
  sensors: [amsr2]
  default_channels: []

datasets:
  btemp_10.7v:
    name: 'btemp_10.7v'
    # FIXME: These are actually GHz not micrometers
    wavelength: [10.7, 10.7, 10.7]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (10.7GHz,V)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_10.7h:
    name: 'btemp_10.7h'
    wavelength: [10.7, 10.7, 10.7]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (10.7GHz,H)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_6.9v:
    name: 'btemp_6.9v'
    wavelength: [6.9, 6.9, 6.9]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (6.9GHz,V)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_6.9h:
    name: 'btemp_6.9h'
    wavelength: [6.9, 6.9, 6.9]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (6.9GHz,H)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_7.3v:
    name: 'btemp_7.3v'
    wavelength: [7.3, 7.3, 7.3]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (7.3GHz,V)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_7.3h:
    name: 'btemp_7.3h'
    wavelength: [7.3, 7.3, 7.3]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (7.3GHz,H)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_18.7v:
    name: 'btemp_18.7v'
    wavelength: [18.7, 18.7, 18.7]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (18.7GHz,V)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_18.7h:
    name: 'btemp_18.7h'
    wavelength: [18.7, 18.7, 18.7]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (18.7GHz,H)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_23.8v:
    name: 'btemp_23.8v'
    wavelength: [23.8, 23.8, 23.8]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (23.8GHz,V)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_23.8h:
    name: 'btemp_23.8h'
    wavelength: [23.8, 23.8, 23.8]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (23.8GHz,H)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_36.5v:
    name: 'btemp_36.5v'
    wavelength: [36.5, 36.5, 36.5]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (36.5GHz,V)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_36.5h:
    name: 'btemp_36.5h'
    wavelength: [36.5, 36.5, 36.5]
    calibration: brightness_temperature
    resolution: 10000
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (36.5GHz,H)"
    fill_value: 65535
    coordinates:
        - longitude
        - latitude

  btemp_89.0av:
    name: 'btemp_89.0av'
    wavelength: [89.0, 89.0, 89.0]
    calibration: brightness_temperature
    resolution: 5000
    navigation: amsr2_5km_a
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (89.0GHz-A,V)"
    fill_value: 65535
    coordinates:
        - longitude_a
        - latitude_a

  btemp_89.0ah:
    name: 'btemp_89.0ah'
    wavelength: [89.0, 89.0, 89.0]
    calibration: brightness_temperature
    resolution: 5000
    navigation: amsr2_5km_a
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (89.0GHz-A,H)"
    fill_value: 65535
    coordinates:
        - longitude_a
        - latitude_a

  btemp_89.0bv:
    name: 'btemp_89.0bv'
    wavelength: [89.0, 89.0, 89.0]
    calibration: brightness_temperature
    resolution: 5000
    navigation: amsr2_5km_b
    standard_name: toa_brightness_temperature
    polarization: V
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (89.0GHz-B,V)"
    fill_value: 65535
    coordinates:
        - longitude_b
        - latitude_b

  btemp_89.0bh:
    name: 'btemp_89.0bh'
    wavelength: [89.0, 89.0, 89.0]
    calibration: brightness_temperature
    resolution: 5000
    navigation: amsr2_5km_b
    standard_name: toa_brightness_temperature
    polarization: H
    file_type: amsr2_l1b
    file_key: "Brightness Temperature (89.0GHz-B,H)"
    fill_value: 65535
    coordinates:
        - longitude_b
        - latitude_b

  latitude_5km_a:
    name: latitude_a
    resolution: 5000
    file_type: amsr2_l1b
    standard_name: latitude
    polarization: [H, V]
    units: degree
    file_key: 'Latitude of Observation Point for 89A'
    fill_value: -9999.0

  latitude_5km_b:
    name: latitude_b
    resolution: 5000
    file_type: amsr2_l1b
    standard_name: latitude
    polarization: [H, V]
    units: degree
    file_key: 'Latitude of Observation Point for 89B'
    fill_value: -9999.0

  longitude_5km_a:
    name: longitude_a
    resolution: 5000
    file_type: amsr2_l1b
    standard_name: longitude
    polarization: [H, V]
    units: degree
    file_key: 'Longitude of Observation Point for 89A'
    fill_value: -9999.0

  longitude_5km_b:
    name: longitude_b
    resolution: 5000
    file_type: amsr2_l1b
    standard_name: longitude
    polarization: [H, V]
    units: degree
    file_key: 'Longitude of Observation Point for 89B'
    fill_value: -9999.0

  latitude_10km:
    name: latitude
    resolution: 10000
    file_type: amsr2_l1b
    standard_name: latitude
    polarization: [H, V]
    units: degree
    file_key: 'Latitude of Observation Point for 89A'
    fill_value: -9999.0

  longitude_10km:
    name: longitude
    resolution: 10000
    file_type: amsr2_l1b
    standard_name: longitude
    polarization: [H, V]
    units: degree
    file_key: 'Longitude of Observation Point for 89A'
    fill_value: -9999.0


file_types:
  amsr2_l1b:
    file_reader: !!python/name:satpy.readers.amsr2_l1b.AMSR2L1BFileHandler
    file_patterns: ['{platform_shortname:3s}{instrument_shortname:3s}_{start_time:%Y%m%d%H%M}_{path_number:3d}{orbit_direction:1s}_{process_level:2s}{process_kind:2s}{product_id:3s}{resolution_id:1s}{dev_id:1s}{product_version:1s}{algorithm_version:3d}{parameter_version:3d}.h5']
