source: altifloat/nemed/convertjd.m~ @ 199

Last change on this file since 199 was 127, checked in by kodalazian, 10 years ago

add nemed buoys

  • Property svn:executable set to *
File size: 388 bytes
Line 
1function [datejd]= convertjd(dategc)
2%dategd is a 1x6 row vector containing [year month day hour minute second]
3
4a = mod(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 + mod(153*m +2,5) +365*y + mod(y,4) - mod(y,100) + mod(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.