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

Home » Public Forums » archive » WHERE problems (longish)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
WHERE problems (longish) [message #35914] Tue, 22 July 2003 08:23 Go to previous message
Benjamin Panter is currently offline  Benjamin Panter
Messages: 6
Registered: August 2002
Junior Member
Hiya,

This is puzzling me, and I've been through all that I can think of. I
have a look up table called "dust_lookup". It is a 2 x 300ish array and
has wavelengths and the corresponding correction factor. I need to pluck
a few values out, so I'm using where:

print, where(2900. eq reform(dust_lookup[*,0]))

which works absolutly fine for most values: unfortunatly not for all:

If I write a little test:

PRO tester, dust_lookup

print, where(2900. eq reform(dust_lookup[*,0]))
print, where(2920. eq reform(dust_lookup[*,0]))
print, where(2940. eq reform(dust_lookup[*,0]))
print, where(2960. eq reform(dust_lookup[*,0]))
print, where(2980. eq reform(dust_lookup[*,0]))
print, where(3000. eq reform(dust_lookup[*,0]))
print, where(3020. eq reform(dust_lookup[*,0]))
print, where(3040. eq reform(dust_lookup[*,0]))
print, where(3060. eq reform(dust_lookup[*,0]))
print, where(3080. eq reform(dust_lookup[*,0]))
print, where(3100. eq reform(dust_lookup[*,0]))

END

it comes out with

IDL> tester, dust_lookup
10
11
12
13
-1
-1
-1
17
18
19
20

The values which have -1 certainly exist - and were generated in exactly
the same way as the others. I've put the array online if anyone fancies
looking at it - http://www.roe.ac.uk/~bdp/where_problem.idl

Am I being stupid again? What is special about 2980,3000 and 3020??

Cheers,

Ben

--
Ben Panter, Edinburgh
My name (no spaces)@bigfoot which is a com.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: questions onn symbol and fonts
Next Topic: File Delete -- Friggin A!!

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

Current Time: Wed Oct 08 15:56:18 PDT 2025

Total time taken to generate the page: 0.00466 seconds