[ncl-talk] rcm2rgrid to interpolates WRF output

易路 dg1225033 at smail.nju.edu.cn
Wed Nov 12 00:55:15 MST 2014


Hi all,

 I try to use rcm2grid to interpolates WRF output data on a curvilinear grid  to a rectilinear grid. But the teminal showed erros as follows:

fatal:syntax error: line 80 in file 2gridPrecipitation.ncl before or near =>rain_exp_xgrd 
        rain_exp(it, nlat, nlon)==>rain_exp_xgrd
-----------------------------------------------^

fatal:syntax error: line 81 in file 2gridPrecipitation.ncl before or near =>rain_con_xgrd 
        rain_con(it, nlat, nlon)==>rain_con_xgrd
-----------------------------------------------^

fatal:Syntax Error in block, block not executed
fatal:error at line 177 in file 2gridPrecipitation.ncl

And my parts of scripts are as follows, would you please help me check it?

    rain_exp = wrf_user_getvar(a,"RAINNC",it)
    rain_con = wrf_user_getvar(a,"RAINC",it)


; rcm2rgrid  **********************************************
        nlat=48
        nlon=64
        lat=latGau(nlat,"lat","latitude", "degrees_north")
        lon=fspan(0,nlon,1)
        lat2d=a->xlat
        lon2d=a->xlon

        rain_exp_xgrd =rcm2rgrid(lat2d,lon2d,rain_exp,lat,lon,0)
        ;rain_con_xgrd =rcm2rgrid(lat2d,lon2d,rain_con,lat,lon,0)

        rain_exp(it, nlat, nlon)==>rain_exp_xgrd(it,64,128)
        ;rain_con(it, nlat, nlon)==>rain_con_xgrd(it,64,128)
       ; rain_tot = rain_exp + rain_con
;*******************************************************************


More information about the ncl-talk mailing list