From sierra_mtnview at sbcglobal.net Mon Apr 19 15:15:47 2010 From: sierra_mtnview at sbcglobal.net (Wayne Watson) Date: Mon, 19 Apr 2010 12:15:47 -0700 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? Message-ID: <4BCCABE3.7050300@sbcglobal.net> I'm looking for two functions to do the coordinate transformations in the Subject. Just those two. I don't need any others. -- 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 According to a very recent article in USA Today, 47% of households and individual do not pay federal taxes. In better times, it's about 38%. It's allowed under present laws. Google USA Today "when 47% don't" Web Page: From sierra_mtnview at sbcglobal.net Tue Apr 20 18:25:54 2010 From: sierra_mtnview at sbcglobal.net (Wayne Watson) Date: Tue, 20 Apr 2010 15:25:54 -0700 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? In-Reply-To: <4BCCABE3.7050300@sbcglobal.net> References: <4BCCABE3.7050300@sbcglobal.net> Message-ID: <4BCE29F2.7070803@sbcglobal.net> In view of the response to RA DEC <-> AZ EL Conversion above this message, it may look like the question is answered. I do have pyephem, but attempted to try it under Win7. It won't install. The author is working on it, but I've heard nothing more about it in the last several days. On 4/19/2010 12:15 PM, Wayne Watson wrote: > I'm looking for two functions to do the coordinate transformations in > the Subject. Just those two. I don't need any others. > > -- 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 According to a very recent article in USA Today, 47% of households and individual do not pay federal taxes. In better times, it's about 38%. It's allowed under present laws. Google USA Today "when 47% don't" Web Page: From peridot.faceted at gmail.com Tue Apr 20 23:46:29 2010 From: peridot.faceted at gmail.com (Anne Archibald) Date: Tue, 20 Apr 2010 23:46:29 -0400 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? In-Reply-To: <4BCCABE3.7050300@sbcglobal.net> References: <4BCCABE3.7050300@sbcglobal.net> Message-ID: On 19 April 2010 15:15, Wayne Watson wrote: > I'm looking for two functions to do the coordinate transformations in > the Subject. ?Just those two. I don't need any others. I think you will find that you need many other functions than just horizontal to equatorial: the transformation depends on LST, for example, which you will need to convert to or from GMT, and on latitude/longitude; you'll probably want to convert various coordinates between sexagesimal and radians or degrees; you may even find galactic coordinates useful. Just go with something like a python wrapper for SLALIB. If you really want just those two functions, if it's really essential to keep dependencies down at the cost of debugging pain, you can write such a function fairly easily by converting to a 3D vector representation and back. Good luck, Anne > ? ? ? ? ? ? ?According to a very recent article in USA Today, 47% > ? ? ? ? ? ? ?of households and individual do not pay federal taxes. > ? ? ? ? ? ? ?In better times, it's about 38%. It's allowed under > ? ? ? ? ? ? ?present laws. Google USA Today "when 47% don't" P.S. This is not a political forum. -A From cohen at lpta.in2p3.fr Wed Apr 21 09:45:28 2010 From: cohen at lpta.in2p3.fr (Johann Cohen-Tanugi) Date: Wed, 21 Apr 2010 15:45:28 +0200 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? In-Reply-To: References: <4BCCABE3.7050300@sbcglobal.net> Message-ID: <4BCF0178.5010000@lpta.in2p3.fr> hi Wayne, I am getting a bit lost in the reorganization of the sts software, and several cross-references from sts to scipy seem broken. Anyway, there is https://www.stsci.edu/trac/ssb/astrolib and inside you have the package coords, which was claimed to be a large port of the IDM astron library parts that deal with astronomical coordinates. I am not sure what the status of this is. Anyone on this list? best, Johann On 04/21/2010 05:46 AM, Anne Archibald wrote: > On 19 April 2010 15:15, Wayne Watson wrote: > >> I'm looking for two functions to do the coordinate transformations in >> the Subject. Just those two. I don't need any others. >> > I think you will find that you need many other functions than just > horizontal to equatorial: the transformation depends on LST, for > example, which you will need to convert to or from GMT, and on > latitude/longitude; you'll probably want to convert various > coordinates between sexagesimal and radians or degrees; you may even > find galactic coordinates useful. Just go with something like a python > wrapper for SLALIB. > > If you really want just those two functions, if it's really essential > to keep dependencies down at the cost of debugging pain, you can write > such a function fairly easily by converting to a 3D vector > representation and back. > > Good luck, > Anne > > >> According to a very recent article in USA Today, 47% >> of households and individual do not pay federal taxes. >> In better times, it's about 38%. It's allowed under >> present laws. Google USA Today "when 47% don't" >> > P.S. This is not a political forum. -A > _______________________________________________ > AstroPy mailing list > AstroPy at scipy.org > http://mail.scipy.org/mailman/listinfo/astropy > > From sierra_mtnview at sbcglobal.net Wed Apr 21 21:19:50 2010 From: sierra_mtnview at sbcglobal.net (Wayne Watson) Date: Wed, 21 Apr 2010 18:19:50 -0700 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? In-Reply-To: References: <4BCCABE3.7050300@sbcglobal.net> Message-ID: <4BCFA436.90008@sbcglobal.net> I may be wrong, but it looks like there are some fairly straightforward methods on the web for both methods. Here are two that I've taken note of. and . Both give the details. Another, , gives the details and performs an example calculation. See a few pages into it, around Figure 1.1.2. On 4/20/2010 8:46 PM, Anne Archibald wrote: > On 19 April 2010 15:15, Wayne Watson wrote: > >> I'm looking for two functions to do the coordinate transformations in >> the Subject. Just those two. I don't need any others. >> > I think you will find that you need many other functions than just > horizontal to equatorial: the transformation depends on LST, for > example, which you will need to convert to or from GMT, and on > latitude/longitude; you'll probably want to convert various > coordinates between sexagesimal and radians or degrees; you may even > find galactic coordinates useful. Just go with something like a python > wrapper for SLALIB. > > If you really want just those two functions, if it's really essential > to keep dependencies down at the cost of debugging pain, you can write > such a function fairly easily by converting to a 3D vector > representation and back. > > Good luck, > Anne > > >> According to a very recent article in USA Today, 47% >> of households and individual do not pay federal taxes. >> In better times, it's about 38%. It's allowed under >> present laws. Google USA Today "when 47% don't" >> > P.S. This is not a political forum. -A > > -- 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 According to a very recent article in USA Today, 47% of households and individual do not pay federal taxes. In better times, it's about 38%. It's allowed under present laws. Google USA Today "when 47% don't" Web Page: From laidler at stsci.edu Thu Apr 22 10:32:10 2010 From: laidler at stsci.edu (Victoria G. Laidler) Date: Thu, 22 Apr 2010 10:32:10 -0400 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? In-Reply-To: <4BCF0178.5010000@lpta.in2p3.fr> References: <4BCCABE3.7050300@sbcglobal.net> <4BCF0178.5010000@lpta.in2p3.fr> Message-ID: <4BD05DEA.9090700@stsci.edu> Hi all, Johann Cohen-Tanugi wrote: > hi Wayne, > > I am getting a bit lost in the reorganization of the sts software, and > several cross-references from sts to scipy seem broken. > Anyway, there is https://www.stsci.edu/trac/ssb/astrolib > and inside you have the package coords, which was claimed to be a large > port of the IDM astron library parts that deal with astronomical > coordinates. I am not sure what the status of this is. Anyone on this list? > I'm the primary developer of the Coords package. It's not in active development right now but what's there is stable. It doesn't presently provide transformation methods to and from altazimuth coordinates, but the Position.tpmstate() method does provide an "expert user" interface for the underlying TPM package, which does. You can see the API docs here: http://stsdas.stsci.edu/astrolib/coords_api/index.html I don't have the time right now to implement support for altaz coordinates, but if anyone else wants to do so we'll happily take a patch if it comes with tests. cheers, Vicki Laidler > On 04/21/2010 05:46 AM, Anne Archibald wrote: > >> On 19 April 2010 15:15, Wayne Watson wrote: >> >> >>> I'm looking for two functions to do the coordinate transformations in >>> the Subject. Just those two. I don't need any others. >>> >>> >> I think you will find that you need many other functions than just >> horizontal to equatorial: the transformation depends on LST, for >> example, which you will need to convert to or from GMT, and on >> latitude/longitude; you'll probably want to convert various >> coordinates between sexagesimal and radians or degrees; you may even >> find galactic coordinates useful. Just go with something like a python >> wrapper for SLALIB. >> >> If you really want just those two functions, if it's really essential >> to keep dependencies down at the cost of debugging pain, you can write >> such a function fairly easily by converting to a 3D vector >> representation and back. >> >> Good luck, >> Anne >> >> From cohen at lpta.in2p3.fr Thu Apr 22 10:57:52 2010 From: cohen at lpta.in2p3.fr (Johann Cohen-Tanugi) Date: Thu, 22 Apr 2010 16:57:52 +0200 Subject: [AstroPy] Python Functions for Horizontal to Equatorial and vice versa? In-Reply-To: <4BD05DEA.9090700@stsci.edu> References: <4BCCABE3.7050300@sbcglobal.net> <4BCF0178.5010000@lpta.in2p3.fr> <4BD05DEA.9090700@stsci.edu> Message-ID: <4BD063F0.4050305@lpta.in2p3.fr> thanks Vicki. What is the status of astrolib? It does not seem to make it to the front page of the stsci web site.... best, Johann On 04/22/2010 04:32 PM, Victoria G. Laidler wrote: > Hi all, > > Johann Cohen-Tanugi wrote: >> hi Wayne, >> >> I am getting a bit lost in the reorganization of the sts software, >> and several cross-references from sts to scipy seem broken. >> Anyway, there is https://www.stsci.edu/trac/ssb/astrolib >> and inside you have the package coords, which was claimed to be a >> large port of the IDM astron library parts that deal with >> astronomical coordinates. I am not sure what the status of this is. >> Anyone on this list? > I'm the primary developer of the Coords package. It's not in active > development right now but what's there is stable. It doesn't presently > provide transformation methods to and from altazimuth coordinates, but > the Position.tpmstate() method does provide an "expert user" interface > for the underlying TPM package, which does. You can see the API docs > here: > http://stsdas.stsci.edu/astrolib/coords_api/index.html > > I don't have the time right now to implement support for altaz > coordinates, but if anyone else wants to do so we'll happily take a > patch if it comes with tests. > > cheers, > Vicki Laidler > >> On 04/21/2010 05:46 AM, Anne Archibald wrote: >>> On 19 April 2010 15:15, Wayne Watson >>> wrote: >>>> I'm looking for two functions to do the coordinate transformations in >>>> the Subject. Just those two. I don't need any others. >>> I think you will find that you need many other functions than just >>> horizontal to equatorial: the transformation depends on LST, for >>> example, which you will need to convert to or from GMT, and on >>> latitude/longitude; you'll probably want to convert various >>> coordinates between sexagesimal and radians or degrees; you may even >>> find galactic coordinates useful. Just go with something like a python >>> wrapper for SLALIB. >>> >>> If you really want just those two functions, if it's really essential >>> to keep dependencies down at the cost of debugging pain, you can write >>> such a function fairly easily by converting to a 3D vector >>> representation and back. >>> >>> Good luck, >>> Anne >>> >