Commit bc7cdc7a authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

debug

parent 8698ca3a
Pipeline #4335 passed with stage
in 0 seconds
......@@ -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
##############################################################################
......
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