Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zhang Xin
StraylightSim
Commits
cc8eee32
Commit
cc8eee32
authored
Jun 14, 2023
by
Zhang Xin
Browse files
nan bug
parent
d539fbbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
StrayLight.cpp
View file @
cc8eee32
...
@@ -588,6 +588,12 @@ void EarthShine(double ju, double sat[3], double ob[3], double py[3], double E[7
...
@@ -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
]);
//镜头分块到盖板小块
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
tyj
=
acos
(
ves
.
X
/
ves
.
Length
);
double
fwj
=
acos
(
ves
.
Y
/
(
sqrt
(
ves
.
Y
*
ves
.
Y
+
ves
.
Z
*
ves
.
Z
)));
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
));
double
ppp
=
pow
(
10
,
PST
(
fwj
,
tyj
));
Econe
[
i
][
j
]
+=
Eshield
[
w
][
l
]
/
2
/
PI
/
ves
.
Square
()
*
0.03
*
pow
(
10
,
PST
(
fwj
,
tyj
));
Econe
[
i
][
j
]
+=
Eshield
[
w
][
l
]
/
2
/
PI
/
ves
.
Square
()
*
0.03
*
pow
(
10
,
PST
(
fwj
,
tyj
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment