This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |