array dimension change [message #63165] |
Tue, 28 October 2008 15:57 |
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
|
|
|