[ncl-talk] unique values

Dennis Shea shea at ucar.edu
Tue Aug 1 12:54:02 MDT 2017


There is no 'get_unique_ind' [get unique indices] function which would
return the indices which correspond to the values returned by
get_unique_values.

I only skimmed the code you sent. A bit too complicated for a simpleton
such as myself!

---
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.



On Mon, Jul 31, 2017 at 4:25 PM, Andrew Kren - NOAA Affiliate <
andrew.kren at noaa.gov> wrote:

> 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?
>
> Thanks,
>
> --
> Andrew Kren, PhD
> Research Scientist I, Global Observing Systems Analysis (GOSA) Group
> NOAA ESRL Global Systems Division (Rm 3C515)
> 325 Broadway, Boulder, CO 80305
> (303) 497-5418
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170801/f5659d09/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rd_AL01.ncl
Type: application/octet-stream
Size: 3137 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170801/f5659d09/attachment.obj 


More information about the ncl-talk mailing list