I can only guess here, since I can't run your script.
You have a do loop that sets the colors. The do loop goes from 0 to 43.
When you actually draw the markers, using the "colors" array to set the colors, you are
only looping from 0 to 19.
Is this an error? Should the 0 to 19 actually be 0 to 43?
It's usually a bad idea to hard-code numbers like these. If you can use a variable instead, then this
will help you avoid the issue of hard-coding the wrong values.
For example, I'm guessing that the "43" (44-1) is from the number of sources you have.
So, instead of doing:
colors = new( (/44/), "float")
do n=0,43
You can use:
nsrcs = dimsizes(sorc)
colors = new( nsrcs, "float")
do n=0,nsrcs-1
--Mary
On Mar 30, 2012, at 6:03 PM, Alexander Semenov wrote:
> Hello
>
> I'm trying to put dots to on the maps that correspond to certain locations (this data comes from the file called storm_track.txt). For some reason, only "low #1 control" and "low # 2 control" appeared on the plot. Could you please explain me why "low #1 no latent heat exp" and "low #2 no latent heat exp" didn't show up on the plot?
>
> --
> regards
>
> *******************************************************
> Alexander Semenov
>
> PhD Student - Research Assistant
> International Arctic Research Center
> Department of atmospheric sciences
> University of Alaska Fairbanks
>
> 930 Koyukuk dr, 408c3
> Fairbanks, AK, USA, 99775
> work phone +19074742672
>
> <code.txt><Screenshot.png>_______________________________________________
> 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 Mon Apr 2 10:47:30 2012
This archive was generated by hypermail 2.1.8 : Mon Apr 09 2012 - 13:43:03 MDT