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 
Switch to threaded view of this topic Create a new topic Submit Reply
the sky is falling down again [message #52378] Tue, 30 January 2007 05:20 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi all

here is another example which is very funny if you see it the first time

a=indgen(10)*1D-7
b=a
plot,a,b,psym=1
oplot,[0,10],[0,10]

because the coordination system is defined by plot it could be a bug too
and not only a question about precisions


Any idea what is happen here?

Cheers
Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: the sky is falling down again [message #52414 is a reply to message #52378] Thu, 01 February 2007 12:13 Go to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
In article <pan.2007.02.01.19.10.01.382641@as.arizona.edu>,
JD Smith <jdsmith@as.arizona.edu> wrote:

>> 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

It hadn't occurred to me because it has been in my startup.pro since I
first learned about system variables, which was way before I would have
thought of asking RSI (I mean IITVIS) to change (gasp!) IDL.

I'll submit a feature request. Additional requests from out there in
userland might well improve the probability of success. ;-)

Ken
Re: the sky is falling down again [message #52416 is a reply to message #52378] Thu, 01 February 2007 11:10 Go 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
Re: the sky is falling down again [message #52417 is a reply to message #52378] Thu, 01 February 2007 11:06 Go to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
<meinel@aero.org> wrote in message
news:1170356284.063756.259710@a75g2000cwd.googlegroups.com.. .
> But in this case, all I did was change the x- and y-style on the plot:
>
> a=indgen(10)*1D-7
> b=a
> plot,a,b,psym=1, xstyle=2, ystyle=3
>
> No overplotting of relatively large values here. Why does that give me
> a bad plot?


what's wrong with this plot?
Re: the sky is falling down again [message #52433 is a reply to message #52378] Wed, 31 January 2007 13:56 Go to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
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.

Ken
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Fri Oct 10 08:20:15 PDT 2025

Total time taken to generate the page: 0.48215 seconds