Commit bbfe4a87 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update getPSF in tools

parent 8f63aba4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -43,11 +43,15 @@ with open(config_filename, "r") as stream:

# Setup Chip
chip = Chip(chipID=chipID, config=config)
print('chip.bound::', chip.bound.xmin, chip.bound.xmax, chip.bound.ymin, chip.bound.ymax)

for iobj in range(nobj):
    print("\nget psf for iobj-", iobj, '\t', 'bandpass:', end=" ", flush=True)
    # Setup Position
    # Setup Position on focalplane
    x, y = imgPos[iobj, :] # try get the PSF at some location (1234, 1234) on the chip
    x = x+chip.bound.xmin
    y = y+chip.bound.ymin

    pos_img = galsim.PositionD(x, y)
    
    # Setup sub-bandpass