[ncl-talk] help

Jack Ogaja jack.ogaja at gmail.com
Thu Aug 27 03:14:09 MDT 2015


Sure, the line

         plot(i)=gsn_csm_vector_scalar_map_ce(wks,mnU(i),mnV(i),wspdAv(i),vcres)

cannot work because the wind fields are 3D variables. Change it to

         plot(i)=gsn_csm_vector_scalar_map_ce(wks,mnU(i,:,:),mnV(i,:,:),wspdAv(i,:,:),vcres)

Jack

> On 27 Aug 2015, at 05:57, afwande juliet <afwandej965 at gmail.com> wrote:
> 
> Thanks Jack much appreciated for your help...
> 
> I thought when u plot wind u need to make it 2D thats is why i used dim reduction.
> 
> Now the code works upto to plot functions but generataes this error
> 
> fatal:Number of subscripts do not match number of dimensions of variable,(1) Subscripts used, (3) Subscripts expected
> fatal:["Execute.c":8578]:Execute: Error occurred at or near line 126 in file 83_winds.
> 
> I thought this error is because of the dimension size of the U and V wind which needs to be 2D instead of 3D as it is now, anyway I would appreciate your help to identify where the problem is. Attached is code...
> 
> Regards
> 
> Afwande
> <83_winds>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



More information about the ncl-talk mailing list