LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
|
Functions | |
bboxToRaDec (bbox, wcs) | |
getValueAtPercentile (values, percentile=0.5) | |
get_cmap (n, name="hsv") | |
main (repo, collections, skymapName=None, tracts=None, visits=None, physicalFilters=None, bands=None, ccds=None, ccdKey="detector", showPatch=False, saveFile=None, showCcds=False, visitVetoFile=None, minOverlapFraction=None, trimToTracts=False, doUnscaledLimitRatio=False, forceScaledLimitRatio=False) | |
makeWhereInStr (parameterName, parameterList, parameterType) | |
getTractLimitsDict (skymap, tractList) | |
getMinMaxLimits (limitsDict) | |
derivePlotLimits (limitsDict, raToDecLimitRatio=1.0, buffFrac=0.0) | |
setLimitsToEqualRatio (xMin, xMax, yMin, yMax) | |
getDetRaDecCorners (ccdKey, ccdId, visit, visitSummary=None, butler=None, doLogWarn=True) | |
getBand (visitSummary=None, butler=None, visit=None) | |
Variables | |
logger = logging.getLogger("lsst.skymap.bin.showVisitSkyMap") | |
parser = argparse.ArgumentParser() | |
type | |
help | |
str | |
nargs | |
metavar | |
required | |
default | |
None | |
int | |
action | |
float | |
args = parser.parse_args() | |
level | |
collections | |
skymapName | |
tracts | |
visits | |
physicalFilters | |
bands | |
ccds | |
ccdKey | |
showPatch | |
saveFile | |
showCcds | |
visitVetoFile | |
minOverlapFraction | |
trimToTracts | |
doUnscaledLimitRatio | |
forceScaledLimitRatio | |
showVisitSkyMap.bboxToRaDec | ( | bbox, | |
wcs ) |
Get the corners of a BBox and convert them to lists of RA and Dec.
Definition at line 42 of file showVisitSkyMap.py.
showVisitSkyMap.derivePlotLimits | ( | limitsDict, | |
raToDecLimitRatio = 1.0, | |||
buffFrac = 0.0 ) |
Derive the axis limits to encompass all points in limitsDict. Parameters ---------- limitsDict : `dict` [`dict`] A dictionary keyed on any id. Each entry includes a `dict` keyed on "ras" and "decs" including (at least the minimum and maximum) RA and Dec values in units of degrees. raToDecLimitRatio : `float`, optional The aspect ratio between RA and Dec to set the plot limits to. This is to namely to set this ratio to that of the focal plane (i.e. such that a square detector appears as a square), but any aspect ratio can, in principle, be requested. Returns ------- xlim, ylim : `tuple` [`float`] Two tuples containing the derived min and max values for the x and y-axis limits (in degrees), respectively.
Definition at line 614 of file showVisitSkyMap.py.
showVisitSkyMap.get_cmap | ( | n, | |
name = "hsv" ) |
Returns a function that maps each index in 0, 1, ..., n-1 to a distinct RGB color; the keyword argument name must be a standard mpl colormap name.
Definition at line 72 of file showVisitSkyMap.py.
Determine band and physical filter for given visit. Parameters ---------- visitSummary : `lsst.afw.table.ExposureCatalog` or `None`, optional The visitSummary table for the visit for which to determine the band. butler : `lsst.daf.butler.Butler` or `None`, optional The butler from which to look up the Dimension Records. Only needed if ``visitSummary`` is `None`. visit : `int` or `None, optional The visit number for which to determine the band. Only needed if ``visitSummary`` is `None`. Returns ------- band, physicalFilter : `str` The band and physical filter for the given visit.
Definition at line 738 of file showVisitSkyMap.py.
showVisitSkyMap.getDetRaDecCorners | ( | ccdKey, | |
ccdId, | |||
visit, | |||
visitSummary = None, | |||
butler = None, | |||
doLogWarn = True ) |
Compute the RA/Dec corners lists for a given detector in a visit.
Definition at line 713 of file showVisitSkyMap.py.
showVisitSkyMap.getMinMaxLimits | ( | limitsDict | ) |
Derive the min and max axis limits of points in limitsDict. Parameters ---------- limitsDict : `dict` [`dict`] A dictionary keyed on any id. Each entry includes a `dict` keyed on "ras" and "decs" including (at least the minimum and maximum) RA and Dec values in units of degrees. Returns ------- xLimMin, xLimMax, yLimMin, yLimMax : `tuple` [`float`] The min and max values for the x and y-axis limits, respectively.
Definition at line 588 of file showVisitSkyMap.py.
showVisitSkyMap.getTractLimitsDict | ( | skymap, | |
tractList ) |
Return a dict containing tract limits needed for outline plotting. Parameters ---------- skymap : `lsst.skymap.BaseSkyMap` The sky map used for this dataset. Used to obtain tract parameters. tractList : `list` [`int`] The list of tract ids (as integers) for which to determine the limits. Returns ------- tractLimitsDict : `dict` [`dict`] A dictionary keyed on tract id. Each entry includes a `dict` including the tract RA corners, Dec corners, and the tract center, all in units of degrees. These are used for plotting the tract outlines.
Definition at line 550 of file showVisitSkyMap.py.
showVisitSkyMap.getValueAtPercentile | ( | values, | |
percentile = 0.5 ) |
Return a value a fraction of the way between the min and max values in a list. Parameters ---------- values : `list` [`float`] The list of values under consideration. percentile : `float`, optional The percentile (expressed as a number between 0.0 and 1.0) at which to determine the value in `values`. Returns ------- result : `float` The value at the given percentile of ``values``.
Definition at line 50 of file showVisitSkyMap.py.
showVisitSkyMap.main | ( | repo, | |
collections, | |||
skymapName = None, | |||
tracts = None, | |||
visits = None, | |||
physicalFilters = None, | |||
bands = None, | |||
ccds = None, | |||
ccdKey = "detector", | |||
showPatch = False, | |||
saveFile = None, | |||
showCcds = False, | |||
visitVetoFile = None, | |||
minOverlapFraction = None, | |||
trimToTracts = False, | |||
doUnscaledLimitRatio = False, | |||
forceScaledLimitRatio = False ) |
Definition at line 79 of file showVisitSkyMap.py.
showVisitSkyMap.makeWhereInStr | ( | parameterName, | |
parameterList, | |||
parameterType ) |
Create the string to be used in the where clause for registry lookup.
Definition at line 537 of file showVisitSkyMap.py.
showVisitSkyMap.setLimitsToEqualRatio | ( | xMin, | |
xMax, | |||
yMin, | |||
yMax ) |
For a given set of x/y min/max, redefine to have equal aspect ratio. The limits are extended on both ends such that the central value is preserved. Parameters ---------- xMin, xMax, yMin, yMax : `float` The min/max values of the x/y ranges for which to match in dynamic range while perserving the central values. Returns ------- xMin, xMax, yMin, yMax : `float` The adjusted min/max values of the x/y ranges with equal aspect ratios.
Definition at line 684 of file showVisitSkyMap.py.
showVisitSkyMap.action |
Definition at line 790 of file showVisitSkyMap.py.
showVisitSkyMap.args = parser.parse_args() |
Definition at line 809 of file showVisitSkyMap.py.
showVisitSkyMap.bands |
Definition at line 812 of file showVisitSkyMap.py.
showVisitSkyMap.ccdKey |
Definition at line 812 of file showVisitSkyMap.py.
showVisitSkyMap.ccds |
Definition at line 812 of file showVisitSkyMap.py.
showVisitSkyMap.collections |
Definition at line 811 of file showVisitSkyMap.py.
showVisitSkyMap.default |
Definition at line 775 of file showVisitSkyMap.py.
showVisitSkyMap.doUnscaledLimitRatio |
Definition at line 815 of file showVisitSkyMap.py.
showVisitSkyMap.float |
Definition at line 799 of file showVisitSkyMap.py.
showVisitSkyMap.forceScaledLimitRatio |
Definition at line 816 of file showVisitSkyMap.py.
showVisitSkyMap.help |
Definition at line 771 of file showVisitSkyMap.py.
showVisitSkyMap.int |
Definition at line 776 of file showVisitSkyMap.py.
showVisitSkyMap.level |
Definition at line 810 of file showVisitSkyMap.py.
showVisitSkyMap.logger = logging.getLogger("lsst.skymap.bin.showVisitSkyMap") |
Definition at line 39 of file showVisitSkyMap.py.
showVisitSkyMap.metavar |
Definition at line 774 of file showVisitSkyMap.py.
showVisitSkyMap.minOverlapFraction |
Definition at line 814 of file showVisitSkyMap.py.
showVisitSkyMap.nargs |
Definition at line 772 of file showVisitSkyMap.py.
showVisitSkyMap.None |
Definition at line 775 of file showVisitSkyMap.py.
showVisitSkyMap.parser = argparse.ArgumentParser() |
Definition at line 769 of file showVisitSkyMap.py.
showVisitSkyMap.physicalFilters |
Definition at line 812 of file showVisitSkyMap.py.
showVisitSkyMap.required |
Definition at line 774 of file showVisitSkyMap.py.
showVisitSkyMap.saveFile |
Definition at line 813 of file showVisitSkyMap.py.
showVisitSkyMap.showCcds |
Definition at line 813 of file showVisitSkyMap.py.
showVisitSkyMap.showPatch |
Definition at line 813 of file showVisitSkyMap.py.
showVisitSkyMap.skymapName |
Definition at line 811 of file showVisitSkyMap.py.
showVisitSkyMap.str |
Definition at line 772 of file showVisitSkyMap.py.
showVisitSkyMap.tracts |
Definition at line 811 of file showVisitSkyMap.py.
showVisitSkyMap.trimToTracts |
Definition at line 815 of file showVisitSkyMap.py.
showVisitSkyMap.type |
Definition at line 770 of file showVisitSkyMap.py.
showVisitSkyMap.visits |
Definition at line 811 of file showVisitSkyMap.py.
showVisitSkyMap.visitVetoFile |
Definition at line 814 of file showVisitSkyMap.py.