[ncl-talk] Help with wrf_user_intrp3d

Krishna C chandrakrishna.90 at gmail.com
Sat Feb 13 01:25:45 MST 2016


Hi all,

Following script  i used to get pressure at 2m height from wrf out file
Its throwing some error .




















*load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"   load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  load
"$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"   load
"$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"begin a =
addfile("input.nc <http://input.nc>","r")Zter = wrf_user_getvar(a,"ter" ,
0) ;m Terrain Heighttime = 0p = wrf_user_getvar(a,"pressure",time)    z  =
wrf_user_getvar(a,"z",time)   height = Zter + 2.0 ; 2m height pat2m =
wrf_user_intrp3d(p,z,"h",height,0.,False)end*
Error message:
 Copyright (C) 1995-2014 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.2.1
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
fatal:_NclBuildArray: each element of a literal array must have the same
dimension sizes, at least one item doesn't
fatal:["Execute.c":8578]:Execute: Error occurred at or near line 235 in
file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8578]:Execute: Error occurred at or near line 17 in file
p2m.ncl


Regards
-Krishna-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160213/828503c3/attachment.html 


More information about the ncl-talk mailing list