<div dir="ltr"><div><div><div>Hi,<br><br></div><div>Advanced Thank You.<br><br></div><div>Please Help Me.<br></div>How to do regriding in grads for nc file ?<br><br></div><div>I have 2 nc files one is from model and one s from <a href="http://ncep.com">ncep.com</a><br></div><div>have to regrid the files and find corelation and interpolation.<br></div><div><br></div><div><br><br></div>What mistake have i done??<br><br>'reinit'<br>'sdfopen <a href="http://air.mon.mean.nc" target="_blank">air.mon.mean.nc</a>'<br><br>'q file'<br>'set lat -90 90'<br>'set lon 0 360'<br>'set t 1 810'<br>'set z 1'<br>'set gxout shaded'<br>'newgrid = regrid2(sst,2.5)'<br>'d regrid2(sst,2.5,2.5,bs)'<br>'define air1 = regrid(air,2.5)'<br>'d air'<br><br><br>'reinit'<br>'sdfopen <a href="http://sfc_tmp_ensm_fcst.nc" target="_blank">sfc_tmp_ensm_fcst.nc</a>'<br>'q file'<br>'set lat -90 90'<br>'set lon 0 360'<br>'set t 1 9'<br>'set gxout shaded'<br>'set z 1'<br><br>'d sfc_tmp'<br>*'d scorr(sst.1,sfc_tmp.2,lon=0,lon=360,lat=-90,lat=90)'<br><br>...............................................<br></div>Error <br><br><br>No hardcopy metafile open<br>All files closed; all defined objects released;<br>All GrADS attributes have been reinitialized<br>Syntax Error: Invalid Operand <br> 'regrid2' not a variable or function name<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression <br> Expression = regrid2(sst,2.5,2.5,bs)<br>Syntax Error: Invalid Operand <br> 'regrid' not a variable or function name<br> Error ocurred at column 1<br>DEFINE error: Invalid expression. <br>.......................................<br><br><div><br clear="all"><div><div><div><div>Thank You ...<br></div><div>-- <br><div>P@r!<br></div>
</div></div></div></div></div></div>