[AstroPy] Back to Python. Precession and PhysConst code.

Wayne Watson sierra_mtnview at sbcglobal.net
Wed Jan 25 17:02:18 EST 2012


OK, how do I untar it Win7? Ah, good fortune. I have MinGW (gfortran) 
that has a linux-like shell, and has tar.

Is there a description of the module's contents?

On 1/25/2012 1:41 PM, Russell Owen wrote:
> No, it's a cross-platform unix/mac/windows package. It uses Python's older standard installation system (one that precedes easy_install).
>
> In windows I believe you go to the command line, cd to the package directory and type "setup.py install". On any other system you type "python setup.py install".
>
> -- Russell
>
> On Jan 25, 2012, at 12:59 PM, Wayne Watson wrote:
>
>> So it's a Linux application?  No msi or zip?  Never used distutils.  Sounds hairy.
>>
>> I have the fortran version, so maybe I'll try that.  What I liked about the py program is that it had a test inside it.
>>
>> On 1/25/2012 12:22 PM, Russell Owen wrote:
>>> Yes to all that. It is pure python. Install it using distutils as usual.
>>>
>>> -- Russell
>>>
>>> On Jan 25, 2012, at 11:45 AM, Wayne Watson wrote:
>>>
>>>> Thanks, but it looks like your PyPI is in a tar file. I'm using Win7.  RO 2.9.3 is a download.  I see some refs to Win, but I'm not sure what to make of them.
>>>>
>>>> On 1/25/2012 9:34 AM, Russell Owen wrote:
>>>>> You have an incomplete package. Download RO from PyPI. The stuff you are looking for is in RO.Astro. euler is included in the package.
>>>>>
>>>>> -- Russell
>>>>>
>>>>> On Jan 24, 2012, at 8:29 PM, Wayne Watson wrote:
>>>>>
>>>>>> It's been quite awhile since I used python, but I was digging around on
>>>>>> PC for something on precession, and discovered some code for it,
>>>>>> prec.py.   Here are the first few lines.
>>>>>>
>>>>>> #!/usr/bin/env python
>>>>>> """
>>>>>> History:
>>>>>> P.T.Wallace   Starlink   10 July 1994
>>>>>> 2002-07-08 ROwen    Converted to Python.
>>>>>> 2007-04-24 ROwen    Converted from Numeric to numpy (in test code).
>>>>>> """
>>>>>> import RO.PhysConst
>>>>>> from euler import *
>>>>>> ...
>>>>>> ...
>>>>>>
>>>>>> It dies on RO.PhysConst when I run it.  Probably a further difficulty is
>>>>>> the euler reference.
>>>>>> I have the code for RO.PhysConst.py
>>>>>>
>>>>>> What needs to be done to successfully execute prec.py?
>>>>>>
>>>>>> -- 
>>>>>>             Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>>>>>
>>>>>>               (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>>>>>                Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>>>>>
>>>>>>                       In 2904 there will be 5 solar eclipses.
>>>>>>                       On July 16, 2185 the longest solar
>>>>>>                       eclipse inf 5k years will occur, 7 min.
>>>>>>
>>>>>>                      Web Page:<www.speckledwithstars.net/>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> AstroPy mailing list
>>>>>> AstroPy at scipy.org
>>>>>> http://mail.scipy.org/mailman/listinfo/astropy
>>>> -- 
>>>>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>>>
>>>>              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>>>               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>>>
>>>>                      In 2904 there will be 5 solar eclipses.
>>>>                      On July 16, 2185 the longest solar
>>>>                      eclipse inf 5k years will occur, 7 min.
>>>>
>>>>                     Web Page:<www.speckledwithstars.net/>
>>>>
>>>>
>> -- 
>>            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>>              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>
>>                      In 2904 there will be 5 solar eclipses.
>>                      On July 16, 2185 the longest solar
>>                      eclipse inf 5k years will occur, 7 min.
>>
>>                     Web Page:<www.speckledwithstars.net/>
>>
>>
>

-- 
            Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

                      In 2904 there will be 5 solar eclipses.
                      On July 16, 2185 the longest solar
                      eclipse inf 5k years will occur, 7 min.

                     Web Page:<www.speckledwithstars.net/>





More information about the AstroPy mailing list