LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
meas_algorithms
11.0-2-gb8b8ce7
python
lsst
meas
algorithms
sizeMagnitudeStarSelectorFactory.py
Go to the documentation of this file.
1
#
2
# LSST Data Management System
3
# Copyright 2008, 2009, 2010 LSST Corporation.
4
#
5
# This product includes software developed by the
6
# LSST Project (http://www.lsst.org/).
7
#
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
12
#
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
17
#
18
# You should have received a copy of the LSST License Statement and
19
# the GNU General Public License along with this program. If not,
20
# see <http://www.lsstcorp.org/LegalNotices/>.
21
#
22
import
lsst.pex.config
as
pexConfig
23
from
.algorithmsLib
import
SizeMagnitudeStarSelector
24
25
__all__ = (
"sizeMagnitudeStarSelectorFactory"
,)
26
27
class
SizeMagnitudeStarSelectorConfig
(pexConfig.Config):
28
minsize = pexConfig.Field(
29
doc =
"Minimum size to use"
,
30
dtype = float,
31
default = 0.0,
32
)
33
maxsize = pexConfig.Field(
34
doc =
"Maximum size to use"
,
35
dtype = float,
36
default = 1.0e100,
37
)
38
logsize = pexConfig.Field(
39
doc =
"Are sizes already log(size)?"
,
40
dtype = bool,
41
default =
False
,
42
)
43
minmag = pexConfig.Field(
44
doc =
"Minimum magnitude to use"
,
45
dtype = float,
46
default = 0.0,
47
)
48
maxmag = pexConfig.Field(
49
doc =
"Maximum magnitude to use"
,
50
dtype = float,
51
default = 1.0e100,
52
)
53
starfrac = pexConfig.Field(
54
doc =
"What fraction of objects are likely stars?"
,
55
dtype = float,
56
default = 0.5,
57
)
58
startn1 = pexConfig.Field(
59
doc =
"Fraction of objects to use in first pass"
,
60
dtype = float,
61
default = 0.1,
62
)
63
fitorder = pexConfig.Field(
64
doc =
"Order of polynomial of fit of size(x,y)"
,
65
dtype = int,
66
default = 1,
67
)
68
fitsigclip = pexConfig.Field(
69
doc =
"nSigma to reject a star as an outlier"
,
70
dtype = float,
71
default = 4.0,
72
)
73
starsperbin = pexConfig.Field(
74
doc =
"Perform size(x,y) fit with fitStars brightest stars"
,
75
dtype = int,
76
default = 30,
77
)
78
purityratio = pexConfig.Field(
79
doc =
"Smaller = purer smaple of stars, larger = more stars"
,
80
dtype = float,
81
default = 0.05,
82
)
83
aperture = pexConfig.Field(
84
doc =
"nSigma to reject a star as an outlier"
,
85
dtype = float,
86
default = 5.0,
87
)
88
89
def
sizeMagnitudeStarSelectorFactory
(config):
90
return
SizeMagnitudeStarSelector(pexConfig.makePolicy(config))
91
sizeMagnitudeStarSelectorFactory.ConfigClass = SizeMagnitudeStarSelectorConfig
lsst::pex.config
Definition:
__init__.py:1
lsst::meas::algorithms.sizeMagnitudeStarSelectorFactory.SizeMagnitudeStarSelectorConfig
Definition:
sizeMagnitudeStarSelectorFactory.py:27
lsst::meas::algorithms.sizeMagnitudeStarSelectorFactory.sizeMagnitudeStarSelectorFactory
def sizeMagnitudeStarSelectorFactory
Definition:
sizeMagnitudeStarSelectorFactory.py:89
Generated on Thu Sep 24 2015 02:29:20 for LSSTApplications by
1.8.5