Skip to content

Commit

Permalink
Use crosses in place of missing images.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Sep 10, 2021
1 parent bd71b66 commit bbd87e6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nuztf/ampel_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,15 @@ def ampel_api_cutout(candid: int, logger=None):

# Create an empty image for missing cutouts

blank = np.ones((63, 63))
blank *= np.linspace(0., 1., 63)
npix = 63

blank = np.ones((npix, npix))

for i in range(npix):
c = abs(npix/2 - i)/(0.5*npix)
blank[i-1][i-1] = c
blank[i-1][npix-i-1] = c

hdu = fits.PrimaryHDU(blank)
hdul = fits.HDUList([hdu])
comp = io.BytesIO()
Expand Down

0 comments on commit bbd87e6

Please sign in to comment.