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

Home » Public Forums » archive » array dimension change
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
array dimension change [message #63165] Tue, 28 October 2008 15:57
xiao zhang is currently offline  xiao zhang
Messages: 81
Registered: June 2008
Member
Hi~ guys~ I have a question here. I wrote a small program like the
following, but why the two print statement print out the same thing?
It is suppose to print out the different elements because i know the
contents are different in the original array. I can name another
array with same dimension and do the same thing , then it works, the
elements changed , but why it did not change as the following?
Many Thanks~


soilw00 = Read_Binary('/nas/rstor6/xzhang/RAMS/build/60/soil/AVNdat/fh .
0024_tl.press_gr.onedeg.SoilW', Data_Type = 4, Data_Dims =
[360,181,4])

help,soilw00

print, soilw00(265:325,110:130,0)

for kk=0,4-1 do begin
for jj=0,181-1 do begin
for ii=0,360-1 do begin
soilw00(ii,jj,kk)=soilw00(359-ii,jj,kk)
endfor
endfor
endfor

print,'new value'

print,soilw00(265:325,110:130,0)

end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multiple click region growing
Next Topic: Re: DLM unload

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

Current Time: Wed Oct 08 19:41:54 PDT 2025

Total time taken to generate the page: 0.00448 seconds