[gradsusr] Dimensions that Grads can operate

Madhu Latha madhulatha11 at gmail.com
Tue Apr 21 10:19:31 EDT 2015


hi
it will work
you have to keep x,y also in while loop
for example

yy=117
while(yy<=119)
xx=164
while(xx<=166)
'set x 'xx
'set y 'yy
tm=1

while(tm<=76)
  'set t 'tm
prl=2
while(prl<=20)
'set t 'tm
'set z 'prl
'd u'
'save here with file name'
prl=prl+1
         endwhile
       tm=tm+1
      endwhile
     xx=xx+1
   endwhile
 yy=yy+1

you try this,it may work.

On Tue, Apr 21, 2015 at 5:45 PM, Jayakrishnan P.R <prjayakrishnan at gmail.com>
wrote:

> Hello,
>         I am in need of converting NCEP wind data to gridded format
> extracted over a latitude longitude domain. I wrote a script for this thing
> like the following.
>
> 'reinit'
> 'sdfopen G:/Sample_MT/samp/uwnd.2006.nc'
> 'set x 1 144'
> 'set y 1 73'
> prompt 'key in filename'
> pull fname
> 'set fwrite 'fname
> tt=1
> while (tt<=365)
> 'set t 'tt
> zz=1
> while (zz<=17)
> 'set z 'zz
> 'set gxout fwrite'
> 'd uwnd'
> zz=zz+1
> endwhile
> tt=tt+1
> endwhile
>
>
> But eventhough the script is working, it extracts the data for a single
> level only. Do grads operate if we give dimensions greater than 2?. I mean,
> latitude is varying, longitude is varying, Time is varying, Level is
> varying for output..?
>
>
>
> Sincerely
> ***********************************************
> Jayakrishnan.P.R
> Project Scientist-C
> National Centre for Medium Range Weather Forecasting
> Earth System Science Organisation
> Ministry of Earth Sciences
> A-50, Sector 62, NOIDA -201 309, INDIA
> Mob: 09496026547
> Alternate Email: jkrishna at ncmrwf.gov.in
>
> ***********************************************
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 


*With RegardsMadhulatha Akkisetti*

*Project Scientist - C*


*National Centre for Medium Range Weather Forecasting (NCMRWF) Ministry of
Earth Sciences (MoES) *

*Noida, UP*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150421/269104bb/attachment.html 


More information about the gradsusr mailing list