Loading csst_mci_sim/csst_mci_sim.py +11 −11 Original line number Diff line number Diff line Loading @@ -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 ############################################################################## Loading Loading
csst_mci_sim/csst_mci_sim.py +11 −11 Original line number Diff line number Diff line Loading @@ -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 ############################################################################## Loading