Dear Thomas,
I found your Python code RVCorrect.py on the Internet and have a question about the accuracy of the result and another one about the sign of the geographical length of the observation site.
First of all, I searched the IRAF. net forum for an example that was calculated with IRAF: http://iraf.net/forum/viewtopic.php?showtopic=138738
The example was:
The object: (year, month, day, UT, RA, DEC) 2007 4 30 08:41:59 15:46:43 37:49:45:45
latitude = 19:49.7
longitude = 155:28.7 !!!! sign wrong ???
altitude = 4160.
The result of IRAF (Frank Valdes):
HJD VOBS VHELIO VLSR VDIURNAL VLUNAR VANNUAL VS. SOLAR
2454220.86577 0.00 0.54 17.96 0.239 -0.002 0.299 17.428
Then I calculated the same example with your code
and I received the following result:
VOBS: 0.000000 km. s-1
HJD: 2454220.865771
VHELIO: 0.566202 km. s-1
VLSR: 18.003718 km. s-1
VDIURNAL: 0.239563 km. s-1
VLUNAR: -0.002047 km. s-1
VANNUAL: 0.328686 km. s-1
VSOLAR: 17,437515 km. s-1
The difference between the two calculations is 0.566-0.54 = 0,026km/sec.
Do you know the reason for this discrepancy?
I have also done a comparison calculation with barycorr
http://astroutils.astronomy.ohio-state.edu/exofast/barycorr.html
Here is the result: 567.467035794 m/sec. The difference in this case is only 1.265 m/sec !!
The problem, however, is that the sign of longitude has to be accepted positively for this result.
Is that correct?
Thank you in advance for your effort
Klaus
Dear Thomas,
I found your Python code RVCorrect.py on the Internet and have a question about the accuracy of the result and another one about the sign of the geographical length of the observation site.
First of all, I searched the IRAF. net forum for an example that was calculated with IRAF: http://iraf.net/forum/viewtopic.php?showtopic=138738
The example was:
The object: (year, month, day, UT, RA, DEC) 2007 4 30 08:41:59 15:46:43 37:49:45:45
latitude = 19:49.7
longitude = 155:28.7 !!!! sign wrong ???
altitude = 4160.
The result of IRAF (Frank Valdes):
HJD VOBS VHELIO VLSR VDIURNAL VLUNAR VANNUAL VS. SOLAR
2454220.86577 0.00 0.54 17.96 0.239 -0.002 0.299 17.428
Then I calculated the same example with your code
and I received the following result:
VOBS: 0.000000 km. s-1
HJD: 2454220.865771
VHELIO: 0.566202 km. s-1
VLSR: 18.003718 km. s-1
VDIURNAL: 0.239563 km. s-1
VLUNAR: -0.002047 km. s-1
VANNUAL: 0.328686 km. s-1
VSOLAR: 17,437515 km. s-1
The difference between the two calculations is 0.566-0.54 = 0,026km/sec.
Do you know the reason for this discrepancy?
I have also done a comparison calculation with barycorr
http://astroutils.astronomy.ohio-state.edu/exofast/barycorr.html
Here is the result: 567.467035794 m/sec. The difference in this case is only 1.265 m/sec !!
The problem, however, is that the sign of longitude has to be accepted positively for this result.
Is that correct?
Thank you in advance for your effort
Klaus