Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_mci_sim
Commits
bc7cdc7a
Commit
bc7cdc7a
authored
11 months ago
by
Yan Zhaojun
Browse files
Options
Download
Email Patches
Plain Diff
debug
parent
8698ca3a
develop
master
No related merge requests found
Pipeline
#4335
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_mci_sim/csst_mci_sim.py
+11
-11
csst_mci_sim/csst_mci_sim.py
with
11 additions
and
11 deletions
+11
-11
csst_mci_sim/csst_mci_sim.py
+
11
-
11
View file @
bc7cdc7a
...
...
@@ -330,19 +330,19 @@ class StrayLight(object):
###############################################################################
###############################################################################
#
def make_c_coor(fov, step):
#
"""
#
Draw the mesh grids for a fov * fov box with given step .
#
"""
def
make_c_coor
(
fov
,
step
):
"""
Draw the mesh grids for a fov * fov box with given step .
"""
#
nc=int(fov/step)
nc
=
int
(
fov
/
step
)
#
bs=fov
#
ds = bs / nc
#
xx01 = np.linspace(-bs / 2.0, bs / 2.0 - ds, nc) + 0.5 * ds
#
xx02 = np.linspace(-bs / 2.0, bs / 2.0 - ds, nc) + 0.5 * ds
#
xg2, xg1 = np.meshgrid(xx01, xx02)
#
return xg1, xg2
bs
=
fov
ds
=
bs
/
nc
xx01
=
np
.
linspace
(
-
bs
/
2.0
,
bs
/
2.0
-
ds
,
nc
)
+
0.5
*
ds
xx02
=
np
.
linspace
(
-
bs
/
2.0
,
bs
/
2.0
-
ds
,
nc
)
+
0.5
*
ds
xg2
,
xg1
=
np
.
meshgrid
(
xx01
,
xx02
)
return
xg1
,
xg2
##############################################################################
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets