LSSTApplications  18.0.0+46,18.0.0+93,19.0.0,19.0.0+1,19.0.0+2,19.0.0+3,19.0.0+4,19.0.0-1-g20d9b18+2,19.0.0-1-g3dc8cbe+2,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+2,19.0.0-1-g5db401e+3,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+2,19.0.0-1-g8c57eb9+2,19.0.0-1-g9828021+2,19.0.0-1-gb5175dc+2,19.0.0-1-gd7f3e1b+2,19.0.0-1-gdc0e4a7+2,19.0.0-1-ge272bc4+2,19.0.0-2-g0d9f9cd+2,19.0.0-2-g1c703f9ef+1,19.0.0-2-g3d9e4fb2+2,19.0.0-2-gd955cfd+2,19.0.0-3-g2d13df8,19.0.0-3-g63079e6+2,19.0.0-7-g8a434f2+1,19.0.0-7-gf796fef9+3,w.2019.49
LSSTDataManagementBasePackage
Classes | Functions | Variables
lsst.meas.extensions.psfex.psfexStarSelector Namespace Reference

Classes

class  EventHandler
 
class  PsfexStarSelectorConfig
 
class  PsfexStarSelectorTask
 

Functions

def plot (mag, width, centers, clusterId, marker="o", markersize=2, markeredgewidth=0, ltype='-', clear=True)
 

Variables

 fig = None
 
 plt = None
 

Function Documentation

◆ plot()

def lsst.meas.extensions.psfex.psfexStarSelector.plot (   mag,
  width,
  centers,
  clusterId,
  marker = "o",
  markersize = 2,
  markeredgewidth = 0,
  ltype = '-',
  clear = True 
)

Definition at line 152 of file psfexStarSelector.py.

152  clear=True):
153 
154  global fig
155  if not fig:
156  fig = plt.figure()
157  newFig = True
158  else:
159  newFig = False
160  if clear:
161  fig.clf()
162 
163  axes = fig.add_axes((0.1, 0.1, 0.85, 0.80))
164 
165  xmin = sorted(mag)[int(0.05*len(mag))]
166  xmax = sorted(mag)[int(0.95*len(mag))]
167 
168  axes.set_xlim(-17.5, -13)
169  axes.set_xlim(xmin - 0.1*(xmax - xmin), xmax + 0.1*(xmax - xmin))
170  axes.set_ylim(0, 10)
171 
172  colors = ["r", "g", "b", "c", "m", "k", ]
173  for k, mean in enumerate(centers):
174  if k == 0:
175  axes.plot(axes.get_xlim(), (mean, mean,), "k%s" % ltype)
176 
177  ll = (clusterId == k)
178  axes.plot(mag[ll], width[ll], marker, markersize=markersize, markeredgewidth=markeredgewidth,
179  color=colors[k%len(colors)])
180 
181  ll = (clusterId == -1)
182  axes.plot(mag[ll], width[ll], marker, markersize=markersize, markeredgewidth=markeredgewidth,
183  color='k')
184 
185  if newFig:
186  axes.set_xlabel("model")
187  axes.set_ylabel(r"$\sqrt{I_{xx} + I_{yy}}$")
188 
189  return fig
190 

Variable Documentation

◆ fig

lsst.meas.extensions.psfex.psfexStarSelector.fig = None

Definition at line 28 of file psfexStarSelector.py.

◆ plt

lsst.meas.extensions.psfex.psfexStarSelector.plt = None

Definition at line 30 of file psfexStarSelector.py.