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

Home » Public Forums » archive » help with saving jpeg forms in loops
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
help with saving jpeg forms in loops [message #90902] Mon, 11 May 2015 10:38 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
Hi

I have an Array=[120]. I wanted to store my images in a jpeg form so I typed the following code.

Array = ArrayNew(ArrayOLD, S, time)
for i=0L,Nt-1 do begin
images_JPEG, REFORM(Array[i,*,*]),('(2,'+string(i,format='(i3.3)')+').jpe g')
endfor

Now I added one more loop which is looping over the trials. When I typed the following it's overwritten in each trial (I expected that).

for trial=1L, 3 do begin
Array = ArrayNew(ArrayOLD, S, time)
for i=0L,Nt-1 do begin
images_JPEG, REFORM(Array[i,*,*]),('(2,'+string(i,format='(i3.3)')+').jpe g')
endfor
endfor

I tried few things but I couldn't manage to store my images in each trial (3 trials) for each time point (120).

Can anyone please help with that?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FL website moved
Next Topic: Plot southern coordinates in northen map

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

Current Time: Wed Oct 08 11:48:26 PDT 2025

Total time taken to generate the page: 0.00405 seconds