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

Home » Public Forums » archive » help with imdisp
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
help with imdisp [message #80635] Wed, 27 June 2012 13:29
Kyle Schindler is currently offline  Kyle Schindler
Messages: 3
Registered: June 2012
Junior Member
Hi,
I am new to IDL I only have a few weeks experiance.
I have an array ch1,ch2,ch3, and ch4 each are from a FITS file which is ch1 FLOAT = Array[1763, 1957]
I am trying to cancel out the background noise then use impdisp to display ch1/ch2, ch3/ch4 ect..

I first use where to subtract out the noise

ch10 = where(ch1 gt .01)
values = ch1[ch10]; now this gives me a new array
;VALUES FLOAT = Array[701724]
;For imdisp to work I need need to have a two dimension array.
;so I use
makech12d = array_indices(ch1,values)
;MAKECH12D LONG = Array[2, 701724]
;This prints out basically all zeros and a few ones the 2nd column is all zeros
; first column is all whole #'s even if its float
;I did this with ch3 and used this code
b = makech32d/makech12d
impdisp,b(x1-nx:x1+nx,y1-ny:y1+ny),range=[-2.0,2],channel=1, margin=0.02
% Illegal subscript range: B.


how can I get the array values to be an array that is closer to [1763, 1957] rather than [2, 701724] and fix my error
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Problem in reading binary file
Next Topic: WHERE routine

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

Current Time: Wed Oct 08 13:47:28 PDT 2025

Total time taken to generate the page: 0.00402 seconds