Skip to content

Instantly share code, notes, and snippets.

View render_patch.py
from tractor import sdss as st
def tractor_render_patch(run, camcol, field, roi, celeste_src=None, bandname='r'):
""" ROI = (x0, x1, y0, y1), zero indexed pixel coordinates """
# set up tractor
sdss = DR9()
getim = st.get_tractor_image_dr9
getsrc = st.get_tractor_sources_dr9
imkw = dict(zrange=[-3,100], sdss=sdss)
# get images