Matt wrote:
<snip all>
In a cell you would use:
=Convert_RA2DecDeg("03 00 00","HH MM SS","double")
I suggest you use a hybrid of "OG" and Greg's suggestions. When
dividing to make hours and minutes uniform to decimal degrees, remember
that a arcminute and arcsecond of right ascension and an arcminute and
arcsecond of declination do not have the same value.
For right ascension -
360 deg = 24 hours
15 deg = 1 hour
15 deg = 60 arcminutes
1 deg = 4 arcminutes
1/4 deg = 1 arcminute
1/4 deg = 60 arcseconds
1/4 * 1/60 deg = 1 arcsecond
0.004167 deg = 1 arcsecond
There are 15 degrees in an hour of right ascension (360 degrees / 24
hours ra).
There are 0.25 degrees in an arcminute of right ascension ( ( 15
degrees / 1 hour ra) / ( 60 arcmins / 1 hour ra) = 0.25 degrees)
There are 0.004167 degrees in an arcsecond of right ascension ( ( 15
degrees / 1 hour ra) / ( 3600 arcseconds / 1 hour ra) = 0.004167
degrees)
So to convert from ra to decimal degrees, you might use something like:
= (iHours * 15) + (iMin * 0.25) + (dSec * 0.004167)
or
= (iHours * 15) + (iMin * 0.25) + ( ( dSec * 15) / 3600 )
In declination, the values are:
360 deg = 360 degrees
1 deg = 1 deg
1 deg = 60 arcminutes
1/15 deg = 1 arcminute
1 arcminute = 60 arcseconds
1/15 deg = 60 arcseconds
1 ( 15 * 60 ) = 1 arcsecond
0.000278 deg = 1 arcsecond
Verses in declination, there are 0.01667 degrees in an arcminute of
declination ( 1 deg / 60 arcminutes = 0.01667 degrees).
Verses in declination, there are 0.000278 degrees in an arcsecond of
declination ( 1 deg / 3600 arcseconds = 0.000278 degrees).
To convert declination to decimal degrees you might use something like:
= Round(((iDeg + (iMin / 60) + (dSec / 3600)) * iSign), 6)
The Excel function to extract the middle of a string is "MID"; to
convert the string to a value is (Value), e.g. -
=MID("00 03 00",4,2) yields "03"
=Value(MID("00 03 00",4,2)) yields 3.0
Hope that helps.
- Canopus56
P.S. -
The main books on astronomical algorithms are:
Duffet-Smith1988: Duffet-Smith, P. 1988 (3ed). Practical Astronomy with
Your Calculator. Cambridge Press.
http://www.willbell.com/
http://adsabs.harvard.edu/cgi-bin/np...1988QB62.5.D83.....
Meeus, J. 1998. 2ed. Astonomical Algorithms. Willmann-Bell. ISBN
0-943396-61-
http://www.willbell.com/
Montenbruck, Oliver. 1989. Practical ephemeris calculations.
Springer-Verlag.
Duffet-Smith can usually be found in local libraries; Meeus and
Montenbruck at university libraries.