Last change
on this file since 127 was
127,
checked in by kodalazian, 10 years ago
|
add nemed buoys
|
-
Property svn:executable set to
*
|
File size:
402 bytes
|
Line | |
---|
1 | function [datejd]= convertjd(dategc) |
---|
2 | %dategd is a 1x6 row vector containing [year month day hour minute second] |
---|
3 | |
---|
4 | a = floor((14 - dategc(2))/12); |
---|
5 | y = dategc(1) + 4800 -a; |
---|
6 | m = dategc(2) + 12*a - 3; |
---|
7 | |
---|
8 | %absolute julian days |
---|
9 | datejdabs = dategc(3) + dategc(4)/24 + floor((153*m +2)/5) +365*y + floor(y/4) - floor(y/100) + floor(y/400) - 32045; |
---|
10 | |
---|
11 | %CNES julian days |
---|
12 | datejd = datejdabs -2400000.5 - 33282; |
---|
13 | |
---|
14 | |
---|
15 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.