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

Home » Public Forums » archive » FILE_LINES change in 8.4
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
FILE_LINES change in 8.4 [message #92723] Wed, 17 February 2016 06:44 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Folks-

Weird issue I've come across in the past few days. It seems the behavior of FILE_LINES has changed from 8.4 to 8.5.

I've used a line of code like this since pre-7 days with no problems:

nLines = FILE_LINES(f, /COMPRESS)

where f is a basic gzipped file.

Now, this returns zero for me.

Anyone else using FILE_LINES with compressed files?

Here's a concrete example:

IDL> f='LYLOUT_120522_030000_3600.dat.gz'

(File available here: https://goo.gl/ROaE3J)

Under 8.4, I get:
IDL> file_lines(f, /compress)
123806

but under 8.5 I get:
IDL> file_lines(f, /compress)
0

The file really is gzipped:
$ file LYLOUT_120522_030000_3600.dat.gz
LYLOUT_120522_030000_3600.dat.gz: gzip compressed data, was "LYLOUT_120522_030000_3600.dat", from Unix, last modified: Sat Jul 7 08:30:46 2012, max compression

Running on Mac 10.9.5 FWIW.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Open Source LiDAR LAS file manipulator for IDL and ENVI
Next Topic: Looping through structures

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

Current Time: Wed Oct 08 11:34:11 PDT 2025

Total time taken to generate the page: 0.00371 seconds