|
LSSTApplications
19.0.0-14-gb0260a2+599893a4c6,20.0.0+126303c00d,20.0.0+2f3d0e5c40,20.0.0+36ef800059,20.0.0+5ac7adcc0c,20.0.0+693a64958a,20.0.0+bebc1f60e8,20.0.0+cad136aba6,20.0.0+e2e26847c2,20.0.0+e69b5d60e7,20.0.0-1-g10df615+11b215b765,20.0.0-1-g253301a+36ef800059,20.0.0-1-g2b7511a+bebc1f60e8,20.0.0-1-g4d801e7+aeeb640673,20.0.0-1-g5b95a8c+f111d5f02f,20.0.0-1-g660595b+f45b7d88f4,20.0.0-1-gc96f8cb+e3b38461e6,20.0.0-1-gd1c87d7+85c46248f3,20.0.0-1-gedffbd8+d0b27f8bcb,20.0.0-16-g111fe95+e3b38461e6,20.0.0-16-g18096c8+d1a4df0137,20.0.0-16-g233ea98+a4df35922d,20.0.0-17-ga9337b4+41f27cfd54,20.0.0-2-g4dae9ad+e3b38461e6,20.0.0-2-g7818986+85c46248f3,20.0.0-2-gec03fae+ff10c6d78d,20.0.0-28-g282f9e7e+feda6aebd8,20.0.0-3-g4cc78c6+63636aeed8,20.0.0-3-g6a8623c+d1a4df0137,20.0.0-3-g750bffe+f5427621ce,20.0.0-4-gfea843c+f45b7d88f4,20.0.0-5-g357b56b+f45b7d88f4,20.0.0-5-gfcebe35+e2b15ed341,20.0.0-52-g73d9071+9bf1eb8e0a,20.0.0-7-gcda7bf1+773ba852cb,20.0.0-8-g4540fe2a+952f6d3c43,20.0.0-9-g61a2a9a3d+14f89e4eca,w.2020.40
LSSTDataManagementBasePackage
|
Functions | |
| def | combineWithForce (meas, force) |
| def | getMag (flux, fluxerr, zeropoint) |
| def | getEllipse (quad) |
| def | matchToFakeCatalog (sources, fakeCatalog) |
| def | getFakeMatchesHeader (cal_md, sources, tol=1.0) |
| def | getFakeMatchesRaDec (sources, radecCatFile, bbox, wcs, tol=1.0, reffMatch=False, pix=0.168, minRad=None, raCol='RA', decCol='Dec') |
| def | getFakeSources (butler, dataId, tol=1.0, extraCols=('zeropoint', 'visit', 'ccd'), includeMissing=False, footprints=False, radecMatch=None, multiband=False, reffMatch=False, pix=0.168, minRad=None, raCol='RA', decCol='Dec') |
| def | getAstroTable (src, mags=True) |
| def | returnMatchSingle (butler, slist, visit, ccd, filt=None, tol=1.0, pix=0.168, fakeCat=None, pixMatch=False, multiband=False, reffMatch=False, includeMissing=True, minRad=None, raCol='RA', decCol='Dec') |
| def | returnMatchTable (rootDir, visit, ccdList, outfile=None, fakeCat=None, overwrite=False, filt=None, tol=1.0, pixMatch=False, multiband=False, reffMatch=False, pix=0.168, multijobs=1, includeMissing=True, minRad=None, raCol='RA', decCol='Dec') |
Variables | |
| NO_FOOTPRINT | |
| parser | |
| args | |
matchFakes.py. Matches fakes based on position stored in the calibrated exposure image header
| def lsst.synpipe.matchFakes.combineWithForce | ( | meas, | |
| force | |||
| ) |
| def lsst.synpipe.matchFakes.getAstroTable | ( | src, | |
mags = True |
|||
| ) |
Return an astropy table with all the src entries.
if the entries are complex objects, it breaks them down:
ellipse entries are broken into
ellipse_a = semi-major axis
ellipse_q = axis ratio (always < 1)
ellipse_theta = rotation of semi-major axis
from chip x-axis in degrees
if mags is True, returns the magnitudes for all the flux columns
Definition at line 393 of file matchFakes.py.
| def lsst.synpipe.matchFakes.getEllipse | ( | quad | ) |
Return the Re, b/a and PA for a given quadrupole moment.
Definition at line 88 of file matchFakes.py.
| def lsst.synpipe.matchFakes.getFakeMatchesHeader | ( | cal_md, | |
| sources, | |||
tol = 1.0 |
|||
| ) |
Return the fake matches based on the information in the header.
returns a tuple with:
the positions in pixels of the fake sources added to the chip
the match is in a dictionary of the form:
{fakeid:[ind_of_match_in_sources,...],...}
look within a tolerance of 1 pixel in each direction
Definition at line 116 of file matchFakes.py.
| def lsst.synpipe.matchFakes.getFakeMatchesRaDec | ( | sources, | |
| radecCatFile, | |||
| bbox, | |||
| wcs, | |||
tol = 1.0, |
|||
reffMatch = False, |
|||
pix = 0.168, |
|||
minRad = None, |
|||
raCol = 'RA', |
|||
decCol = 'Dec' |
|||
| ) |
Return the fake matches based on an radec match.
Args:
sources: source table object
radecCatFile: filename for fits file of fake object table,
including ra/dec
bbox: Bounding Box of exposure (ccd or patch) within which
to match fakes
wcs: Wcs of source image
KeywordArgs:
tol: tolerance within which to match sources, given in PIXELS
Returns:
fakeXY: set of pixel positions of fake sources
srcIdx: matches to fake sources in a dictionary of the form
{fakeid:[ind_of_match_in_sources,...],...}
Raise:
IOError: couldn't open radecCatFile
Definition at line 146 of file matchFakes.py.
| def lsst.synpipe.matchFakes.getFakeSources | ( | butler, | |
| dataId, | |||
tol = 1.0, |
|||
extraCols = ('zeropoint', 'visit', 'ccd'), |
|||
includeMissing = False, |
|||
footprints = False, |
|||
radecMatch = None, |
|||
multiband = False, |
|||
reffMatch = False, |
|||
pix = 0.168, |
|||
minRad = None, |
|||
raCol = 'RA', |
|||
decCol = 'Dec' |
|||
| ) |
Get list of sources which agree in pixel position with fake ones with tol.
This returns a sourceCatalog of all the matched fake objects,
note, there will be duplicates in this list, since I haven't
checked deblend.nchild, and I'm only doing a tolerance match,
which could include extra sources
The outputs can include extraCols as long as they are one of:
zeropoint, visit, ccd, thetaNorth, pixelScale
If includeMissing is true, then the pipeline looks at the fake sources
added in the header and includes an entry in the table for sources without
any measurements, specifically the 'id' column will be 0
radecMatch is the fakes table. if it's not None(default), then do an ra/dec
match with the input catalog instead of looking in the header for where the
sources where added
Definition at line 215 of file matchFakes.py.
| def lsst.synpipe.matchFakes.getMag | ( | flux, | |
| fluxerr, | |||
| zeropoint | |||
| ) |
| def lsst.synpipe.matchFakes.matchToFakeCatalog | ( | sources, | |
| fakeCatalog | |||
| ) |
Match to the fake catalog and append those columns to the source table. this assumes the sources are an astropy table or it will throw a TypeError
Definition at line 100 of file matchFakes.py.
| def lsst.synpipe.matchFakes.returnMatchSingle | ( | butler, | |
| slist, | |||
| visit, | |||
| ccd, | |||
filt = None, |
|||
tol = 1.0, |
|||
pix = 0.168, |
|||
fakeCat = None, |
|||
pixMatch = False, |
|||
multiband = False, |
|||
reffMatch = False, |
|||
includeMissing = True, |
|||
minRad = None, |
|||
raCol = 'RA', |
|||
decCol = 'Dec' |
|||
| ) |
| def lsst.synpipe.matchFakes.returnMatchTable | ( | rootDir, | |
| visit, | |||
| ccdList, | |||
outfile = None, |
|||
fakeCat = None, |
|||
overwrite = False, |
|||
filt = None, |
|||
tol = 1.0, |
|||
pixMatch = False, |
|||
multiband = False, |
|||
reffMatch = False, |
|||
pix = 0.168, |
|||
multijobs = 1, |
|||
includeMissing = True, |
|||
minRad = None, |
|||
raCol = 'RA', |
|||
decCol = 'Dec' |
|||
| ) |
Driver (main function) for return match to fakes.
INPUT: rootDir = rerun directory
visit = visit id (int) (or tracts)
ccdList = list of ccds to look at (or patches)
outdir = output directory for matched file,
None means no output written
fakeCat = fake catalog to match to,
None means the fake sources are just
extracted from the header of the CCDs based on
position but no matching is done
overwrite = whether to overwrite the existing output file,
default is False
pixMatch = do pixel matching instead of ra/dec matching
even if there is a catalog supplied
multiband = whether match to forced photometry catalogs
from multiband process
reffMatch = whether match fake sources in pixel radius
or using tol x Reff (Only for Ra, Dec match)
OUTPUT: returns an astropy.table.Table with all the entries
from the source catalog for objects which match in pixel
position to the fake sources
Definition at line 511 of file matchFakes.py.
| lsst.synpipe.matchFakes.args |
Definition at line 647 of file matchFakes.py.
| lsst.synpipe.matchFakes.NO_FOOTPRINT |
Definition at line 20 of file matchFakes.py.
| lsst.synpipe.matchFakes.parser |
Definition at line 612 of file matchFakes.py.
1.8.18