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

Home » Public Forums » archive » REFORM: new subscripts must not change the number elements in array
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
REFORM: new subscripts must not change the number elements in array [message #77953] Sat, 15 October 2011 04:34
eva.ivits-wasser is currently offline  eva.ivits-wasser
Messages: 8
Registered: October 2011
Junior Member
Good day,

I have a 3D array of
ts=Int[1194,12,686]

It's an image with 1194 columns, 12 bands and 686 lines.

I'm running REFORM on the transposed array but get the well known
error message:
"REFORM: New subscripts must not change the number elements in
<INT Array[1194, 686, 12]>"

This is what I'm doing:
tr=reform(transpose(ts,[0,2,1]),ns*nl,nb)

i.e. first I transpose the lines onto the second dimension and then
create "tr" so that it is a 2D array of ns*nl (1194*686) and nb (12).

Why isn't it working?

I'm desparate....pls help!

Thanks,

Eva
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: color the shaded relif image
Next Topic: Plotting 3D array as a 'cloud'

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

Current Time: Wed Oct 08 13:39:58 PDT 2025

Total time taken to generate the page: 0.00537 seconds