[gradsusr] regriding in grads
Alcides Dominguez Garcia
alcidoga at gmail.com
Thu Apr 12 13:57:19 EDT 2018
hola,
Me gustaría que me ayuden de como hacer para que me funcione regrid2 ya que
por algún motivo me sale error a la hora de ejecutar,
desde ya agradezco su tiempo.
define newg=regrid2(rainc,0.267,0.267,bl)
Syntax Error: Invalid Operand
'regrid2' not a variable or function name
Error ocurred at column 1
DEFINE error: Invalid expression.
2015-08-04 10:37 GMT-04:00 PArI Parimala <pari.rox112 at gmail.com>:
> Thank u got an idea now.. Thank u
> On Aug 4, 2015 3:18 PM, "Jayakrishnan P.R" <prjayakrishnan at gmail.com>
> wrote:
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
> _______________________________________________
> 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/20180412/40048791/attachment.html>
More information about the gradsusr
mailing list