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

Home » Public Forums » archive » Read irregular data problem
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 irregular data problem [message #92177 is a reply to message #92164] Fri, 23 October 2015 07:29 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Thursday, October 22, 2015 at 8:08:49 PM UTC+3:30, dave poreh wrote:
> Folks,
> Hi,
> I have a data like this:
>
> DESCRIPTION=Unknown Point Feature
> ELEVATION=1.379
> 14.2899550000,41.1586500000,1.379
>
> DESCRIPTION=Unknown Point Feature
> ELEVATION=-1.635
> 14.2819110000,41.1528830000,-1.635
>
> DESCRIPTION=Unknown Point Feature
> ELEVATION=1.379
> 14.2899550000,41.1586500000,1.379
>
> DESCRIPTION=Unknown Point Feature
> ELEVATION=-1.635
> 14.2819110000,41.1528830000,-1.635
>
> DESCRIPTION=Unknown Point Feature
> ELEVATION=-0.805
> 14.2815830000,41.1521640000,-0.805
>
> ......
> and i just need to extract the lines like:
>
> 14.2899550000,41.1586500000,1.379
> 14.2819110000,41.1528830000,-1.635
> ...
>
> i did somethings like this:
> file=dialog_pickfile()
> data = (read_ascii(file,delim="|")).field1[0:2,*]
>
> but the result is bad:
> NaN NaN 14.2900
>
> Can someone please give me some hints?
> Thanks for any kind of help in advance,
> Cheers,
> Dave
Thanks Greg :), works like a charm:)
Cheers,
Dave
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Writing 2 arrays of a different type into one text file
Next Topic: Re: MATRIX LOGARITHM (and EXPONENTIAL)

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

Current Time: Wed Oct 08 13:55:27 PDT 2025

Total time taken to generate the page: 0.00442 seconds