Factor out DESI subtile functions
write SDSS photoobjs in DESI tile