Next: The geometry2 subroutine
Up: Calculating the Line Profiles
Previous: Calculating the Line Profiles
Define the line of sight from the telescope through the cloud
Grid positions
[l]
The fundamental problem to be solved is shown in figure 4.18. The telescope is located at
some angle relative to the centre line of symmetry in the cloud. When observing with the telescope observations of the cloud will be
made not just at the central position but also at various offset positions, often forming a grid of
observations. In the diagram for example 9 positions are shown. Offset positions are also required
when performing the gridded convolution necessary to simulate the telescope beam (which since it is not
infinitely small is spread off centre even when the telescope is pointing at the centre of the cloud - see
section 4.8.3).
These offset positions are referenced with
respect to the telescope's co-ordinate system (generally RA and Dec). This is, however, not the same
co-ordinate system as used in the cloud. The input files enable as many offset
positions as desired to be given for which output is to be produced. The offsets are given in arcseconds (as this is
generally what is used at the telescope) and are then translated by the program into distances within the
cloud. For example an offset of (15
,15
)
for a cloud 1 kpc away corresponds to a co-ordinate offset of
(0.07pc, 0.07pc) within the cloud.
In order to calculate the line profile that a telescope would see
it is necessary to know all the positions in the cloud that the line of sight passes through (this is done in
the geometry2 subroutine - see section 4.8.2). In order to
do this the vector components for the line of sight need to be translated from the co-ordinate sytem used
by the telescope into the co-ordinate system used in the cloud. This is done in the prepgeom
subroutine (prepare geometry).
Figure 4.19:
Orientation of cloud
![\includegraphics[scale=0.55]{eangle.eps}](img740.gif) |
The position of the observer relative to the cloud is defined in the input files with the parameters
and
(represented by
and
respectively in the program).
This situation is shown in a side view in
figure 4.19.
is the rotation of the cloud about the y-axis of the telescope's
co-ordinate system as shown in the diagram on the left.
is then the rotation around the x-axis
(again the telescope's co-ordinate system - this is important as after the
rotation the
cloud's x-axis will no longer be the same as that of the telescope) as shown in the middle diagram. In other words
is the
rotation of the cloud in the plane of the sky as viewed from the telescope and
is a tilt of
the top of the cloud towards the telescope perpendicular to the plane of the sky. The third diagram on
the right shows the combined effect of these two rotations, the cloud is now rotated clockwise and the
top of the cloud is tilted closer to the telescope than the bottom. It is now necessary to find the
relationship between the co-ordinate system drawn on the page (ie. the
system shown in
figure 4.19) and the now tilted cloud co-ordinate system.
Two co-ordinate systems
[l]
Consider first the definition of a co-ordinate system. We have in this case a vector space
(ie. 3-D real space). A basis for a vector space is a linearly independent set which
spans it (p70, Griffel [11]). In this case the most obvious basis would be
{
}. Stated formally, the problem here is that we have a vector
(ie. the line of sight) stated with respect to the basis
(ie. our co-ordinate
system as viewed by the telescope) but we wish to have the vector
stated with respect to the
basis
(ie. the co-ordinate system in the cloud). Each basis consists of 3 vectors (ie.
and
). We already know
the
as they were defined above. To reduce the complexity as much as possible take
a cartesian co-ordinate system in the cloud with its origin at the same position as the origin of the
telescope based cartesian co-ordinate system. This is shown in figure 4.20. The
telescope co-ordinate system,
,
has axes
and
in the plane of the sky with
being the
line between the centre of the cloud and the telescope with the positive direction being towards the
telescope. The origin of the system is the centre of the cloud. Similarly
the co-ordinate system in the cloud has its origin at the centre of the cloud: it is then however,
rotated
around the
axis (after this rotation the tips of the arrows point at
the dots in figure 4.20) and then
around the
axis. By
considering various triangles in figure 4.20 it is possible to deduce the relationship
between
and
:
It is possible to write the
in what is called a `change matrix' which can then be
used to convert vectors from one basis to the other using
 |
(4.38) |
Here
in basis
and
is its equivalent in basis
.
is the change matrix and its entries are given by
 |
(4.39) |
where the
s are the basis vectors for
and the
s are the basis vectors for
.
So, for
to
we have
and similarly for
and
.
From 4.40 we get (by considering the
,
and
coefficients separately)
This set of equations can be solved to give
,
,
.
Returning to equation 4.39 and repeating this process for
and
,
yields the other elements of the
matrix to finally give the entire change matrix as
4.16
 |
(4.41) |
Thus, for example, if
and
the vector (1,2,0) in the telescope
co-ordinate system corresponds to
So we now have a method for converting the telescope co-ordinates into cloud co-ordinates. The line of
sight from the telescope will be a vector that is parallel to the
axis. It can thus be
described as
where
is the offset vector (eg. the telescope is
pointed off the centre of the cloud by (15
,15
)). Thus by picking the required value of
any point
along the line of sight can be described by
.
Now using this as matrix
in
equation 4.38 with
as derived in 4.41 we get
 |
(4.42) |
which are the components for the line of sight in the cloud co-ordinate system as required.
The geometry2 subroutine requires as input a start location in the cloud and a direction in which
the line of sight travels. For this problem it is convenient to take as the start location the point
where the line of sight exits the cloud on the far side from the telescope. The direction will then be
towards the telescope. The geometry2 subroutine will then find all the intersections with the
cylinders and disks that the line of sight makes on its way towards the telescope. Therefore it is next
necessary to find the intersection with the outermost cylinder. This is a problem that has already been
dealt with in section 4.5.3. An intersection occurs when the 3 components of
in
equation 4.5 equal the three components of
as given above, ie.
The only unknowns here are
and
.
can be deduced from equations 4.43 and 4.44
by squaring them and adding them together to get
which is a quadratic in
and can hence easily be solved for the two positions where the line of sight
intersects the outermost cylinder (ie. set
). There will be one positive and one negative
value. The positive one will be the intersection closest to the telescope so it is the negative result that is
required. With
found it is then easy to obtain the
,
and
cloud co-ordinates of the intersection
point from equation 4.42. Since the geometry2 subroutine works in cylindrical co-ordinates it
is necessary to convert them but this can easily be done using equation 4.5.
There is the possibility that the line of sight may exit the cloud through either the top or bottom disks.
This situation occurs when the z co-ordinate does not satisfy
.
In this event it is
necessary to use equation 4.9 to find the intersection with the appropriate disk and then use
this point as the starting point for the line of sight.
There is also the possibility that the line misses the cloud all together. This would be the case if a beam was
chosen to be so large that it covers the entire cloud - then some lines of sight in the beam may miss the cloud.
This case can be identified by there being no real solutions for
in equation 4.46. This
situation arises when
in which case the line of sight is assigned zero intensity.
Line of sight direction
[l]
geometry2 also
needs to know the direction in which the line of sight is pointing. In the notation used in
equation 4.6 this means it needs a value for
(rotation angle) and
(the elevation
angle). This is shown in figure 4.21 where
is the
component of the line
of sight (ie. the line of sight shifted so that it passes through the origin) and
is the
projection of this line onto the xy-plane.
is then the angle between
and the y-axis
and
is the angle between
and
.
Because of the way the axis system was chosen (ie. the
-axis pointing at the telescope) the
lines of sight are all parallel to the telescope's
-axis4.17.
Therefore
in the telescope co-ordinates system and can be converted, using
equation 4.38, into
and therefore
in the cloud co-ordinate system4.18. The radial for the
axis (ie. the
-axis) is simply
so using the
dot product (equation 4.12) on this and
gives
 |
(4.47) |
and similarly for
the angle between the projection
and the line itself
is given by
 |
(4.48) |
Picking the correct value of
[r]
Unfortunately there is an additional complication with equation 4.47 in that the
correct value of
may lie between 180
and 360
in which case the computer
will calculate the incorrect value of
.
The way around this is to check the
co-ordinates of the two points where the line of sight exits the cloud (ie. one on the near side and
one on the far side). If the far and near exit points are labelled
and
respectively then if
the correct value will be
(where
is the value calculated in equation 4.47 above). Figure 4.22
demonstrates this graphically as a top view on the cloud. Two sample lines of sight are shown, in the
case of the dotted line the value of
returned will be the correct value (ie.
)
as
the x-coordinate of the exit point closest to the telescope (positive y side of the cloud) is larger
than the x-coordinate of the exit point furthest away, ie.
in the terminology used above.
For the dashed line, however,
and the program returns the value for
which must
be corrected as described above to yield
.
Next: The geometry2 subroutine
Up: Calculating the Line Profiles
Previous: Calculating the Line Profiles
1999-04-12