LSSTApplications  17.0+10,17.0+51,17.0+87,18.0.0+10,18.0.0+15,18.0.0+33,18.0.0+4,18.0.0+6,18.0.0-2-ge43143a+6,18.1.0-1-g0001055+2,18.1.0-1-g0896a44+9,18.1.0-1-g1349e88+8,18.1.0-1-g2505f39+6,18.1.0-1-g380d4d4+8,18.1.0-1-g5e4b7ea+2,18.1.0-1-g7e8fceb,18.1.0-1-g85f8cd4+6,18.1.0-1-g9a6769a+3,18.1.0-1-ga1a4c1a+5,18.1.0-1-gc037db8+2,18.1.0-1-gd55f500+3,18.1.0-1-ge10677a+6,18.1.0-10-g73b8679e+11,18.1.0-11-g311e899+7,18.1.0-12-gc95f69a+7,18.1.0-13-g451e75588,18.1.0-2-g31c43f9+6,18.1.0-2-g9c63283+8,18.1.0-2-gdf0b915+8,18.1.0-2-gf03bb23+2,18.1.0-3-g2e29e3d+9,18.1.0-3-g52aa583+3,18.1.0-3-g8f4a2b1,18.1.0-3-g9cb968e+7,18.1.0-4-gd2e8982+9,18.1.0-5-g510c42a+7,18.1.0-5-gaeab27e+8,18.1.0-6-gdda7f3e+10,18.1.0-8-g4084bf03,w.2019.33
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.