File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,27 @@ implemented methods:
66
66
Each of these takes the input image and trace as inputs (see the API above for other required
67
67
and optional parameters)::
68
68
69
- extract = specreduce.extract.BoxcarExtract(image-bg, trace, width=3)
70
- spectrum = extract.spectrum
69
+ extract = specreduce.extract.BoxcarExtract(image-bg, trace, width=3)
70
+
71
+ or::
72
+
73
+ extract = specreduce.extract.HorneExtract(image-bg, trace)
71
74
72
- The returned ``extract `` object contains all the set options. The extracted 1D spectrum can be
75
+ For the Horne algorithm, the input image must include uncertainty and mask.
76
+ These two calls set the options and initialize the object. To extract the spectrum, the
77
+ syntax is::
78
+
79
+ spectrum = extract.spectrum
80
+
81
+ The ``extract `` object contains all the set options. The extracted 1D spectrum can be
73
82
accessed via the ``spectrum `` property or by calling the ``extract `` object (which also allows
74
83
temporarily overriding any values)::
75
84
76
85
spectrum2 = extract(width=6)
77
86
87
+ The Horne algorithm preforms a Gaussian fit on the source, it is thus best suited for cases
88
+ where the source has a Gaussian profile in the cross-dispersion direction.
89
+
78
90
Example Workflow
79
91
----------------
80
92
You can’t perform that action at this time.
0 commit comments