Re: atal:fspan: number of elements parameter must be of an integral type, cannot continue

From: Xi Chang <xi.chang01_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 28 2014 - 02:37:22 MDT

Thanks a lot Karin,
a small mistake seemed to ruin whole codes :)

On Thu, Mar 27, 2014 at 7:39 PM, Karin Meier-Fleischer <
meier-fleischer@dkrz.de> wrote:

> Dear Xi,
>
> I think you have a wrong number of array points in the fspan function call
> (see below).
>
>
> plot3 = gsn_csm_xy(wks,fspan(1.0,6.0,6.),stdarr(:,2),sres)
>
>
> plot3 = gsn_csm_xy(wks,fspan(1.0,6.0,*6*),stdarr(:,2),sres)
>
> The third value of fspan should be of type integer.
>
> Bye,
> Karin
>
> Am 27.03.2014 um 19:18 schrieb Xi Chang <xi.chang01@gmail.com>:
>
> Dear NCL,
>
> Im trying to make a bar plot, where every one month I'll have 5 bars.. I
> did something like this:
>
> sres@gsnXYBarChartColors = (/"black"/)
> plot1 = gsn_csm_xy(wks,fspan(0.7,5.7,6),stdarr(:,0),sres)
> sres@gsnXYBarChartColors = (/"blue"/)
> plot2 = gsn_csm_xy(wks,fspan(0.85,5.85,6),stdarr(:,1),sres)
> sres@gsnXYBarChartColors = (/"red"/)
> plot3 = gsn_csm_xy(wks,fspan(1.0,6.0,6.),stdarr(:,2),sres)
> sres@gsnXYBarChartColors = (/"green"/)
> plot4 = gsn_csm_xy(wks,fspan(1.15,6.15,6),stdarr(:,3),sres)
> sres@gsnXYBarChartColors = (/"gray"/)
> plot5 = gsn_csm_xy(wks,fspan(1.3,6.3,6),stdarr(:,4),sres)
>
> I got this erros;
> fatal:fspan: number of elements parameter must be of an integral type,
> cannot continue
>
> thanks for any solution
> Xi
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> _________________________________
> Karin Meier-Fleischer
>
> Deutsches Klimarechenzentrum GmbH
>
> Application Support
> Visualization
>
> Bundesstrasse 45a
> D-20146 Hamburg, Germany
>
> E-Mail: meier-fleischer@dkrz.de
> Internet: http://www.dkrz.de/
> Phone: +49 40 460094 126
> Fax: +49 40 460094 270
>
>
>
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 28 02:37:35 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 31 2014 - 11:47:09 MDT