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

Home » Public Forums » archive » Re: how to read a data file
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: how to read a data file [message #48625 is a reply to message #48624] Wed, 03 May 2006 13:40 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
nalaka.kodituwakku@gmail.com wrote:
> Yes, I did before puting this post but seems like there is some thing
> that i do wrong.
>
> This the code i wrote to read the first line. hopeing if this works i
> could write a loop to read the rest. but didn't work.Can some one see
> waht is wrong here? I tried with out the format too.this is the code
>
> pro import_test
>
> cts=INTARR(500)
> Lable1=STRARR(500)
> xvalues = fltarr(500)
> yvalues = fltarr(500)
> zvalues = fltarr(500)
> Atom=STRARR(500)
>
>
> openr, 105, 'sym1.mol2'
>
> readf, 105, c, l, x, y, z, a, format='(d2, A3, f5.4, f5.4, f5.4, a2)'
> print, c, l, x, y, z, a, format='(d2, a3, f5.4, f5.4, f5.4, a2)'


what are c, l, x, y, z, a ?

what error does IDL spit back at you?

> close, 105
> free_lun,105
> END
>


--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
Ph: (301)763-8000 x7748
Fax:(301)763-8545
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Animation formats revisited
Next Topic: IDL source code formatter

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

Current Time: Fri Oct 10 09:29:36 PDT 2025

Total time taken to generate the page: 0.88297 seconds