Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Elaina Ann Hyde
On Tue, Feb 14, 2012 at 1:38 PM, Andre' Walker-Loud wrote: > Hi Elaina, > > just reading your question (and responses). There is an issue with what > you wrote in the email, which may help. > > > for row in dat: > > > > gcoords=ICRSCoordinates(dat['ra-drad'],dat['dec-drad'],radians=True).conver

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Mark Lawrence
On 13/02/2012 23:50, Elaina Ann Hyde wrote: Hi, I'm working on a routine for reading in the Schlegel dustmaps. I have an ascii table with values, Ra-Dec and I'm trying to convert 2 columns to l,b and get the dust values out, this is a 2 part problem as I need to first convert to l,b, keep those

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Andre' Walker-Loud
Hi Elaina, just reading your question (and responses). There is an issue with what you wrote in the email, which may help. > for row in dat: > > gcoords=ICRSCoordinates(dat['ra-drad'],dat['dec-drad'],radians=True).convert(GalacticCoordinates) This line is identical to the one that broke

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Martin A. Brown
Greetings Elaina, I will echo Alan's remarks--it sounds like you are using a quite specialized (specialised?) module. It is certainly not a module with which I am familiar, not in the standard library, and not a commonly encountered problem. I would classify this module as domain-specific.

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Elaina Ann Hyde
On Tue, Feb 14, 2012 at 11:52 AM, Alan Gauld wrote: > On 13/02/12 23:50, Elaina Ann Hyde wrote: > >> Hi, I'm working on a routine for reading in the Schlegel dustmaps. I >> have an ascii table with values, Ra-Dec and I'm trying to convert 2 >> columns to l,b and get the dust values out, this is a

Re: [Tutor] Request for advice on Python code

2012-02-13 Thread Alan Gauld
On 13/02/12 23:50, Elaina Ann Hyde wrote: Hi, I'm working on a routine for reading in the Schlegel dustmaps. I have an ascii table with values, Ra-Dec and I'm trying to convert 2 columns to l,b and get the dust values out, this is a 2 part problem as I need to first convert to l,b, keep those va