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

Home » Public Forums » archive » IDL Array Indices Command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
IDL Array Indices Command [message #90648] Fri, 20 March 2015 05:51 Go to previous message
David B is currently offline  David B
Messages: 18
Registered: January 2015
Junior Member
Hello all,

I currently have an array:

IDL> help, cl_xy
CL_XY LONG = Array[2, 118090]

This array seems to be causing issues with the array indices command:

IDL> col_eight = FIX(DISTANCE_MEASURE(cl_xy, /MATRIX,MEASURE = 2), type = 3)

% Illegal subscript range: INDEX1.
% Execution halted at: CLOUDWALKER 979 /home/dbresnahan/idl/cloudroutines/cloudwalke
r/cloudwalker.pro
% $MAIN$

I am clearly missing something very obvious here. My array is correctly set up as a Long, so I am unsure as to what this issue is.

For the record my array is just a box of pixels where I am using the array_indices to implement a shortest path algorithm. Before someone shouts at me, I am exporting to Julia as it handles FOR loops much better than IDL and working my shortest path in there.

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: PLOT3D format input
Next Topic: assign an array to an element in another array

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

Current Time: Wed Oct 08 11:45:01 PDT 2025

Total time taken to generate the page: 0.00450 seconds