comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » the sky is falling down again
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: the sky is falling down again [message #52416 is a reply to message #52378] Thu, 01 February 2007 11:10 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 31 Jan 2007 15:56:50 -0600, Kenneth Bowman wrote:

> In article <pan.2007.01.31.20.17.22.400474@as.arizona.edu>,
> JD Smith <jdsmith@as.arizona.edu> wrote:
>
>> On Wed, 31 Jan 2007 11:30:57 -0700, David Fanning wrote:
>>
>>> Where else can people go when they want
>>> to count angles on the head of a pin? :^)
>>
>> I prefer counting them in radians, because !RADEG is single precision
>> floating point.
>
> Thanks for chaffing David, JD. I refrained. ;-)
>
> IDL has a built-in double precision value of Pi, so I include
>
> DEFSYSV, '!DDTOR', !DPI/180.0D, 1
> DEFSYSV, '!DRADEG', 180.0D/!DPI, 1
>
> in my startup.pro.


Good idea. I'm always starting programs with RADEG=180.D/!DPI, but a
SYSVAR is a better idea. Come to think of it, why don't you suggest
to ITTVIS to add those? It's a rare coordinate calculation in
astronomy that doesn't require double float precision in radians.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: the sky is falling down again
Next Topic: [Q]QHULL in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 07:44:04 PDT 2025

Total time taken to generate the page: 1.76203 seconds