9 #include "IException.h"
12 Minnaert::Minnaert(Pvl &pvl) : PhotoModel(pvl) {
13 PvlGroup &algo = pvl.findObject(
"PhotometricModel")
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));