PDF ADA Programming Everything you need to know about ADA Programming language 2nd Edition Claudia Alves download
PDF ADA Programming Everything you need to know about ADA Programming language 2nd Edition Claudia Alves download
com
https://textbookfull.com/product/ada-programming-everything-
you-need-to-know-about-ada-programming-language-2nd-edition-
claudia-alves/
OR CLICK BUTTON
DOWNLOAD NOW
https://textbookfull.com/product/scala-programming-a-comprehensive-
beginner-s-guide-to-scala-2nd-edition-claudia-alves/
textboxfull.com
https://textbookfull.com/product/law-101-everything-you-need-to-know-
about-american-law-5th-edition-jay-m-feinman/
textboxfull.com
https://textbookfull.com/product/how-to-raise-chickens-everything-you-
need-to-know-updated-revised-third-edition-christine-heinrichs/
textboxfull.com
https://textbookfull.com/product/leadership-all-you-need-to-know-2nd-
edition-david-pendleton/
textboxfull.com
https://textbookfull.com/product/digital-signal-processing-101-second-
edition-everything-you-need-to-know-to-get-started-michael-parker/
textboxfull.com
https://textbookfull.com/product/betty-crocker-cookbook-everything-
you-need-to-know-to-cook-from-scratch-12th-edition-betty-crocker/
textboxfull.com
ADA programming
2 nd edition
Claudia Alves
Preface
When Ada was launched in 1983, it was the only standard dated
language, the broadly recognized principles of software engineering.
The skepticism was great: B, whether by applying these principles
with Ada really transparent pension, reliable and maintainable
software systems punctually
can be terminated. Between aspiration and reality All too often there
is one big gap: Be Lucke. Today we can look back on eleven years of
experience with Ada. look. It has been shown that: B coding and
translation a larger application in Ada can take a little longer than in
some other languages, but the number of the Translation errors and
the effort to localize them reduce to a fraction. Overall, Ada brings a
considerable cost saving by the end of the test phase savings -
provided you apply the programming principles who supports Ada.
In the maintenance phase (i.e. in the event of correction, functional
changes and porting), the with large program systems typically cost
more than the hardware and the program creation together, Ada
shows just as big: Be advantages as in the test phase. The
experience of the early years since: B one the use of Ada must pay
with an inefficient code: B, Hingst does not apply either more. So
whoever develops a large: Beres program today has len reason to
write it in Ada. This book is supposed to be what you need
Knowledge of the language and the associated methods teln. It also
covers object-oriented methods and their use in the imminent new
version the language. Many people were involved in the creation of
this book. ligt, whom I would like to thank. The book is from Ada
training courses which I have been developing and keeping since
1986 and which improves due to the reactions of the course
participants sert and expanded; their appearances and ben made a
major contribution to this. Georg Winterstein excited invite me to
write the book; owe his advice I am well worth the knowledge that
has flowed into this book. I have a lot from my former colleagues at
Alsys GmbH a lot about methods and principles of successful
programming and learned about Ada. They built the compilers that
aile
Program examples and sample solutions in this book and they were
always ready to show their skills and give me advice and practical
help. hen. In particular, Manfred Dausmann, Wolf-Dieter He- ker,
Wolfgang Herzog and Erich Zimmermann through critical Reading
large parts of the manuscript and discussing its The book has
improved significantly with its content. Wolfgang In addition,
Herzog, with great patience, has many more or less tricky Ada
questions answered. Hans Wossner and Barbara
I owe many improvements to Gangler at Springer-Verlag in large and
small, which is the final form of the book have a major impact. I
would particularly like to thank my family: Robin designed the
pictures, Martin provided the necessary optimism, Christopher stood
by my side as a PC expert, and my husband Norbert always lobbied
iiberail where help was needed.
1 introduction
Ada supports the development of programs that are also used at
gro: Bem
scope
• confident,
• wait for cash and
• portable
are. We will only deal with the specific ones in the next two chapters
Discuss properties of Ada in detail. This book does not require the
reader to have any knowledge of Ada. Man but needs in-depth
knowledge of a block-structured language such as Pascal or C.
(There are, however, fundamental differences between
Ada and C; [Weinert] is a contrast to the C programmers the
orientation and the change to Ada.) If you
especially with the agreement of own data types, including RECORD
(compound) types, and the handling of recursive subpro- If you are
familiar with this book, you should be able to understand this book.
At-
If so, you should first read the book [Schmidt] to find the missing
Conditions to acquire. In contrast, this book covers the full language
range of Ada. This book is intended to convey the sensible use of
Ada. Therefore the history of the origins of language is described in
Chapter 2. changes along with the goals of its developers. And in
Chapter 3 will be these goals and the underlying (mostly by no
means ada specific) ideas before introducing any language construct
becomes. The language constructs for their part are made for the
same reason demonstrated by program examples. We refer to those
Ideas and principles that the respective construct supports. Ada has
a very precise language definition in [Ada]. The precision this
description is indispensable for the high degree of reliability and
portability of Ada programs: supposedly unimportant aspects te that
are not mentioned in other language definitions and therefore by
Different from case to case (and at least from translator to
translator)
are precisely regulated in [Ada]. But it is precisely this thoroughness
that makes the language definition for Ada Newbies hard to read:
those who learn Ada from the language definition alone
want, mui3 already has a lot of experience with other programming
languages bring. This book is not intended to replace [Ada] for Ada
users. It rather, it is intended to enable them to understand the
language definition and to use. That's why this volume doesn't
include them, for example
formal syntax definition that is completely and easily accessible in
[Ada] can be found.
1.1 The terminology
[Ada] is the binding definition of the languagej a DIN translation
is available in [Deutsch-Ada]. For the numerous defined in [Ada]
Terms we usually use the DIN translation, whereby we
the original English term at the first occurrence of each term
(in brackets, in the singular or in the infinitive). The A-
Numerous exceptions are:
• Terms (such as ARRAY and RECORD) from [Ada] that start
with a reserved
If Ada identifiers match, we usually do not translate, but rather
use the (capitalized) reserved word for this.
• Two further terms introduced in §13.10 ("erroneous execution" and
"incorrect order dependence") are for the reasons given there
reproduced in English.
For each term (if it is used) not only the German appears
Translation, but also the original English term in the keyword
translation
drawing, which is therefore suitable for use with [Ada] and
with [Deutsch-Ada] is suitable.
When introducing them, we put terms in italics. An underline
on the other hand, serves for emphasis. Ada program texts and
parts thereof
appear in a special (non-proportional) font: PROCE-
DURE a_ada_program;
2 Ada's career
Urn to understand how Ada differs from other languages is it is
helpful to know why and how Ada was developed. The previous The
chapters on the right are intended to convey this knowledge.
3.1 abstraction
We address this topic first in the interest of the reader because it is
so The key is that it applies to all of the basic topics in this chapter
shows up. By abstraction we mean a view that is a summary certain
thingsj featuresj actions as a coherent whole and ascribes its own
IdentWit to this summary.
Abstractions serve to grasp the coherent whole or to convey. In
doing so, its details are in the background
posed. We are constantly using abstractions in life in order to
improve our environment
understand and describe. The repetition of the sequence of actions
• move the left full forward,
• shift body weight forward,
• put on the left full ,
• balance on the left full ,
• move right foot forward,
• shift body weight forward,
• put on the right full,
• on right Full balance
Let us consider, for example, a coherent action and name they go So
you set the individual actions that belong to walking, in the
background to capture the related action or to convey. The view of
each individual action as a coherent one Action is of course an
abstraction again (on a lower level). That the term forest is an
abstraction comes from the idiom "You can't see the forest for all the
dunes" to the expression. If When talking about the forest, the
individual buildings are placed in the background, to capture the
forest as a whole. Another example of an abstraction is the term
money (limited
For the sake of simplicity, let's use German cash). At upper From a
flat perspective, this term appears as the name of a group collection
of coins and bills. Belong to the essence of money but also certain
characteristics of these coins and bills, for example the fact that
every coin and every note has a certain meric value. The essence of
money also includes agreed actions related to money, for example
money serve, buy something with money, sell something for money.
One sees so that this abstraction has things, features and actions as
summarizes the coherent whole and is therefore quite complex;
despite-
we use them every day. In order to write a large program, one has
to make abstractions
easily recognizable in everyday life, but sometimes also Formulate
new abstractions, define and in the program respectively represent
as a coherent whole. This is the only way the program will work fill
the programmer (and even more fill those who later too Read for
maintenance purposes) transparent; otherwise he will sink in Writing
in a quagmire of details. A programming language
which largely supports the development of programs, must therefore
aquate representation also enable complex abstractions. In the
program there is of course always a more radical type of
Abstraction present: there are many details from the real world in
the program not only put in the background, but completely omitted
because they fill the task that the program is supposed to solve, ir-
are relevant. In a program that has the (face) value of coins added
up, for example the date of a coin is wrong levant; this detail is
therefore shown in the representation of the coin in
Program omitted. In the next two sections we discuss two types of
Abstractions.
Fig. 4.
At the equinoxes, where the ecliptic and equator cross and the
solstices—the vertices of the ecliptic—that is, four times a year, the
true and mean sun are together, but departing from these points
they do not travel with the same right ascension, remembering that
right ascension is measured on the equator. Taking, for example, the
earth in that quadrant of the orbit comprised between the vernal
equinox and summer solstice, the apparent sun in the heavens
would be by cause of obliquity alone, to the right or to the westward
of the mean sun, and thus it will be seen that with the earth rotating
from right to left the apparent sun will cross the meridian first;
consequently between March 21st and June 21st that part of the
equation of time due to the obliquity of the orbit bears a minus sign
when mean time is desired from the apparent time. This correction
reaches its maximum half-way or 45° from the equinox, amounting
at that point to nearly 10 minutes.
Fig. 5.
Now the reason for this difference between the mean and
apparent sun when each (so far as this problem is concerned) moves
along its respective path—the equator and the ecliptic—at the same
rate, is this: suppose the equator between the equinox and the
solstice is divided into an equal number of parts and an hour circle
drawn through each point of division. Beginning from the equinox
(the common apex of the triangle) the arc of each hour circle
between the equator and the ecliptic, forms the altitude of a right-
angled triangle, while the equator and the ecliptic are base and
hypothenuse respectively. Thus it will be seen that each portion of
the equator (base) is shorter than the corresponding part of the
ecliptic as defined the hour circle, to the extent of the ratio of the
base to the hypothenuse.
This amount increases with the increasing size of the triangle, but
a new element enters to counteract its effect. With the increasing
divergence of the ecliptic and equator, the divergence of the hour
circles becomes a factor and as the solstice is approached the
divisions on the equator, are represented on the ecliptic by gradually
decreasing spaces between the hour circles.
The combination of these effects produces the error due to the
obliquity of the orbit. The error has the opposite effect in the next
quadrant, that is, from June to September; and in opposite
quadrants it is the same.
So it will be seen that error due to the eccentricity causes the
apparent sun to lead the mean sun from December 31st to June
30th, reaching a maximum of 8 minutes about April 2d. This sun
then falls astern until December, again attaining a maximum of -8
minutes about October 1st. The error due to the obliquity of the
orbit accumulates between the equinoxes and solstices for at these
points the two suns are together and there is no error, but about the
6th of May, August, November, and February, it reaches a maximum
of 10 minutes; in August and February, the mean sun takes the lead.
These two errors of equation of time combined algebraically will
result in the plain line of the diagram.
Calendar
The ancients, in order to keep track of past events and to
anticipate the future, devised a calendar, which, while not identical
with the one now in use, was of itself a remarkable production. They
chose the revolutions of the moon as their basis of measuring the
passage of time, and, as a lunar month contains only 27⅓ days, the
12 months used in this early calendar comprised a year of about 354
days.
It became apparent as the world progressed that use of the moon
was very unsatisfactory for this purpose, as the calendar became
complicated and confusion resulted, owing to the difference between
the lunar and solar years. This condition remained until the reign of
Caesar, when that monarch determined to establish a more
satisfactory method of reckoning time. With the aid of an eminent
astronomer, he completely revised the calendar, using the revolution
of the earth around the sun as the standard for the length of a year.
The time required for this is 365¼ days, approximately, and as it
was inconvenient to include the ¼ day in the year, it was allowed to
accumulate for 4 years, when as a whole day, it was added to the
end of February.
Caesar, evidently proud of this accomplishment, honored himself
by naming his astronomer’s invention the Julian Calendar and in
order to further immortalize himself he changed the name of the
seventh month to July. Augustus, his successor, apparently envious
of the honor his predecessor derived from this source, and
determined not to be thus outdone in perpetuating his name,
changed the month Sextilis to August.
The commonly accepted 365¼ days as the length of year is only
an approximation, however, and the small difference between this
and the actual length of a year began to accumulate until this weak
point in the Julian Calendar became a matter of moment. The exact
length of a year from vernal equinox to vernal equinox is 365 days 5
hours 48 minutes and 46 seconds, which lacks just 11 minutes 14
seconds of 365¼ days. This caused the dates of the equinoxes and
solstices to keep slipping back 11 minutes each year and when
considerable time had passed the difference became large enough to
cause inconvenience; the date of the vernal equinox having dropped
back to March 11th in 1582. In this year Pope Gregory, acting under
the advice of an astronomer by the name of Clavius, modified the
Julian Calendar. He first added 10 days to restore the date, and then
to forestall a further retrogressing of the calendar, provided that only
those century years divisible by 400 should be considered leap
years. In this way the 11 minutes 14 seconds was prevented from
causing further mischief. This calendar known as the Gregorian
Calendar is now in almost universal use, though at first it was
adopted only by Catholic countries.
It is interesting to note that the time consumed by the sun in
making his apparent yearly revolution from a certain star back to
that star again is a sidereal year of 365 days 6 hours 9 minutes 9
seconds. The tropical year—the one in common use—is shorter,
being the time required for the sun to leave and return to the vernal
equinox, or First Point of Aries. This point, it will be remembered, is
moving westward about 50´´ annually, and it will be seen that while
the sun starts its eastward revolution among the stars, the equinox
is very slowly moving westward to meet him, thus making the
tropical year about 20 minutes shorter than the sidereal year.
While discussing the calendar it is an opportune time to explain a
matter concerning the dates of the equinoxes and solstices. It has of
course been noticed by everyone that the vernal equinox occurs one
year on March 20th and another on March 21st, or the summer
solstice on June 22d and yet another year on June 21st and so on.
Aside from the slight change due to the dropping back of the
seasons in the orbit by the precession of the equinoxes, the actual
time of the equinoxes and solstices may be considered as constant,
yet the dates vary a few hours.
The year in common use—the tropical year—contains
approximately 365¼ days, yet we take account of only 365 days,
the extra ¼ day being laid aside for future reckoning. During the
next year this 6 hours will be augmented by 6 more; the next by
another 6, making 18 hours ahead of the calendar. The fourth year
this amount reaches 24 hours, and a full day, the 29th of February,
is added to the calendar for that year, and we are square again. But
the different equinoxes and solstices occur at just 364¼ days; taking
for example the vernal equinox, it occurs on the following
(approximate) dates, which it will be noticed are 6 hours later each
year:
1908—March 20, 12 hours (leap year).
1909—March 20, 18 hours.
1910—March 20, 24 hours or March 21st noon.
1911—March 21, 6 hours.
1912—March 20, 12 hours (leap year).
It is evident by the above that the insertion of the extra day just
previous to the equinox in the leap years, sets the date of the
equinox back a day by the calendar. Juggling the ¼ day as shown
above causes the change in the calendar dates of these phenomena.
CHAPTER V
Index Correction
The index and horizon glasses of a sextant are supposed to be
parallel when the zero of the vernier and the zero of the limb are in
one, and with this the case, the true and reflected images seen in
the horizon glass should exactly coincide. Any difference between
them is the index error.
It is seldom that a sextant is so well adjusted that no index error
exists, but it is not desirable to keep tampering with the instrument
with an attempt to eliminate this error, for it will in time injure its
accuracy.
By testing the sextant at each sight, the error can be closely
watched and allowance made for it in correcting altitude. The easiest
and most accurate method of ascertaining this error is by using a
star in the following manner: Set the zero of the vernier a little to
either side of the zero of the limb, and observe a 2d or 3d
magnitude star—move the reflected image past the real and note if
they pass directly over one another. If not, the horizon glass is not
perpendicular and needs adjustment. Bring the reflected star in
exact conjunction with the real star, and read off the index correction
—if the zero of the vernier is to the left of the zero of the limb—on
the arc—the difference is minus (-) and subtracted from the
observed altitude; and if to the right—off the arc—it is plus (+) and
added. A well-known rule of thumb expresses it thus: if it’s on it’s
off, and if it’s off it’s on. The sea horizon is also available for
determining this correction and serves the purpose with fairly
accurate results.
Semi-diameter
In measuring the altitude of certain bodies for navigational
purposes, it is necessary to determine the distance of the center of
the body above the horizon. To accomplish this in an accurate
manner the lower edge or limb is brought down to the horizon and
the semi-diameter applied to this measured altitude. When the lower
limb is used, as is the usual practice, the correction for semi-
diameter is obviously plus (+). The upper limb can be resorted to,
however, should the lower side of the body become veiled by cloud,
and in this case the correction is minus (-).
Semi-diameter of the sun is obtained readily from the Nautical
Almanac for each ten-day period, for it must be remembered that
the sun is continually changing its distance from the earth, and
consequently the diameter of the former is increased and lessened
slightly at different times of the year. For instance: On January 2d,
when the earth is near perihelion and we are at our nearest point to
the sun, the semi-diameter is 16´ 17´´.90, while on July 2d, when
we are in the remote parts of the orbit, the semi-diameter is only
15´ 45´´.69, making a difference of over 32´´.
The moon being such a near neighbor of ours gives more trouble
in determining her diameter. Besides being greatly affected by her
rapidly changing distance from the earth, a further correction is
occasioned by the fact that our position on the surface is nearer the
moon at times than is the center of the earth. That is, when the
moon is in the zenith we are 4000 miles, the earth’s radius, nearer
that body than when she is in our horizon. It is evident that the
direction of the moon in our sensible horizon is at right angles to a
perpendicular erected at our place of observation and passing
through the earth’s center, and this again makes it evident that the
moon is about equally distant from the earth’s center and our
position on the surface; but as she ascends the heavens she comes
nearer our position until in the zenith the distance has been reduced
by 4000 miles and the diameter appears correspondingly larger.
Draw a diagram and see for yourself. This Augmentation of the
Semi-diameter, due to the altitude, is found tabulated in Bowditch,
Table 18.
The semi-diameter becomes too small to consider in ordinary
navigation when observing any of the planets, and of course fixed
stars are beyond its scope.
Refraction
Everyone knows that the blade of an oar when dipped in the
water appears to be bent in a remarkable manner at the surface.
This is a clear case of refraction. Should the oar, however, be held
under everywhere at an equal depth, a square look downward at it
would fail to show any refraction. So it becomes evident that
refraction is caused by the rays of light passing obliquely from a
rarer to a denser medium or vice versa. A ray of light coming from a
heavenly body to the earth passes through a medium of gradually
increasing density, from the thin outer air to the denser atmosphere
at the surface of the earth. The ray of light consequently becomes
curved downward and reaches the earth at a point nearer the
heavenly body than would be the case if the light ray traveled in a
straight line. The effect of this to the observer is that the body
appears higher than it really is. The difference between the actual
direction of the ray of light unaffected by the air, and our line of
vision as we see the body, is the refraction.
The amount of refraction ordinarily affecting an observed altitude
depends upon the distance of the body above the horizon. At the
zenith, the rays of light, entering our atmosphere perpendicularly,
are not deflected and refraction is nil. But, on the other hand, when
the body is near the horizon, the rays of light pass through the
atmosphere at a sharp angle and are consequently subject to the
greatest bending, thus giving us our maximum refraction. In fact,
this element becomes so unreliable in low altitudes that it is not
advisable to observe a body when less than 10° or 13° above the
horizon. This in no way concerns bearings taken of bodies in the
horizon for amplitude, as refraction affects the altitude and not the
azimuth of a body.
Dip
It is a well-known fact to every seaman that by going aloft, he
can pick up a light sooner than on deck; that is, the higher his
elevation the wider his horizon becomes. The horizon of a man in a
small boat is only about 3 miles away, but, if he climbs to the bridge
of a steamer some 60 feet above the water, he finds that the horizon
has receded until he has a range of about 9 miles.
The fact that the horizon can be altered by changing the altitude
should appeal to every navigator as a possible means of getting a
horizon in foggy weather, by going aloft or getting as low as
possible, provided the fog bank is lying above or close to the water.
The altitude of a body is measured to the visible horizon, yet the
measurement must be adjusted to the sensible horizon before the
true altitude can be obtained. This correction is accomplished by
applying to the observed altitude the amount of the angle formed at
the observers eye by the planes of the sensible and visible horizons.
The angle is known as the dip of the horizon. It is readily seen that
this angle always makes the observed altitude too large, for the eye
if located at the exact surface of the sea, theoretically sees the
sensible and visible horizons in one, while at every elevation above
the surface it depresses the visible horizon correspondingly. It is,
therefore, always necessary to apply the dip as found in Table 14,
Bowditch, with a minus (-) sign.
An inspection of the table of dip will show that the rate of
increase of this error becomes more rapid as the height of the eye is
diminished. To illustrate: The reader will note that between an
elevation of 4 feet and one of 9 feet there is a difference of 1 minute
in the dip, while higher up, say between 26 feet and 38 feet, a
difference of 1 minute is likewise found, yet in the first instance
there was a range of 5 feet and in the second a range of 12 feet.
This fact in itself is an argument in favor of observing altitudes at a
good height above the water.
In calculating a meridian altitude, an error in the dip directly
affects the result by a corresponding amount, so extra care should
be exercised in this respect. In this instance, we endeavor to locate
the body relative to our zenith and anything that affects its altitude
directly affects the latitude. In a time sight, a different principle is
involved. Here the position of the body as defined by the latitude
locates the apex of one angle of the astronomical triangle and hence
a small error in the altitude will very likely cause a greater effect on
the longitude.
An allusion was made under the caption of Refraction to the
displacement of the visible horizon by terrestrial refraction to detect
which requires watchfulness on the navigator’s part. The familiar
“loom” seen along the coast is an example of the workings of
variable refraction. Now imagine this distortion less aggravated with
no land to show its existence and you have a good illustration of this
error.
Refraction of this nature is usually found during light airs and
calms when the different layers of air arrange themselves according
to their temperatures. The heated air over land below the horizon in
hot weather will displace the intervening horizon; moreover, when
the air is warmer than the sea, the horizon is elevated above the
normal and, when the conditions are reversed, the horizon is unduly
depressed. Thus lights become visible a little sooner after a hot day
ashore. The Red Sea, Gulf Stream, mouth of the Amazon, and other
large rivers are places where the horizon should be especially
distrusted. Capt. Lecky, in his famous Wrinkles in Practical
Navigation, refers to an experience he once had with this error. The
latitude had been found “by an excellent meridian altitude of the sun
to be as much as 14´ in error. The time was mid-winter—the day a
clear cloudless one—the sea smooth, and the horizon clean-cut. Five
observers at noon agreed within the usual minute or half minute of
arc, nevertheless, on making Long Island (U. S. A.) in less than two
hours afterwards, the latitude was found wrong to the amount
stated. Many such cases have come under the writer’s notice, but
this one alone is cited on account of the magnitude of the
phenomenon.”
What Captain Lecky said in his work on navigation is reliable and
this should serve to make an impression as to the dangers of such
occurrences.
In clear weather this displacement of the horizon may be
lessened somewhat by observing from aloft. By extending the
horizon, such disturbing influences as the motion of the vessel and
an irregular horizon caused by rough sea are minimized. In hazy
weather, however, it is recommended to observe low, bringing the
horizon as close as possible.
Parallax
In calculating the true altitude of a body the distance of its center
above the horizon is supposed to be measured from the center of
the earth, or what is the same thing, the altitude above the rational
horizon.
The application of semi-diameter adjusts the measured angle with
the center of the body, while parallax corrects the error due to our
observing from the surface of the earth to the sensible horizon,
instead of from the center to the rational horizon.
Parallax, in other words, is the angle formed at the body by the
lines drawn from the observer’s position, and from the center of the
earth, respectively. This angle is subtended by the radius of the
earth, and it is obvious that the farther away a body is, the smaller
the angle, and consequently the less the parallax. So when dealing
with planets or fixed stars, it becomes insignificant and no parallax is
considered.
The moon, on the contrary, is so close aboard that the angle of
parallax reaches a value of nearly 1´; as a minute of altitude means
a minute of latitude and in turn a mile, so with this body the error
due to parallax must be carefully determined.
In the case of the sun, however, it is somewhat of a waste of time
to bother with parallax, for it never exceeds 8´´ or 9´´ and such
fine calculation is uncalled for in ordinary navigation where so many
greater errors must be kept in sight. However, we desire to eliminate
every known element of error without undue figures, so it is
recommended that Table 20B, Bowditch, be used, where without
extra trouble the parallax may be found conveniently combined with
the refraction.
When a body is in the sensible horizon, the parallax is greatest.
The angle of parallax subtended by the radius of the earth is then an
acute angle of a right-angled triangle and is as large as it can
possibly be with the body at the same distance. As the body obtains
altitude above the horizon, the right angle of the triangle (at the
observer) becomes obtuse and our acute angle of parallax becomes
smaller and smaller until the body reaches an altitude of 90°—in our
zenith, when the obtuse-angled triangle has resolved itself into the
perpendicular line that passes through our position and the earth’s
center. The angle of parallax here disappears.
When a body is in the horizon, its parallax is known as Horizontal
Parallax in contra-distinction to Parallax of Altitude. The latter has
become generally known among navigators merely as parallax.
Our position on the surface causes a body to appear lower than if
viewed from the center of the earth, so the error of parallax is added
to the observed altitude; when, however, it is combined with
refraction it is subtracted in an observation of the sun, but added
when the moon is used.
The parallax of the moon is excessive because the radius of the
earth becomes a considerable amount when compared with the
close proximity of the body, and causes a considerable angle at the
body between the lines drawn from the observer and that drawn
from the center of the earth. The change in parallax is so great that
it becomes necessary in order to preserve accuracy to correct the
observed altitude for index correction, dip and semi-diameter, to
secure an approximate corrected altitude before attempting to
correct for parallax. The horizontal parallax, which is the angle
subtended by the earth’s radius when the moon is in the horizon, is
taken from the Nautical Almanac, and with this and the approximate
altitude as arguments, enter Table 18, Bowditch, and pick out,
having regard for correction tables at the right, the parallax and
refraction combined.
The usual corrections to the observed altitude of the sun or stars
can be picked out at once from Table 46, Bowditch, where they are
all combined for a quick correction.
CHAPTER VI
Latitude
Meridian Altitude
It is surprising to us, in these advanced days of nautical science,
to read of our adventurous ancestors of a century ago navigating
their ships to all parts of the known and unknown world with nothing
to guide them but their dead reckoning and the latitude crudely
obtained by the method of meridian altitude. Many of our finest
ships, as late as the first decade of the nineteenth century, sailed to
China and back with no knowledge of their longitude save what the
master guessed it to be. Even in later days much navigating has
been done in the less lucrative trades by mariners who had no
knowledge of the method of finding longitude. It required more time
and distance to navigate by latitude and dead reckoning only, as it
was not always safe to lay a course from an indefinite position
directly for the coast. It was the custom in the old days to keep off
soundings until on the latitude of the port of destination, then steer
due west, and whatever the longitude might turn out to have been
the master would sooner or later make the land in the vicinity of his
port.
The first step in obtaining the latitude by meridian altitude is the
measurement with the sextant of the sun’s altitude. This is done
when it reaches its highest point in its course across the sky; this
occurs when it bears due N. or S. true and this moment is local
apparent noon. A few minutes before this time the image of the sun
should be brought to the horizon, and by swinging the lower part of
the instrument the image will be made to swing likewise in an arc;
the lowest point of its lower edge (limb) should then be brought in
contact with the horizon as closely as the circumstances will permit.
The image will keep rising from the horizon, but by using the
tangent screw it can be continually brought back to contact. At noon
it will hang, and dip below; the reading of the sextant at this
moment is the meridian altitude.
In working the problem three quantities are used and the
navigator must be familiar with them:
The first is the zenith distance (z), which as its name implies is
the sun’s (or stars) distance from the zenith. Zenith is 90° from the
horizon, so the true altitude of the body subtracted from 90° is z the
quantity desired.
The second element is the declination (d), which is the distance in
degrees, minutes, seconds, of the body either north or south of the
equator. This is taken from the Nautical Almanac.
The third and resulting quantity is the latitude, which is the
distance in degrees, minutes, seconds, of the ship either north or
south of the Equator.
The altitude observed taken with the sextant at noon is corrected
for semi-diameter, parallax, dip, refraction and instrument error (if
any exists). These corrections are explained in detail in Corrections
for Observed Altitudes.
The declination of the sun is constantly changing between 23½°
N. and 23½° S. This is given in the Nautical Almanac for each two
hours of Greenwich mean time with the difference for each hour
given for each day. So it becomes necessary to ascertain the
declination at the moment of observation, namely, at local noon.
This anywhere in the Atlantic will occur subsequent to Greenwich
noon, as the sun (apparently) passes around the world from the
eastward to the westward once a day—24 hours—which corresponds
to 360° of longitude. The rate of travel is therefore equivalent to 15°
in an hour. Hence if the sun crosses Greenwich meridian and five
hours later crosses the meridian of the ship, say in 75° W., the
interval is 75 divided by 15, or 5 hours. During this interval the sun
has changed in declination northward or southward and should be
picked out of the Almanac for 5 hours Greenwich mean time.
When the zenith distance and declination are at hand the latitude
is obtained by a mere algebraic addition, which is, z + d = latitude;
where, if the body bears south the z is marked +, if north it is
marked -; if the declination is south it is marked - and if north it is
+. The result of the addition if - indicates south latitude, if + north
latitude. The meridian altitude of a star, planet or moon is found in a
similar manner. The formula of z + d = latitude, having regard to
signs named as above, is applicable to each. The declination and the
correction of the observed altitude are picked out of the Almanac
and Bowditch tables in a somewhat different manner peculiar to
each body.
It is found by many navigators to be more convenient to observe
a body for meridian altitude by time than in waiting for the “dip.”
The altitude is taken at exactly local apparent noon in case of the
sun and the time of meridian passage in the cases of other bodies.
This expedient is especially desirable in observing stars, as the
horizon is not as distinct and the “dip” not so easily detected as with
the sun.
In order to secure the local mean time (L. M. T.) of a star’s transit,
the G. M. T. of the star’s transit over the Greenwich meridian is
found in the Nautical Almanac (p. 96) for the first day of the month
and correct for the day by table on next page (N. A.). The ship’s
mean time of transit will be the same, as both sun and star hold
their relative positions as the star moves from Greenwich to the
ship’s meridian except for the small retardation of the sun’s
movement over the star’s movement. This is best found at the foot
of page 2, Nautical Almanac, where the longitude in time gives the
correction to be subtracted from (G. M. T.) of transit which will give
the local mean time of transit at ship—the time to observe the star.
An observation of a planet is similarly handled. The moon is
somewhat unreliable owing to its rapid changes in position and the
large corrections necessary to correct the altitude, and is
consequently rather an unpopular body to observe. However, there
are times when she might prove valuable in giving position when
much needed.
In the case of the sun the time of transit is local apparent noon,
by applying the longitude in time gives Greenwich apparent time of
local noon, and corrected for equation of time gives Greenwich mean
time of transit.
It is often necessary to report the latitude at noon very quickly to
the master. This can be accomplished by calculating the problem to
a point where the addition or subtraction of the observed altitude is
all that is necessary to give the latitude. The corrections are applied
in advance by the estimated altitude, and declination corrected by
the estimated longitude. Art. 325, Bowditch, gives the constants to
be used in four different situations.
Polaris
The process of finding the latitude by means of Polaris is valuable,
comparatively short and the result, if the conditions are favorable, is
accurate. We will consider it first in a general way.
The imaginary line representing the earth’s axis, if extended
indefinitely, is presumed to pierce the celestial sphere at the celestial
pole, therefore for an observer standing at our north pole this
imaginary point would be exactly in the zenith and hence 90° from
the horizon just as the pole is 90° from the equator, these amounts
evidently bear a relation to one another. Should the person at the
pole leave his frigid surroundings and proceed toward the equator,
he would note that the pole had dropped lower and lower in the
heavens, precisely in proportion to his progress southward, until at
length, when the equator (latitude 0°) was reached, the pole would
be observed to be exactly in the horizon (altitude 0°). From this it is
easy to deduce the statement that the altitude of the celestial pole is
equal to the latitude of the place of observation.
The object of this problem then is to obtain the altitude of the
celestial pole. This point, unfortunately, is marked by no star of
which a direct altitude may be observed to aid the navigator in
reaching this desired result. There is, however, a star of the 2d
magnitude, called Polaris (because of its proximity to the pole) with
a polar distance of only 1¼°. As all fixed stars are apparently
revolving in circles around the celestial pole, this star joins the grand
procession with its little radius of 1¼°.
It is plain that at no time can this star be more than the amount
of this radius (1¼°) from the pole, and when on the meridian either
above or below the pole the full amount of the radius is subtracted
from or added to the corrected altitude of the star to obtain the true
altitude of the pole. When the star is on a line passing through the
pole and parallel to the horizon at its elongations as it is called, the
altitude is then equal to the latitude, for its elevation is the same as
that of the pole.
It requires 24 hours for this star to complete the small circle of
revolution, the same time required by every star; its movement is
necessarily very slow. By computing its hour angle, we can locate its
position on this circle, and hence by applying a correction to its
altitude, subtracting or adding according to the position of the star
above or below the pole, we will obtain the altitude of the pole.
A rough estimate of the position of the pole may be secured by
noting the position of the Big Dipper, the second star in the handle,
called Mizar, is approximately in line with Polaris and the pole.
We will now proceed to show the method by which the hour
angle is obtained:
In the talk on Time, it was stated that the local (astronomical)
mean time plus the right ascension of the mean sun is equal to the
local sidereal time; and again, that the right ascension of a star plus
its hour angle equals local sidereal time. With these facts as a basis,
the formula for latitude by Polaris given in the Nautical Almanac will
be followed in explanation.
Fig. 6.
The time of observation must be noted by chronometer and
converted into local (astronomical) mean time; this must be
corrected by Table III (Nautical Almanac) in order to change this
solar interval into a sidereal time interval; to this converted time
must be added the Greenwich sidereal time of mean noon (page 2);
that is, the hour angle of the First Point of Aries, or what is the same
thing, the right ascension of the mean sun; to this sum must be
applied a correction for longitude, in time, taken from the foot of
page 2, N. A. The sum is the local sidereal time.
The reason for the correction of longitude is this: The difference
between the right ascension of the mean sun at noon on two
successive days is 3 m. 56 s., the same as the accumulated
difference between solar and sidereal time in 1 day. Now we take
from the Nautical Almanac this element for Greenwich mean noon,
yet the sun has since covered the distance equal to the longitude,
and during the interval required to do this, the sidereal time has
accelerated over the solar an amount which bears the same ratio to
the 3 m. 56 s., that the longitude in time bears to 24 hours. The
Nautical Almanac handles the terms of this proportion in tabular
form at the foot of page 2. It is stated that the sun has traveled
from the meridian of Greenwich to the local meridian, and it might
be suggested that at the time of observation the sun has covered
this amount plus the local hour angle or the local astronomical mean
time. This is true but the amount of local hour angle has been
previously accelerated to sidereal time by the correction to local
astronomical mean time.
With the local sidereal time enter Table I (Nautical Almanac) and
pick out the correction to be applied according to sign to the
altitude. It is probably needless to say that the observed altitude
must be corrected for index error, dip and refraction before applying
this latter correction, which converts it into latitude.
This is called the Nautical Almanac method and is sufficiently
accurate for navigational purposes, but should a greater refinement
be desired there are tables of further corrections given in the
American Ephemeris and Nautical Almanac.
It is always advantageous to get an observation of a star near
twilight or dawn, in order that a well-defined horizon may be
available; but, in taking a sight of Polaris, another important feature
is to be considered. When the star’s hour angle is at or near 6 or 18
hours, that is, near that part of its orbit cut by a line passing through
the pole and parallel to the horizon, it is rising or falling most rapidly,
with the result that a small error in time will produce a considerable
error in the hour angle, an error of 3 minutes introducing a
difference of 1´ in the latitude.
It is quite worth while, therefore, to select a time for the
observation of Polaris when this star is near either of its
culminations, its highest or lowest positions, where the time need
not be especially accurate; but by carefully noting the time it is
possible to get good results at other times when the horizon is
defined. By using the position of the star Mizar, as suggested above,
however, the navigator will be greatly aided in selecting the most
propitious time for observing Polaris.
CHAPTER VII
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com