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

Home » Public Forums » archive » Envi_get_slice error (subscript range error)
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
Envi_get_slice error (subscript range error) [message #74818] Thu, 03 February 2011 09:27
milan thapa is currently offline  milan thapa
Messages: 3
Registered: February 2011
Junior Member
Hello Everyone,

I am trying to loop through every pixel in the image to extract its
value. I have aimage of dimension 5035*5132.

I tried to use the envi_get_slice to extract the pixel values. Bu i
get the error that says

Subscript range values of the form low:high must be >= 0, < size, with
low <= high:
<FLOAT Array[5035]>.

My command is:

for i=0, (NumCols - 1) do begin
;print, i
for j=0, (NumRows - 1) do begin
; print, j
y_val=envi_get_slice(fid=fid1,line=j, xs=i, xe=i)

I have just started using IDL. So I maybe doing somthing very stupid.

Any help is much appreciated
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8 image function
Next Topic: Time to Fish or Cut Bait

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

Current Time: Wed Oct 08 13:36:51 PDT 2025

Total time taken to generate the page: 0.00531 seconds