Attempt to remove ‘bad’ entries in a catalog
ukidss_catalog : astropy.io.fits.hdu.table.BinTableHDU
A FITS binary table instance from the UKIDSS survey
clean_band : [‘K_1’,’K_2’,’J’,’H’]
The band to use for bad photometry flagging
badclass : int
Class to exclude
minerrbits : int
maxerrbits : int
Inside this range is the accepted # of error bits
maxpperrbits : int
Exclude this type of error bit