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

Home » Public Forums » archive » read_ascii
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: read_ascii [message #43198 is a reply to message #41756] Fri, 25 March 2005 08:35 Go to previous messageGo to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Matthias Demuzere wrote:

> Hi,
>
> I have a large ascii file that I read in with the command read-ascii. Now
> a gave a name to each column of that file.
> My problem is to select just a part of this ascii file that looks for
> example like this:
>
> Code Parameter Date Value
> 400 1 01 01 2002 10
> ....... ....
> 31 12 2002 15
> 2 01 01 2002 3
> ....... ....
> 31 12 2002 6
> .... .... .....
> 407 .....
>
> and so one for other CODEs.....
>
> Now i want to select the data for each code (e.g. 400), and in this
> result, i want to sort the data for each parameter (e.g. 2) ....
>
> Can anyone give me a basic solution to this problem?
> Thank you!!
> Matthias
> .

Dear Matthias

what do you mean by large?

Probably you could write your own simple reading routine for this problem.

Probably you could use the `where` function to get returned the indexes of
the submitted code. This index vector could be used to separate a part of
the structure
Afterwards you use `sort` for the parameter to get a second index vetor.

cheers

Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: read_ascii
Next Topic: getting y Coordinates of NetCDF file

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

Current Time: Sun Oct 12 04:51:22 PDT 2025

Total time taken to generate the page: 0.72140 seconds