[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: skips while reading tab delimited data



Well if you're interested, here's the code that reads in the data:

dataread=0
if dataread eq 0 then begin
 CD, 'U:\VAIO2\C Code\residual'
 Nloops = 200L
 NR0Steps = 200L+1
 arraydet = dblarr(3,NR0Steps)
 arraystoc = dblarr(3,(NR0Steps)*Nloops)
 OpenR, 1, 'residual1.txt'
 ReadF, 1, arraydet
 ReadF, 1, arraystoc
 Close, 1
endif

Cheers, Christophe.

> How did you read, tell us a bit more!
>
> Did you something like:
>
> header=make_array(/string,1)
> values=make_array(/float,5,10)
>
> openr,lun,file,/get_lun
> readf,lun,header
> readf,lun,values
> free_lun,/lun
>
>
> I have never seen such a problem as you described.
>
> regards
>
> Reimar
>
>
> >
> > > Do both versions use the same code to read the data ? I never had IDL
> > > skip anything I did not tell it to.
> > >
> > > Cheers,
> > > Pavel
> > >
> > > Christophe Fraser wrote:
> > > >
> > > > We run IDL 5.2 on our network and I have 5.4 on my laptop. While
reading
> > in
> > > > tab delimited data into an array, IDL 5.2 skips whole lines of data,
but
> > 5.4
> > > > does not. I find this a bit alarming. Am I doing something weird?
> > > >
> > > > Cheers,    Christophe Fraser
>
> --
> Reimar Bauer
>
> Institut fuer Stratosphaerische Chemie (ICG-1)
> Forschungszentrum Juelich
> email: R.Bauer@fz-juelich.de
> http://www.fz-juelich.de/icg/icg1/
> =============================================
> a IDL library at ForschungsZentrum Jülich
> http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.html
>
> http://www.fz-juelich.de/zb/text/publikation/juel3786.html