reader:
  description: SAFE Reader for SAR L2 OCN data
  name: safe_sar_l2_ocn
  sensors: [sar-c]
  default_channels: []
  reader: !!python/name:satpy.readers.yaml_reader.FileYAMLReader

file_types:
  safe_measurement:
    file_reader: !!python/name:satpy.readers.safe_sar_l2_ocn.SAFENC
    file_patterns: ['{fmission_id:3s}_{fsar_mode:2s}_{fproduct_type:3s}{fresolution:1s}_{fprocessing_level:1s}{fproduct_class:1s}{fpolarization:2s}_{fstart_time:%Y%m%dT%H%M%S}_{fend_time:%Y%m%dT%H%M%S}_{forbit_number:6d}_{fmission_data_take_id:6s}_{fproduct_unique_id:4s}.SAFE/measurement/{mission_id:3s}-{swath_id:2s}-{product_type:3s}-{polarization:2s}-{start_time:%Y%m%dt%H%M%S}-{end_time:%Y%m%dt%H%M%S}-{orbit_number:6d}-{mission_data_take_id:6s}-{image_number:3s}.nc']

datasets:
  owiLat:
    name: owiLat
    file_type: safe_measurement
    standard_name: latitude
    units: degree

  owiLon:
    name: owiLon
    file_type: safe_measurement
    standard_name: longitude
    units: degree

  owiWindDirection:
    name: owiWindDirection
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: degree

  owiWindSpeed:
    name: owiWindSpeed
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m s-1

  owiEcmwfWindDirection:
    name: owiEcmwfWindDirection
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: degree

  owiEcmwfWindSpeed:
    name: owiEcmwfWindSpeed
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m s-1

  owiHs:
    name: owiHs
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m

  owiWl:
    name: owiWl
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m

  owiDirmet:
    name: owiDirmet
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: degrees

  owiWindSeaHs:
    name: owiWindSeaHs
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m

  owiIncidenceAngle:
    name: owiIncidenceAngle
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: degrees

  owiElevationAngle:
    name: owiElevationAngle
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: degrees

  owiNrcs:
    name: owiNrcs
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m2/m2

  owiNesz:
    name: owiNesz
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m2/m2

  owiNrcsNeszCorr:
    name: owiNrcsNeszCorr
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m2/m2

  owiPolarisationName:
    name: owiPolarisationName
    sensor: sar-c
    file_type: safe_measurement

  owiPBright:
    name: owiPBright
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: '%'

  owiNrcsCmod:
    name: owiNrcsCmod
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: m2/m2

  owiCalConstObsi:
    name: owiCalConstObsi
    sensor: sar-c
    file_type: safe_measurement

  owiCalConstInci:
    name: owiCalConstInci
    sensor: sar-c
    file_type: safe_measurement

  owiInversionQuality:
    name: owiInversionQuality
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]

  owiMask:
    name: owiMask
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]

  owiHeading:
    name: owiHeading
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
    units: degrees

  owiWindQuality:
    name: owiWindQuality
    sensor: sar-c
    file_type: safe_measurement
    coordinates: [owiLon, owiLat]
