Support for FR fraction and similar indices
aphalo opened this issue · comments
As we have a NDxI()
function and q_ratio()
, e_ratio()
and ratio()
functions we should add support for computing fractions based on pairs of wavelengths: we can just add an option to q_ratio()
, e_ratio()
and ratio()
. Maybe named qty.out
with values "ratio"
, "spct.ratio"
, and "fraction"
and "spct.fraction"
, thus addressing also #13.
Implemented as new methods e_fraction()
and q_fraction()
for consistency with ratios. By refactoring some code the bloat is not too much.