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
Read irregular data problem [message #92164] Thu, 22 October 2015 09:38 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
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
[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 09:19:48 PDT 2025

Total time taken to generate the page: 0.00371 seconds