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

Home » Public Forums » archive » idl save
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
idl save [message #94659] Tue, 08 August 2017 06:11 Go to next message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
Hi, I write this program,

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
restore,file='result.sav';,/v
n=50
xs=225 & ys=507
for i=0,n-1 do begin
x=xs+i & y=ys+i
IC=stokesout[0]
x1=stokesout[2]/IC
x2=stokesout[3]/IC
save,x,y,x1,x2,file=out.sav'
endfor
end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

my question is how can I make name out.sav changed to out_1.sav, out_2.sav, ................. out_50.sav by using iteration i
Re: idl save [message #94660 is a reply to message #94659] Tue, 08 August 2017 06:39 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
save,x,y,x1,x2,file='out_'+strtrim(i,2)+'.sav'

Cheers,
Helder

On Tuesday, August 8, 2017 at 3:11:35 PM UTC+2, AGW wrote:
> Hi, I write this program,
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> restore,file='result.sav';,/v
> n=50
> xs=225 & ys=507
> for i=0,n-1 do begin
> x=xs+i & y=ys+i
> IC=stokesout[0]
> x1=stokesout[2]/IC
> x2=stokesout[3]/IC
> save,x,y,x1,x2,file=out.sav'
> endfor
> end
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> my question is how can I make name out.sav changed to out_1.sav, out_2.sav, ................. out_50.sav by using iteration i
Re: idl save [message #94661 is a reply to message #94659] Tue, 08 August 2017 07:47 Go to previous message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
On Tuesday, August 8, 2017 at 3:11:35 PM UTC+2, AGW wrote:
> Hi, I write this program,
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> restore,file='result.sav';,/v
> n=50
> xs=225 & ys=507
> for i=0,n-1 do begin
> x=xs+i & y=ys+i
> IC=stokesout[0]
> x1=stokesout[2]/IC
> x2=stokesout[3]/IC
> save,x,y,x1,x2,file=out.sav'
> endfor
> end
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
>
> my question is how can I make name out.sav changed to out_1.sav, out_2.sav, ................. out_50.sav by using iteration i

Thanks very much
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: a little tip for reading modis data
Next Topic: face detection (via Python bridge)

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

Current Time: Wed Oct 08 07:23:30 PDT 2025

Total time taken to generate the page: 0.00450 seconds