Re: Error in plotting trend

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 31 2011 - 15:21:31 MST


In order to plot multiple Y curves, the leftmost dimension must represent
the number of curves, and the rightmost dimension the number of values.

The X array, then, if it is one-dimensional, must be equal to the
number of values (the rightmost dimension of Y).

I think sst_region&time has more elements than the rightmost dimension
of "data". Maybe you need to subscript it with "::12"?

  plot = gsn_csm_xy (wks,ut_calendar(sst_region&time(::12),4),data(1,:,:),res)

Just a guess.

On Jan 31, 2011, at 1:58 PM, wrote:

> Hello All,
> I am plotting the monthly SST trend of 15 years. But in the plot I am
> getting an error saying:
> gsn_csm_xy: Fatal: X and Y must have the same dimensions sizes, or one
> must be one-dimensional and both have the same rightmost dimension.
> I am attaching the script and the plot. Any comment about fixing this will
> be very helpful.
> Thanks,
> Soumik
> --
> *************************************
> Soumik Basu
> Graduate Student, Research Assistant
> International Arctic Research Center
> University of Alaska Fairbanks
> Fairbanks,Alaska,USA
> **************************************
> -----------------------------------------
> This email was sent using SquirrelMail.
> "Webmail for nuts!"
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Jan 31 15:21:37 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 04 2011 - 09:26:53 MST