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

Home » Public Forums » archive » Array subscript for ARRAY must have same size as source expression
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Array subscript for ARRAY must have same size as source expression [message #90688] Fri, 27 March 2015 04:36 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hello

I have the following code:

ArrayNEW = ArrayDATA

FOR i=0, n-1 do begin
A1[i,*,*] = A1_tmp
A2[i,*,*] = A2_tmp
ArrayNEW[i,*,*] = calculate(A1_tmp,A2_tmp,ArrayDATA[i,*,*])
endfor

The dimensions of the arrays are as follow:
A1_tmp FLOAT = Array[120, 4, 4]
A2_tmp FLOAT = Array[120, 4, 4]
ArrayDATA FLOAT = Array[120, 216, 216]
ArrayNEW FLOAT = Array[120, 216, 216]

calculate - it's a function which takes those arguments and interpolate the A1_tmp,A2_tmp to have the same dimensions as ArrayDATA.

As I send these arguments to the function why they should have the same dimensions?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Draw a circle enclosed to the other
Next Topic: Translating a Python program to IDL

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

Current Time: Wed Oct 08 15:11:35 PDT 2025

Total time taken to generate the page: 0.00372 seconds