get_xy_from_source_table#
- lsst.analysis.ap.get_xy_from_source_table(table, wcs, degrees=None)#
Convert ra/dec coordinates in an astropy table/pandas data frame to pixel x/y positions.
Parameters#
- table
astropy.table.Tableorpandas.DataFrame Sources with
ra/dec(degrees) orcoord_ra/coord_dec(radians) columns.- wcs
lsst.images.SkyProjectionorlsst.afw.geom.SkyWcs Transform from sky to pixel coordinates.
- degrees
bool, optional Whether the coordinates are in degrees; inferred from the column names if not given.
Returns#
- xy
astropy.table.Table Pixel positions, in columns
xandy.
- table