NetCDF issue?

Matt Alonso matt.alonso at GMAIL.COM
Mon Mar 17 13:38:02 EDT 2008


Hi Stephen,

I am actually doing just what you said in terms of using 'set dfile [n]' and
looping over it that way similar to the code below:

num_files=4
i=1
'set lat [x]'
'set lon [y]'
'set t 1 61'
while (i<num_files)
  'set dfile 'i
  'd smth9(mag(ugrd_surface,vgrd_surface)*1.9)'

  i=i+1
endwhile

I did not try the first method you spoke of 'd var.2'; I might give that a
whirl.  It is worth noting that GrADS 1.8S11 runs this script exactly as
expected.

I will write a response to Jennifer's email in a second.

Cheers,
Matt

On Mon, Mar 17, 2008 at 12:24 AM, Stephen R McMillan <
smcmillan at planalytics.com> wrote:

>
> Matt,
> Are you indexing the variables, per order of file opened?
>
> First file, 'd var...'
> Second file, 'd var.2...'
> Nth file, 'd var.n....'
>
> An alternative would be to use 'set dfile [n]' and then display variable,
> as long as you are displaying variables from only file [n] in expression.
>
> Stephen Mc
>
>
>
> *Matt Alonso <matt.alonso at GMAIL.COM>*
> Sent by: GRADSUSR at LIST.CINECA.IT
>
> 03/16/2008 08:40 PM
> Please respond to
> GRADSUSR at LIST.CINECA.IT
>
> To
> GRADSUSR at LIST.CINECA.ITcc
> Subject
> NetCDF issue?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080317/ef5333ed/attachment.html 


More information about the gradsusr mailing list