<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Rick,<br>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thank you for your help yesterday. With additional trial and error, I have finally got the station locations to plot based on different color coding for the ranges of data values. I have attempted to place a color bar on the figure to identify the data ranges,
 but are getting the following error messages:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
warning:PlotManagerSetValues: LabelBar annotation cannot be added after NhlCreate
<div>warning:lbAutoManage is not a valid resource in map.PlotManager at this time</div>
<div>warning:cnFillOn is not a valid resource in map at this time</div>
<span>warning:lbLabelBarOn is not a valid resource in map at this time</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>I am confused as to why this is occurring. </span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Attached is the updated code and plot.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks,
<div>Jason</div>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Rick Brownrigg <brownrig@ucar.edu><br>
<b>Sent:</b> Friday, July 23, 2021 12:12 PM<br>
<b>To:</b> Herb, Jason <jherb@albany.edu><br>
<b>Cc:</b> ncl-talk@ucar.edu <ncl-talk@ucar.edu><br>
<b>Subject:</b> Re: [ncl-talk] Plotting</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hi Jason,</div>
<div><br>
</div>
<div>There are a several problems going on. str_get_field() is one-based in counting fields (maddenly enough), so your lat/lon variables are wrong (indexes 2 & 3, not 1 & 2).  When you go to draw the markers, you assign gsMarkerColor the whole colors array,
 which is the source of the warnings -- did you intend something like "gsMarkerColor = colors(i,:)"  ?   Finally, if you print the arrays lon_new and lat_new, you'll see the arrays are of length 12, and the first 11 values contain -999's. I have not studied
 how those arrays were constructed.</div>
<div><br>
</div>
<div>Hope that helps...</div>
<div>Rick<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, Jul 23, 2021 at 9:14 AM Herb, Jason via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello NCL users,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I am attempting to plot a series of polygons on a map of NYS that are based on a range of data from 0 to 1. I am attempting make each polygon show on the map as the proper color-code matching the label bar for a given range. Currently, I can get printout of
 the map with lat/lon axis data title, and for some odd reason there is a black dot over the "W" for the 75W label.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have attached the script input file and the output png file.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
thanks,
<div>Jason</div>
<br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
</div>
</body>
</html>