|
User Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox utcinfoinp.pro
utcinfoinp |
function utcinfoinp(juliandate, utcInfo) |
Input parameters to convert utc to ut1
Read the utc to ut1 information from the utcToUt1.dat file. The UTC_INFO structure will return the information needed to go from utc to UT1. the routine utcToUt1 converts from utc to ut1 using the information read in here into the UTC_INFO structure. The conversion algorithm is:
utcToUt1= ( offset + ((julDay - julDayAtOffset))*rateThe offset, rate, data are input from the utcToUt1.dat file.
The user passes in the julian date and the utcToUt1.dat file will be searched for the greatest julian date that is less than or equal to the date passed in. If all of the values are after the requested juliandate, the earliest value in the file will be used and and error will be returned.
Note: \@utc_info must be done before this function is called.
This code came from Phil Perillat at Arecibo. Local changes:
NOTE: The file is updated whenever a leap second occurs or whenever the drift rate changes (usually every 6 months or a year). If you have downloaded this file from ao, then you need to redownload the newer versions occasionally. Check the file aodefdir()/data/pnt/lastUpdateTmStamp for when your file was last updated.
Parameters | |
juliandate |
Julian date. |
utcInfo |
. |