Re: scatter plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 26 Feb 2009 13:34:43 -0700

Lin,

You can't assign an array of one length to an array of another length
in NCL. The thing to do here, if you don't know ahead of time how
big your arrays will be, is to use dimsizes:

  AOD1(0,0:dimsizes(DUSTAOD1(0:17))-1)=DUSTAOD1(0:17)
  AOD1(1,0:dimsizes(DUSTAOD1(18:41))-1)=DUSTAOD1(18:41)
  AOD1(2,0:dimsizes(DUSTAOD1(42:58))-1)=DUSTAOD1(42:58)
  AOD1(3,0:dimsizes(DUSTAOD1(59:75))-1)=DUSTAOD1(59:75)
  AOD1(4,0:dimsizes(DUSTAOD1(76:99))-1)=DUSTAOD1(76:99)
  ...

Obviously, using dimsizes is overkill, because you do know the sizes
(since you're using them to explicitly index the arrays). However,
I'm not sure what future versions of this script might look like.

With the gsn_add_xxx calls, you are attaching markers to a plot that
doesn't exist. Instead of "plot", use "plot1" in these calls.

You are calling "gsn_panel" and telling it you want to arrays plots
with 3 rows and 1 column, but then you only pass one plot to the
procedure.

--Mary

On Feb 26, 2009, at 12:58 PM, Lin Su wrote:

> Dear NCL users,
>
> I am using NCL to work on the scatter plot for my 6 study sites,
> and I tried to denote each study site by different color in the
> scatter plot (attached please find the ncl script and dataset). I
> can do this easily if the 6 study sites have the same scatter
> points. Can you tell me how to do this based on the different
> points for each study site?
>
> Thanks a bunch!
> -Lin
> ---
> Lin Su
> http://atoc.colorado.edu/~sul/
>
> From: Lin Su <lsu_at_lasp.colorado.edu>
> Date: February 26, 2009 12:51:40 PM MST
> To: sul_at_colorado.edu
>
>
>
>
> ---
> Lin Su
> Graduate Research Assistant
> Toon's Aerosol Modeling Group
> http://atoc.colorado.edu/~sul/
> <reg6_aeronet_coarse.txt><reg6_wbl_coarse.txt><test.ncl>______________
> _________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Feb 26 2009 - 13:34:43 MST

This archive was generated by hypermail 2.2.0 : Tue Mar 03 2009 - 09:53:57 MST