| Returns the aperture magnitude and error for the given band (filter) and aperture. |
| The table returned contains the r-band aperture magnitude and error along with the PSF magnitude and error, and rowc, colc. select apMag_r, apMagErr_r from dbo.fGetPhotoApMag(587726014001184891,'r',7) |
| name | type | length | inout | pnum |
| @naper | int | 4 | input | 3 |
| @objid | bigint | 8 | input | 1 |
| @filter | varchar | 1 | input | 2 |
| rowc | real | 4 | output | 2 |
| colc | real | 4 | output | 3 |
| psfMag | real | 4 | output | 4 |
| psfMagErr | real | 4 | output | 5 |
| apMag | real | 4 | output | 6 |
| apMagErr | real | 4 | output | 7 |
| objid | bigint | 8 | output | 1 |