13 PvlGroup &algo = pvl.findObject(
"PhotometricModel")
14 .findGroup(
"Algorithm", Pvl::Traverse);
18 if(algo.hasKeyword(
"K")) SetPhotoK(algo[
"K"]);
35 static double pht_minnaert;
41 static double old_phase = -9999;
42 static double old_incidence = -9999;
43 static double old_emission= -9999;
45 if (old_phase == phase && old_incidence == incidence && old_emission == emission) {
50 old_incidence = incidence;
51 old_emission = emission;
53 incrad = incidence *
Isis::PI / 180.0;
54 emarad = emission *
Isis::PI / 180.0;
58 if(munot <= 0.0 || mu <= 0.0 || incidence == 90.0 ||
63 else if(p_photoK == 1.0) {
68 pht_minnaert = munot * pow((munot * mu), (p_photoK - 1.0));
Minnaert photometric model Derive model albedo using Minnaert equation.
void SetPhotoK(const double k)
Set the Minnaert function exponent.
virtual double PhotoModelAlgorithm(double phase, double incidence, double emission)
Return photometric K value.
Container for cube-like labels.
This is free and unencumbered software released into the public domain.
const double PI
The mathematical constant PI.