main content

marine navigation using planetary ephemerides -凯发k8网页登录

this example shows how to perform celestial navigation of a marine vessel using the planetary ephemerides and an earth-centered inertial to earth-centered earth-fixed (eci to ecef) transformation.

this example uses the mapping toolbox™. you must also download data for the example using the function.

astcelestialnavigationexamplemap.jpg

this example uses the route followed by the 1947 expedition across the pacific ocean kon-tiki. the expedition, led by thor heyerdahl, aimed to prove the theory that the polynesian islands were populated by people from south america in pre-columbian times. the expedition took 101 days and sailed from the port of callao, peru to the raroia atoll, french polynesia.

astcelestialnavigationexamplevessel.jpg

notes: this example loosely recreates the expedition route. it takes some liberties to show the planetary ephemerides and eci to ecef transformation simply.

load vessel track

load the astkontikidata.mat file. it contains the ship trajectory, velocity, and course for this example. this file stores the latitude and longitude for the different track points in the variables "lat" and "long", respectively. the variables contain enough data for one track point per day from the port of callao to the raroia atoll. this file also stores values for each day's vessel velocity in knots per day "v" and course in deg "t".

load astkontikidata

create an observation structure

the nautical reduction process is a series of steps that a navigator follows to determine the latitude and longitude of the vessel. it is based on the theory described in the american practical navigator[1], the nautical almanac[2], and the explanatory supplement to the astronomical almanac[3]. the process uses observational data obtained from a sextant, clock, compass, and navigational charts. it returns the intercept (p) and true azimuth (z) for each of the observed objects. this example uses an observation structure array, obs, to contain the observational data. the fields for the structure array are:

  • h: height of eye level of the observer, in m.

  • ic: sextant's index correction, in deg.

  • p: local ambient pressure, in mb.

  • t: local temperature, in c.

  • year: local year at the time of the observation.

  • month: local month at the time of the observation.

  • day: local day at the time of the observation.

  • hour: local hour at the time of the observation.

  • utc: coordinated universal time for the observation, represented as a six element vector with year, month, day, hour, minutes, and seconds.

  • hs: sextant altitude of the celestial object above the horizon, in deg.

  • object: celestial object used for the measurement (i.e., jupiter, neptune, saturn, etc).

  • latitude: estimated latitude of the vessel at the time of the observation, in deg.

  • longitude: estimated longitude of the vessel at the time of the observation, in deg.

  • declination: declination of the celestial object, in deg.

  • altitude: distance from the surface of the earth to the celestial object, in km.

  • gha: greenwich hour angle, which is the angle in degrees of the celestial object relative to the greenwich meridian.

for simplicity, assume that all measurements are taken at the same location in the boat, with the same sextant, at the same ambient temperature and pressure:

obs.h = 4; 
obs.ic = 0; 
obs.p = 982;
obs.t = 15;

the expedition departed on april 28th 1947. as a result, initialize the structure for the observation for this date:

obs.year = 1947;
obs.month = 4; 
obs.day = 28;

initialize dead reckoning process for navigation

to start the dead reckoning process, define the initial conditions for the position of the vessel. store the latitude for a fixed solution for the latitude and longitude in the latfix and longfix variables, respectively. in this example, for the first fix location, use the latitude and longitude of callao, peru.

longfix = zeros(size(long));
latfix = zeros(size(lat));
longfix(1) = long(1);
latfix(1) = lat(1);

daily dead reckoning

for this example, assume that a fix is obtained daily using the observational data. therefore, this example uses a "for loop" for each observation. the variable m acts as a counter representing every elapsed day since the departure from the port.

for m = 1:size(lat,1)-1

increment the day and make day adjustments for the months of june and april, both of which have only 30 days.

    obs.day = obs.day   1;
    [obs.month,obs.day] = asthelperdaycheck(obs.year,obs.month,obs.day);

actual latitude and longitude

extract the vessel actual position for each day from the track points loaded earlier. the example uses this value to calculate the local time zone and the position of the selected planets in the sky.

    longactual = long(m 1);
    latactual = lat(m 1);

planet selection

select the planets for observation if they are visible to the vessel for the given latitude and longitude. the following code uses precalculated data.

    if longactual>-90
        obs.object = {'saturn';'neptune'};
    elseif longactual<=-90 && longactual>-95
        obs.object = {'saturn';'neptune';'jupiter'}; 
    elseif longactual<=-95
        obs.object = {'neptune';'jupiter'};
    end

utc time calculation

adjust local time to utc depending on the assumed longitude. for this example, assume that all observations are taken at the same time every day at 8 p.m. local time.

    obs.hour = 20;

for the dead reckoning process, update the observation structure with the estimate of the current location. in this case, the location is estimated using the previous fix, the vessel's velocity v, and course t.

    obs.longitude = longfix(m) (1/60)*v(m)*sind(t(m))/cosd(latfix(m));
    obs.latitude = latfix(m) (1/60)*v(m)*cosd(t(m));

adjust the local time to utc using the helper function asthelperlongitudehour. this function adjusts the utc observation time depending on the estimated longitude of the vessel.

    obs.utc = asthelperlongitudehour(obs);

sextant altitude calculation

for each of the planets, the asthelpernauticalcalculation helper function calculates the sextant measurement that the crew in the kon-tiki would have measured. this function models the actual behavior of the planets, while compensating for the local conditions. this function uses the planetary ephemeris and the eci to ecef transformation matrix. the analysis doesn't include planetary aberration, gravitational light deflection, and aberration of light phenomena.

    obs.hs = asthelpernauticalcalculation(obs,latactual,longactual);

calculate position

the following calculations replace the use of the nautical almanac. they include the use of the planetary ephemerides and the eci to ecef transformation matrix.

initialize declination, greenwich hour angle (gha), and altitude for the observed object.

    obs.declination = zeros(size(obs.hs));
    obs.gha = zeros(size(obs.hs));
    obs.altitude = zeros(size(obs.hs));

calculate the modified julian date for the measurement time.

    mjd = mjuliandate(obs.utc);

calculate the difference between ut1 and utc:

    dut1 = deltaut1(mjd,'action','none');

calculate the eci to ecef transformation matrix using the values of tai-utc (dat) from the u.s. naval observatory.

    dat = 1.4228180;
    tm = dcmeci2ecef('iau-76/fk5',obs.utc,dat,dut1);

calculate julian date for terrestrial time to approximate the barycentric dynamical time.

    jdtt = juliandate(obs.utc) (dat 32.184)/86400;

calculate declination, greenwich hour angle, and altitude for each of the celestial objects.

    for k =1:length(obs.object)

calculate the eci position for every planet.

        poseci = planetephemeris(jdtt,'earth',obs.object{k},'405','km');

calculate the ecef position of every planet.

        posecef = tm*poseci';

calculate the greenwich hour angle (gha) and declination using the ecef position.

        obs.gha(k) = -atan2d(posecef(2),posecef(1));
        obs.declination(k) = atan2d(posecef(3),sqrt(posecef(1)^2   ...
            posecef(2)^2));

calculate the distance from the surface of the earth to the center of the planet using the ecef to lla transformation function.

        poslla = ecef2lla(1000*posecef');
        obs.altitude(k) = poslla(3);
 
    end

sight reduction for planetary objects

reduce sight for each of the planets specified in the observation structure array.

    [p,z] = asthelpernauticalreduction(obs);

calculate the increments to the latitude and longitude from the last fix for the current fix using these equations. these equations are based on the nautical almanac.

    ap = sum(cosd(z).^2);
    bp = sum(cosd(z).*sind(z));
    cp = sum(sind(z).^2);
    dp = sum(p.*cosd(z));
    ep = sum(p.*sind(z));
    gp = ap*cp-bp^2;

calculate the increments for latitude and longitude according to the reduction.

    deltalongfix = (ap*ep-bp*dp)/(gp*cosd(latfix(m)));
    deltalatfix = (cp*dp-bp*ep)/gp;

after the increments for the latitude and longitude are calculated, add them to the estimated location, obtaining the fix for the time of observation.

    longfix(m 1) = obs.longitude   deltalongfix;
    latfix(m 1) = obs.latitude   deltalatfix;
end

navigation solution visualization

this figure shows the actual track and sight reduction solutions.

asthelpervisualization(long,lat,longfix,latfix,'plot')

figure contains an axes object. the axes object with xlabel longitude (deg), ylabel latitude (deg) contains 2 objects of type line. these objects represent track, reduction solution.

figure contains 2 axes objects. axes object 1 with title relative error in latitude and longitude, ylabel error in longitude (deg) contains an object of type line. axes object 2 with xlabel date [mm/dd], ylabel error in latitude (deg) contains an object of type line.

you can use the mapping toolbox to obtain a more detailed graph depicting the sight reduction solutions with the american continent and french polynesia.

if builtin('license','test','map_toolbox')
    asthelpervisualization(long,lat,longfix,latfix,'map')
end

figure contains an axes object. the axes object contains 544 objects of type patch, line, text.

the relative error in longitude and latitude is accumulated as the vessel sails from callao to raroia. this error is due to small errors in the measurement of the sextant altitude. for june 9th, the reduction method calculates a true azimuth (z) for neptune and jupiter. the true azimuths for neptune and jupiter are close to 180 deg apart. this difference causes a small peak in the relative error. this error, however, is still within the reduction method error boundaries.

references

[1] bowditch, n. the american practical navigator. national geospatial intelligence agency, 2012.

[2] united kingdom hydrographic office. nautical almanac 2012 commercial edition. paradise publications, inc. 2011.

[3] urban, sean e. and p. kenneth seidelmann. explanatory supplement to the astronomical almanac. 3rd ed., university science books, 2013.

[4] united states naval observatory.

see also

| | | |

related topics

    网站地图