aboutsummaryrefslogtreecommitdiff
path: root/noao/onedspec/doc/sys/1and2dspec.hlp
blob: 01f0176311510cee9973fcf6a5fcde20e650924f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.help onedspec (Oct84) "Spectral Reductions"
.ce
Relationship Between Onedspec and Twodspec
.ce
Discussion
.ce
October 24, 1984
.sp 3
Two types of interactions between one dimensional and two dimensional
spectra may be defined:

.ls (1)
Perform a one dimensional operation on the average or sum of a set
of lines in a two dimensional image.
.le
.ls (2)
Perform a one dimensional operation successively on a set of lines
in a two dimensional image.
.le

The two functions might be combined as:

.ls (3)
Perform a one dimensional operation on the average or sum of a set
of lines in a two dimensional image and apply the one dimensional
result successively on a set of lines in a two dimensional image.
.le

Examples of this are dispersion solutions and flux calibrations for
longslit spectra.

     Some choices for implementation are:

.ls (1)
Use a 2-D to 1-D operator to create a 1-D spectrum by averaging or summing
lines.
.le
.ls (2)
Use an apply a 1-D arithmetic correction to a 2-D image operator.
Alternatively, expand a 1-D correction to a 2-D correction.
.le
.ls (3)
Convert the 2-D image to a group of 1-D images and provide the 1-D operators
with the ability to perform averaging or summation.
.le
.ls (4)
To perform a one dimensional operation successively on
a set of lines first convert the two dimensional image into a group
of one dimensional spectra.  Perform the 1-D operation on the desired
elements of the group and then reconstruct the 2-D image from the group
of 1-D images.
.le
.ls (5)
Built separate operators for 2-D images using the 1-D subroutines.
.le
.ls (6)
Provide the ability in the 1-D operators to perform the desired 2-D
operations directly.
.le

     Options (1) and (2) are essentially what is done on the IPPS.  Option (5)
would lessen the amount of development but increase the number of tasks
to be written.  I find option (6) desirable because of its
increased generality but it would require a
further definition of the data structures allowed and the syntax.
.endhelp