[gradsusr] regriding in grads

Jayakrishnan P.R prjayakrishnan at gmail.com
Tue Aug 4 05:47:02 EDT 2015


May be problem with version of grads. I dont know whether it will work in
ordinary grads. Regrid function will work in opengrads definitely and I am
doing it in opengrads only.
A working example is given below.

'reinit'
'sdfopen rf_2014-15.nc'
'set lat -31 45'
'set lon 30 110'
'set t 1 last'
'define rf9=re(rf,0.5,0.5)'
'set sdfwrite rf_reg_new.nc'
'sdfwrite rf9'


Sincerely
***********************************************
Dr. 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

***********************************************

On Tue, Aug 4, 2015 at 3:04 PM, PArI Parimala <pari.rox112 at gmail.com> wrote:

> Hi,
>
> Advanced Thank You.
>
> Please Help Me.
> How to do regriding in grads for nc file ?
>
> I have 2 nc files one is from model and one s from ncep.com
> have to regrid the files and find corelation and interpolation.
>
>
>
> What mistake have i done??
>
> 'reinit'
> 'sdfopen air.mon.mean.nc'
>
> 'q file'
> 'set lat -90 90'
> 'set lon 0 360'
> 'set t 1 810'
> 'set z 1'
> 'set gxout shaded'
> 'newgrid = regrid2(sst,2.5)'
> 'd regrid2(sst,2.5,2.5,bs)'
> 'define air1 = regrid(air,2.5)'
> 'd air'
>
>
> 'reinit'
> 'sdfopen sfc_tmp_ensm_fcst.nc'
> 'q file'
> 'set lat -90 90'
> 'set lon 0 360'
> 'set t 1 9'
> 'set gxout shaded'
> 'set z 1'
>
> 'd sfc_tmp'
> *'d scorr(sst.1,sfc_tmp.2,lon=0,lon=360,lat=-90,lat=90)'
>
> ...............................................
> Error
>
>
> No hardcopy metafile open
> All files closed; all defined objects released;
> All GrADS attributes have been reinitialized
> Syntax Error:  Invalid Operand
>   'regrid2' not a variable or function name
>   Error ocurred at column 1
> DISPLAY error:  Invalid expression
>   Expression = regrid2(sst,2.5,2.5,bs)
> Syntax Error:  Invalid Operand
>   'regrid' not a variable or function name
>   Error ocurred at column 1
> DEFINE error:  Invalid expression.
> .......................................
>
>
> Thank You ...
> --
> P at r!
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150804/c9293a55/attachment.html 


More information about the gradsusr mailing list