Jump to content

Navigational algorithms: Difference between revisions

From IdeaWazaWiki
m 1 revision imported: Apply cleanup edits
 
(33 intermediate revisions by 17 users not shown)
Line 1: Line 1:
'''Navigational Algorithms''' is a source of information whose purpose is to make available the scientific part of the art of navigation, containing specialized articles and software that implements the various procedures of calculus. The topics covered are:
[[File:MarcqSaintHilaire.jpg|thumb|495x495px|Obtaining the height line Marcq St. Hilaire]]
 
The '''navigational algorithms''' are the quintessence of the executable software on portable calculators or smartphones as an aid to the art of navigation, this attempt article describe both algorithms and software for smartphones implementing different calculation procedures for navigation. The calculation power obtained by the languages—Basic, C, Java, etc.—from portable calculators or smartphones, has made it possible to develop programs that allow calculating the position without the need for tables, in fact they have some basic tables with the correction factors for each year and calculate the values "on the fly" at runtime.
 
== Comparison between manual calculation methods and the use of calculators ==
[[File:CorrecionHs.jpg|thumb|495x495px|Hs..Corrections ..]]
* The traditional methods require bulky and expensive nautical tables (which must be uSmartphoneted), pencil and paper, and calculation time, following the working algorithms.
* Calculators (and the like) do not need books (they have tables and ephemeris integrated) and, with their own algorithms, allow quick and error-free calculation of navigation problems.
 
== Types of algorithms ==
* '''Celestial navigation''': [[Sight reduction]], [[circle of equal altitude]], Line Of Position, Fix...
* '''Celestial navigation''': [[Sight reduction]], [[circle of equal altitude]], Line Of Position, Fix...
* '''Positional astronomy''': RA, GHA, Dec
* '''Positional astronomy''': RA, GHA, Dec
Line 5: Line 14:
* '''Sailings''': Rhumbs, Loxodromic, Orthodromic, Meridional parts...
* '''Sailings''': Rhumbs, Loxodromic, Orthodromic, Meridional parts...
* '''Weather''', '''tides'''
* '''Weather''', '''tides'''
* '''Software PC- PDA''': Nautical Almanac, Sailings, Variation, Sextant corrections
* '''Software PC- Smartphone''': Nautical Almanac, Sailings, Variation, Sextant corrections


== Advanced navigation ==
== Programs for general navigation ==
Include articles about piloting and astronavigation: Corrections for sextant altitude, Sight Reduction with calculator-Form & Plotting sheet for celestial LoPs, Celestial Fix - 2 LoPs, Celestial Fix - n LoPs NA Sight Reduction algorithm, Vector equation of the [[Circle of equal altitude]], Vector Solution for the intersection of two Circles of Equal Altitude, Sight Reduction - Matrix solution.


== Basic marine navigation ==
Programs on the [[nautical chart]], directions, coastal navigation and beacons, nautical publications. The astronomical navigation section includes the resolution of the position triangle, the usefulness of a height line, the recognition of stars and the determinant of the height line, in addition to other topics of interest in nautical: tides, naval kinematics, meteorology and hurricanes, and oceanography. All heading measurements made with a magnetic compass or compass must be corrected for [[magnetic declination]] or local variation.
Include papers about introduction to navigation, tides, naval kinematics, weather and oceanography


== Navigation shareware ==
=== Coordinate conversion subroutine ===
This section gives a brief description of the free programs available for navigation.
sub Rectang2Polar (a () as double, b () as double) static
Run under Windows XP, (maybe under 95/98/2000/NT)
  '----- Subprograma para convertir un vector de estado coord.cartesianas
  '----- En vector de estado en coord.polars.
  '----- De entrada: vector de estado en coord.cartesianes
  '----- De salida: vector de estado en coord.polars.
  '----- NOTA: El vector de velocidad polar es el de la velocidad total,
  '----- Corregido por el efecto de la latitud.
  '------------------------------------------------- ------------------------
  mar x as double
  mar y as double
  mar z as double
  mar x_dot as double
  mar y_dot as double
  mar z_dot as double
  mar rho as double
  mar r as double
  mar lambda as double
  mar beta as double
  mar lambda_dot as double
  mar beta_dot as double
  mar r_dot as double
  x = a (1)
  y = a (2)
  z = a (3)
  x_dot = a (4)
  y_dot = a (5)
  z_dot = a (6)
  rho = sqr (x * x+y * y)
  r = sqr (rho * rho+z * z)
  lambda = atan2 (y, x)
  beta = atan2 (z, rho)
  if (z <0 #) then beta = beta - TWOPI
  yf rho = 0 # then
    lambda_dot = 0 #
      beta_dot = 0 #
  else
    lambda_dot = (x * y_dot - y * x_dot)/(rho * rho)
      beta_dot = (z_dot * rho * rho - z * (x * x_dot+_
                  y * y_dot))/(r * r * rho)
  end if
  r_dot = (x * x_dot+y * y_dot+z * z_dot)/r
  '----- Componentes del vector de posición
  b (1) = lambda
  if b (1)> = TWOPI then b (1) = b (1) - TWOPI
  b (2) = beta
  b (3) = r
  '----- Componentes del vector velocidad total
  b (4) = r * lambda_dot * cuerpo (beta)
  b (5) = r * beta_dot
  b (6) = r_dot
end sub


=== Nautical Almanac ===
== Programs for astronomical navigation ==
Ephemerides of the celestial bodies used in navigation.
Advanced navigation algorithms include piloting and astronomical navigation: loxodromia and orthodromia. Height correction of the sextant . Astronomical position with calculator, template and blank mercantile chart. Position by 2 Lines of Height. Position from n Height Lines. Vector equation of the Height Circle. Position for vector solution from two observations. Position by Height Circles: matrix solution. And articles related to ancient procedures such as obtaining latitude by the pole star, the meridian, the method of lunar distances, etc.
[[Image:Nautical Almanac spreadsheet screenshot.png|thumb|340px|Nautical Almanac]]
 
=== Programs for the "Nautical Almanac" ===
[[Image:Nautical Almanac spreadsheet screenshot.png|thumb|340px|Example Nautical Almanac Program]]Ephemerides of the celestial bodies used in navigation.
* GHA - Greenwich Hour Angle
* GHA - Greenwich Hour Angle
* Dec - Declination
* Dec - Declination
* SD  - Semidiameter
* SD  - Semidiameter
* HP  - Horizontal Parallax
* HP  - Horizontal Parallax
* s the solution for course and SOG.


=== CelestialFix ===
=== CelestialFix ===
Astronavigation solution for sight reduction for n observations made with a marine sextant & running fixes
They solve the problem of calculating the position from observations of the stars made with the sextant in Astronomical Navigation.
 
Algorithm implementation:


The algorithms implemented are:
For ''n'' = 2 observations
For ''n'' = 2 observations
*An analytical solution of the two star sight problem of celestial navigation, James A. Van Allen.<ref>An analytical solution of the two star sight problem of celestial navigation. James A. Van Allen. NAVIGATION Vol. 28, No. 1, 1981</ref>
*An analytical solution of the two star sight problem of celestial navigation, James A. Van Allen.<ref>An analytical solution of the two star sight problem of celestial navigation. James A. Van Allen. NAVIGATION Vol. 28, No. 1, 1981</ref>
** Vector Solution for the Intersection of two Circles of Equal Altitude. Andrés Ruiz.<ref> [http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=1814560&fileId=S0373463307004602 Vector Solution for the Intersection of Two Circles of Equal Altitude. Andrés Ruiz González. Journal of Navigation, Volume 61, Issue 02, April 2008, p. 355-365.The Royal Institute of Navigation] </ref>
** Vector Solution for the Intersection of two Circles of Equal Altitude. Andrés Ruiz.<ref>[http://journals.cambridge.org/action/displayAbstract?fromPage=online&aid=1814560&fileId=S0373463307004602 Vector Solution for the Intersection of Two Circles of Equal Altitude. Andrés Ruiz González. Journal of Navigation, Volume 61, Issue 02, April 2008, p. 355-365.The Royal Institute of Navigation]</ref>
For ''n'' ≥ 2 observations
For ''n'' ≥ 2 observations
* DeWit/USNO Nautical Almanac/Compac Data, Least squares algorithm for n LOPs
* DeWit/USNO Nautical Almanac/Compac Data, Least squares algorithm for n LOPs
* Kaplan algorithm, USNO.<ref>Determining the Position and Motion of a Vessel from Celestial Observations, Kaplan, G. H. Navigation, Vol. 42, No. 4, 1995,  pp. 631&ndash;648</ref> For ''n''&nbsp;≥&nbsp;8 observations, gives the solution for course and SOG.
* Kaplan algorithm, USNO.<ref>Determining the Position and Motion of a Vessel from Celestial Observations, Kaplan, G. H. Navigation, Vol. 42, No. 4, 1995,  pp. 631–648</ref> For ''n''&nbsp;≥&nbsp;8 observations, gives the solution for course and SOG.


=== Magnetic declination ===
=== Magnetic declination ===
Line 41: Line 101:


== See also ==
== See also ==
* [[Navigation]]
* [[American Practical Navigator]]
* [[Celestial navigation]]
* [[Celestial navigation]]
* [[Institute of Navigation]] (''[[Navigation (journal)|NAVIGATION]]'' journal)
* [[Lunar distance (navigation)]]
* [[Nautical almanac]]
* [[Nautical almanac]]
* [[Lunar distance (navigation)]]
* [[Navigation]]
* [[Rhumbline network]]
* [[Royal Institute of Navigation]] (''[[Journal of Navigation]]'')
* [[Sextant]]
* [[Sextant]]
* [[American Practical Navigator]]
* [[Shortest path problem]] and [[automotive navigation]], for navigational algorithms in other domains
* [[Rhumbline network]]


== References ==
== References ==
Line 53: Line 116:


== External links ==
== External links ==
*{{cite journal | last=González | first=Andrés Ruiz |url=| title=Vector Solution for the Intersection of Two Circles of Equal Altitude | journal=Journal of Navigation | publisher=Cambridge University Press (CUP) | volume=61 | issue=2 | date=2008-03-25 | issn=0373-4633 | doi=10.1017/s0373463307004602 | pages=355–365| s2cid=130293359 }}
* [http://journals.cambridge.org/action/displayJournal?jid=NAV Journal of Navigation] (en inglés)
* [http://www.ion.org/ The Institute of Navigation] (en inglés)
* [http://sites.google.com/site/navigationalalgorithms/ Navigational Algorithms]
* [http://sites.google.com/site/navigationalalgorithms/ Navigational Algorithms]
* [http://journals.cambridge.org/action/displayIssue?jid=NAV&volumeId=61&issueId=02 Vector Solution for the Intersection of Two Circles of Equal Altitude], Andrés Ruiz González. Journal of Navigation, Volume 61, Issue 02, April 2008, pp 355–365
* Journal of Navigation http://journals.cambridge.org/action/displayJournal?jid=NAV
* The Institute of Navigation http://www.ion.org/
* Correction to the sextant altitude http://es.wikipedia.org/wiki/Archivo:CorrecionHs.jpg
* Marcq St Hilaire intercept for the line of position http://es.wikipedia.org/wiki/Archivo:MarcqSaintHilaire.jpg


[[Category:Navigation]]
[[Category:Navigation]]
[[Category:Celestial navigation]]
[[Category:Celestial navigation]]

Latest revision as of 22:46, 26 November 2026

Obtaining the height line Marcq St. Hilaire

The navigational algorithms are the quintessence of the executable software on portable calculators or smartphones as an aid to the art of navigation, this attempt article describe both algorithms and software for smartphones implementing different calculation procedures for navigation. The calculation power obtained by the languages—Basic, C, Java, etc.—from portable calculators or smartphones, has made it possible to develop programs that allow calculating the position without the need for tables, in fact they have some basic tables with the correction factors for each year and calculate the values "on the fly" at runtime.

Comparison between manual calculation methods and the use of calculators

Hs..Corrections ..
  • The traditional methods require bulky and expensive nautical tables (which must be uSmartphoneted), pencil and paper, and calculation time, following the working algorithms.
  • Calculators (and the like) do not need books (they have tables and ephemeris integrated) and, with their own algorithms, allow quick and error-free calculation of navigation problems.

Types of algorithms

  • Celestial navigation: Sight reduction, circle of equal altitude, Line Of Position, Fix...
  • Positional astronomy: RA, GHA, Dec
  • Coastal navigation: Range, Bearing, Horizontal angles, IALA...
  • Sailings: Rhumbs, Loxodromic, Orthodromic, Meridional parts...
  • Weather, tides
  • Software PC- Smartphone: Nautical Almanac, Sailings, Variation, Sextant corrections

Programs for general navigation

Programs on the nautical chart, directions, coastal navigation and beacons, nautical publications. The astronomical navigation section includes the resolution of the position triangle, the usefulness of a height line, the recognition of stars and the determinant of the height line, in addition to other topics of interest in nautical: tides, naval kinematics, meteorology and hurricanes, and oceanography. All heading measurements made with a magnetic compass or compass must be corrected for magnetic declination or local variation.

Coordinate conversion subroutine

sub Rectang2Polar (a () as double, b () as double) static
 '----- Subprograma para convertir un vector de estado coord.cartesianas
 '----- En vector de estado en coord.polars.
 '----- De entrada: vector de estado en coord.cartesianes
 '----- De salida: vector de estado en coord.polars.
 '----- NOTA: El vector de velocidad polar es el de la velocidad total,
 '----- Corregido por el efecto de la latitud.
 '------------------------------------------------- ------------------------
 mar x as double
 mar y as double
 mar z as double
 mar x_dot as double
 mar y_dot as double
 mar z_dot as double
 mar rho as double
 mar r as double
 mar lambda as double
 mar beta as double
 mar lambda_dot as double
 mar beta_dot as double
 mar r_dot as double
 x = a (1)
 y = a (2)
 z = a (3)
 x_dot = a (4)
 y_dot = a (5)
 z_dot = a (6)
 rho = sqr (x * x+y * y)
 r = sqr (rho * rho+z * z)
 lambda = atan2 (y, x)
 beta = atan2 (z, rho)
 if (z <0 #) then beta = beta - TWOPI
 yf rho = 0 # then
   lambda_dot = 0 #
     beta_dot = 0 #
 else
   lambda_dot = (x * y_dot - y * x_dot)/(rho * rho)
     beta_dot = (z_dot * rho * rho - z * (x * x_dot+_
                  y * y_dot))/(r * r * rho)
 end if
 r_dot = (x * x_dot+y * y_dot+z * z_dot)/r
 '----- Componentes del vector de posición
 b (1) = lambda
 if b (1)> = TWOPI then b (1) = b (1) - TWOPI
 b (2) = beta
 b (3) = r
 '----- Componentes del vector velocidad total
 b (4) = r * lambda_dot * cuerpo (beta)
 b (5) = r * beta_dot
 b (6) = r_dot
end sub

Programs for astronomical navigation

Advanced navigation algorithms include piloting and astronomical navigation: loxodromia and orthodromia. Height correction of the sextant . Astronomical position with calculator, template and blank mercantile chart. Position by 2 Lines of Height. Position from n Height Lines. Vector equation of the Height Circle. Position for vector solution from two observations. Position by Height Circles: matrix solution. And articles related to ancient procedures such as obtaining latitude by the pole star, the meridian, the method of lunar distances, etc.

Programs for the "Nautical Almanac"

Example Nautical Almanac Program

Ephemerides of the celestial bodies used in navigation.

  • GHA - Greenwich Hour Angle
  • Dec - Declination
  • SD - Semidiameter
  • HP - Horizontal Parallax
  • s the solution for course and SOG.

CelestialFix

They solve the problem of calculating the position from observations of the stars made with the sextant in Astronomical Navigation.

Algorithm implementation:

For n = 2 observations

  • An analytical solution of the two star sight problem of celestial navigation, James A. Van Allen.[1]
    • Vector Solution for the Intersection of two Circles of Equal Altitude. Andrés Ruiz.[2]

For n ≥ 2 observations

  • DeWit/USNO Nautical Almanac/Compac Data, Least squares algorithm for n LOPs
  • Kaplan algorithm, USNO.[3] For n ≥ 8 observations, gives the solution for course and SOG.

Magnetic declination

Any measure of course made with a magnetic compass must be corrected because of the magnetic declination or local variation.

See also

References

  1. ↑ An analytical solution of the two star sight problem of celestial navigation. James A. Van Allen. NAVIGATION Vol. 28, No. 1, 1981
  2. ↑ Vector Solution for the Intersection of Two Circles of Equal Altitude. Andrés Ruiz González. Journal of Navigation, Volume 61, Issue 02, April 2008, p. 355-365.The Royal Institute of Navigation
  3. ↑ Determining the Position and Motion of a Vessel from Celestial Observations, Kaplan, G. H. Navigation, Vol. 42, No. 4, 1995, pp. 631–648