# S5_L2_AUI

## Variables

The table below lists the variables that are present in the HARP product that results from an ingestion of `S5_L2_AUI` data.

field name | type | dimensions | unit | description
--- | --- | --- | --- | ---
datetime | double | {time} | [seconds since 2020-01-01] | time of the measurement
datetime_length | double |  | [s] | measurement duration
orbit_index | int32 |  |  | absolute orbit number
validity | int32 | {time} |  | processing quality flag
latitude | float | {time} | [degree_north] | latitude of the ground pixel center (WGS84)
longitude | float | {time} | [degree_east] | longitude of the ground pixel center (WGS84)
latitude_bounds | float | {time, 4} | [degree_north] | the four latitude boundaries of each ground pixel
longitude_bounds | float | {time, 4} | [degree_east] | the four longitude boundaries of each ground pixel
sensor_latitude | float | {time} | [degree_north] | latitude of the spacecraft sub-satellite point on the WGS84 reference ellipsoid
sensor_longitude | float | {time} | [degree_east] | longitude of the spacecraft sub-satellite point on the WGS84 reference ellipsoid
sensor_altitude | float | {time} | [m] | altitude of the spacecraft relative to the WGS84 reference ellipsoid.
sensor_orbit_phase | double | {time} | [] | relative offset (0.0 … 1.0) of the measurement in the orbit.
solar_zenith_angle | float | {time} | [degree] | zenith angle of the sun measured from the ground pixel location on the WGS84 reference ellipsoid
solar_azimuth_angle | float | {time} | [degree] | azimuth angle of the sun measured from the ground pixel location on the WGS84 ellipsoid
sensor_zenith_angle | float | {time} | [degree] | zenith angle of the spacecraft measured from the ground pixel location on the WGS84 reference ellipsoid
sensor_azimuth_angle | float | {time} | [degree] | azimuth angle of the spacecraft measured from the ground pixel WGS84 reference ellipsoid
surface_altitude | float | {time} | [m] | height of the surface above WGS84 ellipsoid averaged over the S5 pixel
surface_altitude_uncertainty | float | {time} | [m] | standard deviation of the height of the surface above WGS84 ellipsoid averaged over the S5 pixel
surface_pressure | float | {time} | [Pa] | surface pressure; from ECMWF and adjusted for surface elevation
surface_type | int32 | {time} |  | surface classification
snow_ice_type | int32 | {time} |  | surface condition (snow/ice); enumeration values: snow_free_land (0), sea_ice (1), permanent_ice (2), snow (3), ocean (4)
sea_ice_fraction | float | {time} | [] | sea-ice concentration (as a fraction)
absorbing_aerosol_index | float | {time} | [] | aerosol index
absorbing_aerosol_index_uncertainty | float | {time} | [] | uncertainty of the aerosol index
absorbing_aerosol_index_validity | int32 | {time} |  | continuous quality descriptor, varying between 0 (no data) and 100 (full quality data)
reflectance | float | {time, spectral} | [] | measured reflectance pair (lower, upper) for selected wavelength ratio
reflectance_uncertainty | float | {time, spectral} | [] | measured reflectance uncertainty
surface_albedo | float | {time} | [] | scene albedo
index | int32 | {time} |  | zero-based index of the sample within the source product

## Ingestion options

The table below lists the available ingestion options for `S5_L2_AUI` products.

option name | legal values | description
--- | --- | ---
wavelength_ratio | 354_388nm, 340_380nm, 335_367nm | ingest aerosol index retrieved at wavelengths 354/388 nm (default), 340/380 nm, or 335/367 nm

## Mapping description

The table below details where and how each variable was retrieved from the input product.

field name | mapping description
--- | ---
datetime | path | /data/PRODUCT/time, /data/PRODUCT/delta_time[]
description | time converted from days since 2020-01-01 to seconds since 2020-01-01 (using 86400 seconds per day) and delta_time added; the time associated with a scanline is repeated for each pixel in the scanline
datetime_length | path | /data/PRODUCT/delta_time[]
description | delta_time[1] - delta_time[0]
orbit_index | path | /@orbit_start
validity | path | /data/PRODUCT/processing_quality_flags[]
description | the uint64 data is cast to int32
latitude | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/latitude[]
longitude | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/longitude[]
latitude_bounds | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/latitude_bounds[]
longitude_bounds | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/longitude_bounds[]
sensor_latitude | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/satellite_latitude[]
description | the satellite latitude associated with a scanline is repeated for each pixel in the scanline
sensor_longitude | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/satellite_longitude[]
description | the satellite longitude associated with a scanline is repeated for each pixel in the scanline
sensor_altitude | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/satellite_altitude[]
description | the satellite altitude associated with a scanline is repeated for each pixel in the scanline
sensor_orbit_phase | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/satellite_orbit_phase[]
solar_zenith_angle | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/solar_zenith_angle[]
solar_azimuth_angle | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/solar_azimuth_angle[]
sensor_zenith_angle | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/viewing_zenith_angle[]
sensor_azimuth_angle | path | /data/PRODUCT/SUPPORT_DATA/GEOLOCATIONS/viewing_azimuth_angle[]
surface_altitude | path | /data/PRODUCT/SUPPORT_DATA/INPUT_DATA/surface_altitude[]
surface_altitude_uncertainty | path | data/PRODUCT/SUPPORT_DATA/INPUT_DATA/surface_altitude_precision[]
surface_pressure | path | data/PRODUCT/SUPPORT_DATA/INPUT_DATA/surface_pressure[]
surface_type | path | /data/PRODUCT/SUPPORT_DATA/INPUT_DATA/surface_classification[]
snow_ice_type | condition | band=band3a or band unset
path | /data/PRODUCT_BAND3A/SUPPORT_DATA/INPUT_DATA/snow_ice_flag[]
description | 0: snow_free_land (0), 1-100: sea_ice (1), 101: permanent_ice (2), 103: snow (3), 255: ocean (4), other values map to -1
condition | band=band3c
path | /data/PRODUCT_BAND3C/SUPPORT_DATA/INPUT_DATA/snow_ice_flag[]
description | 0: snow_free_land (0), 1-100: sea_ice (1), 101: permanent_ice (2), 103: snow (3), 255: ocean (4), other values map to -1
sea_ice_fraction | condition | band=band3a or band unset
path | /data/PRODUCT_BAND3A/SUPPORT_DATA/INPUT_DATA/snow_ice_flag[]
description | if 1 <= snow_ice_flag <= 100 then snow_ice_flag/100.0 else 0.0
condition | band=band3c
path | /data/PRODUCT_BAND3C/SUPPORT_DATA/INPUT_DATA/snow_ice_flag[]
description | if 1 <= snow_ice_flag <= 100 then snow_ice_flag/100.0 else 0.0
absorbing_aerosol_index | condition | wavelength_ratio=354_388nm or wavelength_ratio unset
path | /data/PRODUCT/aerosol_index_354_388
condition | wavelength_ratio=340_380nm
path | /data/PRODUCT/aerosol_index_340_380
condition | wavelength_ratio=335_367nm
path | /data/PRODUCT/aerosol_index_335_367
absorbing_aerosol_index_uncertainty | condition | wavelength_ratio=354_388nm (default)
path | data/PRODUCT/aerosol_index_354_388_precision
condition | wavelength_ratio=340_380nm
path | data/PRODUCT/aerosol_index_340_380_precision
condition | wavelength_ratio=335_367nm
path | data/PRODUCT/aerosol_index_335_367_precision
absorbing_aerosol_index_validity | path | data/PRODUCT/qa_value
reflectance | condition | wavelength_ratio=354_388nm or wavelength_ratio unset
path | /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_354_measured[], /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_388_measured[]
condition | wavelength_ratio=340_380nm
path | /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_340_measured[], /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_380_measured[]
condition | wavelength_ratio=335_367nm
path | /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_335_measured[], /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_367_measured[]
reflectance_uncertainty | condition | wavelength_ratio=354_388nm or wavelength_ratio unset
path | /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_precision_354_measured[], /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_precision_388_measured[]
condition | wavelength_ratio=340_380nm
path | /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_precision_340_measured[], /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_precision_380_measured[]
condition | wavelength_ratio=335_367nm
path | /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_precision_335_measured[], /data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/reflectance_precision_367_measured[]
surface_albedo | condition | wavelength_ratio=354_388nm or wavelength_ratio unset
path | data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/scene_albedo_388[]
condition | wavelength_ratio=340_380nm
path | data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/scene_albedo_380[]
condition | wavelength_ratio=335_367nm
path | data/PRODUCT/SUPPORT_DATA/DETAILED_RESULTS/scene_albedo_367[]