From bc7cdc7ab7e1f2d903860b88466c6ccf274cf90d Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 6 May 2024 17:27:02 +0800 Subject: [PATCH] debug --- csst_mci_sim/csst_mci_sim.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/csst_mci_sim/csst_mci_sim.py b/csst_mci_sim/csst_mci_sim.py index a291a7d..04d86dd 100644 --- a/csst_mci_sim/csst_mci_sim.py +++ b/csst_mci_sim/csst_mci_sim.py @@ -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 ############################################################################## -- GitLab