comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Extracting info from the ASCII file with IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Extracting info from the ASCII file with IDL [message #73585] Thu, 18 November 2010 08:55 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 18, 2:40 pm, Gray <grayliketheco...@gmail.com> wrote:
> Use READCOL from the NASA IDL astronomy library to read the first
> column.  Then do n_elements(uniq(data,sort(data))).

Or use the built in read_ascii(). Like:

IDL> a=((read_ascii('unascii.txt')).(0))[0,*]
IDL> print,n_elements(uniq(a[sort(a)]))
4
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Extracting info from the ASCII file with IDL
Next Topic: Re: PostScript Background Color Preference

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:19:14 PDT 2025

Total time taken to generate the page: 1.35935 seconds