Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't compute log10(chl) for small chl
if chl <= chl_min, we already have log10(chl_min) stored as a parameter. Avoiding the computation of log10(chl) in those cases prevents the possibility of a floating point exception, and lets us replace a max() statement with an if check so it shouldn't affect performance. This requires adding chl_min to the optics_type (which already has log10chl_min and log10chl_max).
- Loading branch information