[ncl-talk] Error- wrf model output wind plot

Dennis Shea shea at ucar.edu
Tue Nov 28 08:43:49 MST 2017


u10 = wrf_user_getvar(f, "U10",it)
 printVarSummary(u10)    ; ===> [south_north | ?] x [west_east | ?]


---
u = wrf_user_getvar(f, "U",it)
printVarSummary(u)    ; ===>  [bottom_top | ?] x [south_north | ?] x
[west_east_stag | ?]

---

function gsn_csm_vector (
		wks  [1] : graphic,
		u [*][*] : numeric,  <=== 2-dimensions
		v [*][*] : numeric,  <=== 2-dimensions
		res  [1] : logical
	)

kl = 5
vector = gsn_csm_vector(wks,u(kl,:,:),v(kl,:,:),vec_res)

On Mon, Nov 27, 2017 at 11:09 PM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
wrote:

> Dear Mary,
>
>      I am trying to plot WRF model output wind at different different
> atmospheric pressure levels, but I am facing an error
>
> atal:Number of dimensions in parameter (1) of (gsn_csm_vector) is (3), (2)
> dimensions were expected
> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 42 in
> file Zwind.ncl
>
>
> The same script is working for U10, V10 but not for U,V.
>
>
> --Gaurav
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171128/822c42e3/attachment.html>


More information about the ncl-talk mailing list