@classmethod<EOL><INDENT>def standardize_table(cls, table):<DEDENT>
print(cls)<EOL>identifiers = {n+'<STR_LIT>':table[n] for n in cls.identifier_keys}<EOL>N = len(table)<EOL>coordinates = dict(  ra=table['<STR_LIT>'].data.data*u.deg,<EOL>dec=table['<STR_LIT>'].data.data*u.deg,<EOL>pm_ra_cosdec=table['<STR_LIT>'].data.data*u.arcsec/u.year,<EOL>pm_dec=table['<STR_LIT>'].data.data*u.arcsec/u.year,<EOL>radial_velocity=np.nan*np.ones(N)*u.km/u.s,<EOL>distance=np.nan*np.ones(N)*u.pc,<EOL>obstime=cls.epoch*np.ones(N)*u.year)<EOL>for k in coordinates:<EOL><INDENT>print(k, coordinates[k])<EOL><DEDENT>magnitudes = {f+'<STR_LIT>':table[f+'<STR_LIT>'].data for f in cls.filters}<EOL>standardized = hstack([Table(identifiers),<EOL>Table(coordinates),<EOL>Table(magnitudes)])<EOL>standardized.meta['<STR_LIT>'] = '<STR_LIT>'<EOL>return standardized<EOL>
Extract objects from a Gaia DR2 table.