Re: How to write a ASCII file using NCL

From: IMRAN NADEEM <qphoton_at_nyahnyahspammersnyahnyah>
Date: Fri, 20 Feb 2009 08:46:08 +0100

Hi Amjad,

I don't understand Grads Scripting language but If you send me the data and
explain what you wanna do, I could probably help you.

Nadeem

On Fri, Feb 20, 2009 at 7:13 AM, Muhammad Amjad <callamjad_at_gmail.com> wrote:

> Dear All,
>
> I want to write the following grads script in NCL for 3 hourly output
> of WRF model. Can any body help! It will be more encouraging if I that
> script can write time step with that magnitude of wind.
>
> ____________________________________________________________
> 'reinit'
> 'open file.ctl'
> 'set lat 25.0'
> 'set lon 60.0'
>
> res = write('wind.txt',''wind speed'')
>
> t=1
> tmax=660
> while (t<=tmax)
> 'set t 't
>
> 'define d1 = mag(u10,v10)'
>
> 'd d1' ; rec1 = sublin(result,1) ; value1 = subwrd(rec1,4)
>
> res = write('wind.txt',''value1'')
>
> t = t+1
>
> endwhile
> ________________________________________________________________________
>
>
> Regards,
> Amjad.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Feb 20 2009 - 00:46:08 MST

This archive was generated by hypermail 2.2.0 : Thu Mar 05 2009 - 15:48:48 MST