<div dir="ltr"><div><div>There is no &#39;get_unique_ind&#39; [get unique indices] function which would return the indices which correspond to the values returned by  get_unique_values. <br><br></div>I only skimmed the code you sent. A bit too complicated for a simpleton such as myself!<br><br>---<br></div>I created a script that gets the uniques values only; and, a section that returns the indices that (I hope) correspond to the unique values.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 31, 2017 at 4:25 PM, Andrew Kren - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am looping through forecast hours in a TC track file to examine track error. The issue is that multiple lines have identical forecast hours on each line so that it is an issue with my code that I was reading the same lat/lons and treating them the same as if they were independent forecast hours. Attached is a text file of the track file and my ncl script. Is there a way to use get_unique_values to get the indices from the unique values so that I am only saving those values and not duplicating?<div><br></div><div>Thanks,<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-3786641249009813892gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren, PhD<br>
Research Scientist I, Global Observing Systems Analysis (GOSA) Group<br>
NOAA ESRL Global Systems Division (Rm 3C515)<br>
325 Broadway, Boulder, CO 80305<br>
<a href="tel:%28303%29%20497-5418" value="+13034975847" target="_blank">(303) 497-5418</a><span><font color="#888888"><br>
</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>