LSSTApplications
19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
|
Functions | |
def | makeConfigDict (config, log, camera, maxIter, resetFitParameters, outputZeropoints, tract=None) |
def | translateFgcmLut (lutCat, filterMap) |
def | translateVisitCatalog (visitCat) |
def | computeCcdOffsets (camera, defaultOrientation) |
def | computeReferencePixelScale (camera) |
def | computeApproxPixelAreaFields (camera) |
def | makeZptSchema (superStarChebyshevSize, zptChebyshevSize) |
def | makeZptCat (zptSchema, zpStruct) |
def | makeAtmSchema () |
def | makeAtmCat (atmSchema, atmStruct) |
def | makeStdSchema (nBands) |
def | makeStdCat (stdSchema, stdStruct, goodBands) |
def | computeApertureRadiusFromDataRef (dataRef, fluxField) |
def | computeApertureRadiusFromName (fluxField) |
def | extractReferenceMags (refStars, bands, filterMap) |
def lsst.fgcmcal.utilities.computeApertureRadiusFromDataRef | ( | dataRef, | |
fluxField | |||
) |
Compute the radius associated with a CircularApertureFlux field or associated slot. Parameters ---------- dataRef : `lsst.daf.persistence.ButlerDataRef` fluxField : `str` CircularApertureFlux or associated slot. Returns ------- apertureRadius : `float` Radius of the aperture field, in pixels. Raises ------ RuntimeError: Raised if flux field is not a CircularApertureFlux, ApFlux, or associated slot.
Definition at line 792 of file utilities.py.
def lsst.fgcmcal.utilities.computeApertureRadiusFromName | ( | fluxField | ) |
Compute the radius associated with a CircularApertureFlux or ApFlux field. Parameters ---------- fluxField : `str` CircularApertureFlux or ApFlux Returns ------- apertureRadius : `float` Radius of the aperture field, in pixels. Raises ------ RuntimeError: Raised if flux field is not a CircularApertureFlux or ApFlux.
Definition at line 831 of file utilities.py.
def lsst.fgcmcal.utilities.computeApproxPixelAreaFields | ( | camera | ) |
Compute the approximate pixel area bounded fields from the camera geometry. Parameters ---------- camera: `lsst.afw.cameraGeom.Camera` Returns ------- approxPixelAreaFields: `dict` Dictionary of approximate area fields, keyed with detector ID
Definition at line 479 of file utilities.py.
def lsst.fgcmcal.utilities.computeCcdOffsets | ( | camera, | |
defaultOrientation | |||
) |
Compute the CCD offsets in ra/dec and x/y space Parameters ---------- camera: `lsst.afw.cameraGeom.Camera` defaultOrientation: `float` Default camera orientation (degrees) Returns ------- ccdOffsets: `numpy.ndarray` Numpy array with ccd offset information for input to FGCM. Angular units are degrees, and x/y units are pixels.
Definition at line 383 of file utilities.py.
def lsst.fgcmcal.utilities.computeReferencePixelScale | ( | camera | ) |
Compute the median pixel scale in the camera Returns ------- pixelScale: `float` Average pixel scale (arcsecond) over the camera
Definition at line 451 of file utilities.py.
def lsst.fgcmcal.utilities.extractReferenceMags | ( | refStars, | |
bands, | |||
filterMap | |||
) |
Extract reference magnitudes from refStars for given bands and associated filterMap. Parameters ---------- refStars : `lsst.afw.table.BaseCatalog` FGCM reference star catalog bands : `list` List of bands for calibration filterMap: `dict` FGCM mapping of filter to band Returns ------- refMag : `np.ndarray` nstar x nband array of reference magnitudes refMagErr : `np.ndarray` nstar x nband array of reference magnitude errors
Definition at line 861 of file utilities.py.
def lsst.fgcmcal.utilities.makeAtmCat | ( | atmSchema, | |
atmStruct | |||
) |
Make the atmosphere catalog for persistence Parameters ---------- atmSchema: `lsst.afw.table.Schema` Atmosphere catalog schema atmStruct: `numpy.ndarray` Atmosphere structure from fgcm Returns ------- atmCat: `lsst.afw.table.BaseCatalog` Atmosphere catalog for persistence
Definition at line 689 of file utilities.py.
def lsst.fgcmcal.utilities.makeAtmSchema | ( | ) |
Make the atmosphere schema Returns ------- atmSchema: `lsst.afw.table.Schema`
Definition at line 665 of file utilities.py.
def lsst.fgcmcal.utilities.makeConfigDict | ( | config, | |
log, | |||
camera, | |||
maxIter, | |||
resetFitParameters, | |||
outputZeropoints, | |||
tract = None |
|||
) |
Make the FGCM fit cycle configuration dict Parameters ---------- config: `lsst.fgcmcal.FgcmFitCycleConfig` Configuration object log: `lsst.log.Log` LSST log object camera: `lsst.afw.cameraGeom.Camera` Camera from the butler maxIter: `int` Maximum number of iterations resetFitParameters: `bool` Reset fit parameters before fitting? outputZeropoints: `bool` Compute zeropoints for output? tract: `int`, optional Tract number for extending the output file name for debugging. Default is None. Returns ------- configDict: `dict` Configuration dictionary for fgcm
Definition at line 41 of file utilities.py.
def lsst.fgcmcal.utilities.makeStdCat | ( | stdSchema, | |
stdStruct, | |||
goodBands | |||
) |
Make the standard star catalog for persistence Parameters ---------- stdSchema: `lsst.afw.table.Schema` Standard star catalog schema stdStruct: `numpy.ndarray` Standard star structure in FGCM format goodBands: `list` List of good band names used in stdStruct Returns ------- stdCat: `lsst.afw.table.BaseCatalog` Standard star catalog for persistence
Definition at line 754 of file utilities.py.
def lsst.fgcmcal.utilities.makeStdSchema | ( | nBands | ) |
Make the standard star schema Parameters ---------- nBands: `int` Number of bands in standard star catalog Returns ------- stdSchema: `lsst.afw.table.Schema`
Definition at line 722 of file utilities.py.
def lsst.fgcmcal.utilities.makeZptCat | ( | zptSchema, | |
zpStruct | |||
) |
Make the zeropoint catalog for persistence Parameters ---------- zptSchema: `lsst.afw.table.Schema` Zeropoint catalog schema zpStruct: `numpy.ndarray` Zeropoint structure from fgcm Returns ------- zptCat: `afwTable.BaseCatalog` Zeropoint catalog for persistence
Definition at line 610 of file utilities.py.
def lsst.fgcmcal.utilities.makeZptSchema | ( | superStarChebyshevSize, | |
zptChebyshevSize | |||
) |
Make the zeropoint schema Parameters ---------- superStarChebyshevSize: `int` Length of the superstar chebyshev array zptChebyshevSize: `int` Length of the zeropoint chebyshev array Returns ------- zptSchema: `lsst.afw.table.schema`
Definition at line 524 of file utilities.py.
def lsst.fgcmcal.utilities.translateFgcmLut | ( | lutCat, | |
filterMap | |||
) |
Translate the FGCM look-up-table into an fgcm-compatible object Parameters ---------- lutCat: `lsst.afw.table.BaseCatalog` Catalog describing the FGCM look-up table filterMap: `dict` Filter to band mapping Returns ------- fgcmLut: `lsst.fgcm.FgcmLut` Lookup table for FGCM lutIndexVals: `numpy.ndarray` Numpy array with LUT index information for FGCM lutStd: `numpy.ndarray` Numpy array with LUT standard throughput values for FGCM Notes ----- After running this code, it is wise to `del lutCat` to clear the memory.
Definition at line 201 of file utilities.py.
def lsst.fgcmcal.utilities.translateVisitCatalog | ( | visitCat | ) |
Translate the FGCM visit catalog to an fgcm-compatible object Parameters ---------- visitCat: `lsst.afw.table.BaseCatalog` FGCM visitCat from `lsst.fgcmcal.FgcmBuildStarsTask` Returns ------- fgcmExpInfo: `numpy.ndarray` Numpy array for visit information for FGCM Notes ----- After running this code, it is wise to `del visitCat` to clear the memory.
Definition at line 332 of file utilities.py.