Skip to content

dmaciel123/gloria_flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLORIA Flags

This project provides the R scripts to perform quality flagging on the GLORIA dataset of global inland and coastal remote sensing reflectance spectra. The dataset is hosted at PANGAEA Data Publisher for Earth & Environmental Science (https://doi.pangaea.de/10.1594/PANGAEA.948492) and further details are provided in the accompanying publication: Lehmann, Gurlin, Pahlevan, et al. FULL CITATION TO FOLLOW

The flags are described below as per Table 3 (section 'Technical validation') in the above citation. The GLORIA quality flags are to alert the user to potential quality issues, but are not meant as a definitive quality judgement.

The scripts can be run using the Run.R file.

To clone the repository you can use the following command:

git clone https://github.com/dmaciel123/gloria_flags.git

Note that the input data loaded by the driver function (Run.R) has to be obtained from the online repository described in the first paragraph of this file.

The following methods are implemented:

Baseline Shift

Spectra which appear to be shifted above or below the zero line: Spectra shifted ‘up’ are those where the minimum of the spectrum is a large percentage (58.66%) of its median (upper whisker of boxplot - higher than distance between 3rd quartile + 1.5*IQR). Spectra shifted ‘down’ are those with at least 20 negative values and either a clear negative linear slope in the interval 765-900 nm (-8.664468 * 10-7) (< 1st quartile) and a moderate percentage of negative values in this spectral region (>50%), a large percentage of negative values at Rrs >765 nm (>70%), or at least 20 negative values at Rrs <450 nm.

Oxygen Peak Calculation

Local maximum or minimum in Rrs near 762 nm due to absorption of light by oxygen: The spectra were standardized to zero mean and unit standard deviation. A straight line was fitted to the interval between the median values of (745-755 nm) and (775-785 nm). The maximum absolute residual of the standardized spectrum near 762 nm was recorded and is provided as a value in this column.

Spectra where Oxygen_peak_height > 0.1. This threshold was determined using visual inspection of the distribution of peak heights with respect to spectral shapes.

Noisy UV-edge

Spectra with high-frequency variability, potentially instrument noise, near the blue end: The spectra were standardized to zero mean and unit standard deviation. A 4th order polynomial was fitted over the interval 350-400 nm. Spectra with a root-mean square error >0.15 were flagged. This threshold was determined using visual inspection of the distribution of RMSEs with respect to spectral shapes.

Noisy red-edge

Spectra with high-frequency variability, potentially instrument noise, near the red end: The spectra were standardized to zero mean and unit standard deviation. A 4th order polynomial was fitted over the interval 750-900 nm. Spectra with a root-mean square error (RMSE) >0.2 were flagged. This threshold was determined using visual inspection of the distribution of RMSEs with respect to spectral shapes.

Negative UV Slope

Spectra with negative slopes in the ultraviolet (UV) and blue end: The spectra were standardized to zero mean and unit standard deviation. A straight line was fitted over the interval 350-420 nm and spectra with slopes <-0.005 were flagged. This threshold was determined using visual inspection of the distribution of slope values with respect to spectral shapes.

About

GLORIA dataset (Lehmann, Gurlin, Pahlevan et al. 2022) R scripts for creating flags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages