Advantage of using NERS with a browser: you see what you get.
Disadvantage of using NERS client library: usually you need the Earth orientation parameters for computations.
UTC minus TAI: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=utcmtai' |
UT1 minus TAI: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=ut1mtai' |
X pole coordinate: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=xpol' |
Y pole coordinate: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=ypol' |
Δψ nutation angle: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=dpsi' |
Δε nutation angle: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=deps' |
UT1 rate: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=ut1rat' |
X pole rate: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=xpolr' |
Y pole rate: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=ypolr' |
Length of day: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=lod' |
Euler angle axis 1: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=e1' |
Euler angle axis 2: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=e2' |
Euler angle axis 3: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=e3' |
Rotation matrix: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=mat' |
Rotation matrix rate: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=matr' |
Rotation matrix accl: | wget -q -O - 'http://earthrotation.net/cgi-bin/eop_online.py?req_date=now¶m=matrr' |
Value of parameter req_date can be replaced to the date string that is ISO 8601 compatible, i.e. in format YYYY.mm.ddTHH:MM:SS.SSSSS, for instance 20110.04.19T08:19:15.545
Advantage of using NERS as an Internet Service: you can include calls to internet service in your program
Disadvantage of using NERS as an Internet Service: Internet service is rather slow.
You nerd insert three calls to your program
ners_init ( config_file, ners, time_tai_start, time_tai_stop, iuer )
— initialization of the ners object using configuration parameters
from the config file, start and stop time.
ners_get_eop ( ners, time_tai, cpar, m_par, l_par, pars, iuer )
— return an array of Earth orientation parameters cpar on the specified
time.
ners_quit ( code, ners )
— release dynamic memory allocated by ners.
Advantage of using NERS client library: it is very fast serve in your program.
Disadvantage of using NERS client library: you need to know how to program.