[ncl-talk] how to plot divergent winds, divergence and velocity potential in one single plot?
Guido Cioni
guidocioni at gmail.com
Wed Feb 21 03:33:27 MST 2018
Hi,
This error usually pops up when you're doing assignment that delete the original attributes of the variable, including the reference to the coordinate variables.
I'm just speculating but...could it be this line?
plot1 = gsn_csm_vector_map(wks,0.001*ud(0,0,:,:),0.001*vd(0,0,:,:),vcres)
You are doing 0.001*ud(0,0,:,:), so merely assigning a new variable without copying the attributes.
You should instead do the scaling first
ud=0.001*ud(:,:,:,:) ; here the attributes are preserved
and then plot ud(0,0,:,:).
Or just a define a new variable based un ud first.
Let us know whether that works, that's the first thing that comes to my mind.
> On 21. Feb 2018, at 10:20, Vyankatesh Manoj Mundhada <vyankatesh at iiserb.ac.in> wrote:
>
> 0.001*vd(0,0,:,:)
Guido Cioni
http://guidocioni.altervista <http://guidocioni.altervista/>.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180221/45037e9f/attachment.html>
More information about the ncl-talk
mailing list