varying image names in a loop
Eric Altshuler
ela at COLA.IGES.ORG
Mon May 11 18:12:11 EDT 2009
Hello Mario,
This is easy to do. Just set up a loop in your script like this (I assume you have already assigned a value for n):
i=1
while (i<=n)
...
...
'enable print plot'i'.gmf'
...
...
'print'
'disable print'
i=i+1
endwhile
This will generate a sequence of plots named plot1.gmf, plot2.gmf, ..., plotn.gmf
Best regards,
Eric L. Altshuler
Assistant Research Scientist
Center for Ocean-Land-Atmosphere Studies
4041 Powder Mill Road, Suite 302
Calverton, MD 20705-3106
USA
E-mail: ela at cola.iges.org
Phone: (301) 902-1257
Fax: (301) 595-9793
----- Original Message -----
From: "Mario Caffera" <rmcaffera at YAHOO.COM>
To: GRADSUSR at LIST.CINECA.IT
Sent: Monday, May 11, 2009 9:45:47 AM GMT -05:00 US/Canada Eastern
Subject: varying image names in a loop
Hello
I'm trying to include the changing names of the images created in a loop.
How is the way to include the changing paramenter i of the for (for=i:1,n)
into the name of the figure? I uses "enable print blabla.gmf" in order to output the image files of my maps. My problem is to find the way to include this varying i in the "blabla".
best regards and thank you in advance
mario caffera
--- On Fri, 5/8/09, M.Mahakur <mmahakur at TROPMET.RES.IN> wrote:
> From: M.Mahakur <mmahakur at TROPMET.RES.IN>
> Subject: Re: Isolines in station data
> To: GRADSUSR at LIST.CINECA.IT
> Date: Friday, May 8, 2009, 5:20 AM
> Hello,
>
> You can do this after converting to gridded data using
> in-built 'oacres' function.
>
> Regards,
>
> Mahakur
>
> ---------- Original Message -----------
> From: Piotr Djaków <pdjakow at GMAIL.COM>
> To: GRADSUSR at LIST.CINECA.IT
> Sent: Fri, 8 May 2009 08:46:11 +0200
> Subject: Isolines in station data
>
> > Hello
> >
> > Is there any method to create isolines/shaded map from
> station data?
> > If yes, then how can i do that? Any idea?
> >
> > Best Regards
> > Piotr Djakow
> ------- End of Original Message -------
More information about the gradsusr
mailing list