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

debug

parent 8698ca3a
Loading
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -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

##############################################################################