source: altifloat/nemed/convertjd.m @ 127

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 
1function [datejd]= convertjd(dategc)
2%dategd is a 1x6 row vector containing [year month day hour minute second]
3
4a = floor((14 - dategc(2))/12);
5y = dategc(1) + 4800 -a;
6m = dategc(2) + 12*a - 3;
7
8%absolute julian days
9datejdabs = 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
12datejd = datejdabs -2400000.5 - 33282;
13
14
15end
Note: See TracBrowser for help on using the repository browser.