Commit cc8eee32 authored by Zhang Xin's avatar Zhang Xin
Browse files

nan bug

parent d539fbbd
......@@ -588,6 +588,12 @@ void EarthShine(double ju, double sat[3], double ob[3], double py[3], double E[7
XYZ ves = XYZ(xs[w][l], ys[w][l] - ye[i][j], zs[w][l] - ze[i][j]);//镜头分块到盖板小块
double tyj = acos(ves.X / ves.Length);
double fwj = acos(ves.Y / (sqrt(ves.Y*ves.Y + ves.Z*ves.Z)));
if (isfinite(tyj) == false){
tyj = 0;
}
if (isfinite(fwj) == false){
fwj = 0;
}
double ppp = pow(10, PST(fwj, tyj));
Econe[i][j] += Eshield[w][l] / 2 / PI / ves.Square()*0.03*pow(10, PST(fwj, tyj));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment