Hello,
in the meantime Steven provided me with a large RAR file containing the two files in question. As WinRAR is not actually free software I always use the "unrar.exe" command-line freeware that can only decompress RAR data but that is good enough for me:
C:\lastools\bin>unrar v EynshamHall.rar
UNRAR 3.91 freeware Copyright (c) 1993-2009 Alexander Roshal
Name Size Packed Ratio
-----------------------------------------------------------------------------------
EynshamHall.pts 2,385,743,633 617,553,320 25%
EynshamHallscale.pts 2,802,733,415 601,619,636 21%
-----------------------------------------------------------------------------------
Unfortunately unrar.exe does not support *streaming* decompression of individual files. In contrast, with zip or gzip I can compress the PTS file to LAZ while the *.zip or *.gz file is decompressing. As I am neither in the mood to create two 2 GB large ASCII files nor have sufficient hard disk space (see below) I restrict my experiments so smaller subsets that I extract by running the following commands and then killing the process once I see the process has written about 200 MB.
unrar e -nEynshamHall.pts EynshamHall.rar
unrar e -nEynshamHallscale.pts EynshamHall.rar
C:\lastools\bin>dir Eynsham*
10/04/2012 04:24 AM 209,702,252 EynshamHall.pts
09/30/2012 12:51 AM 1,219,173,108 EynshamHall.rar
10/04/2012 04:29 AM 222,284,385 EynshamHallscale.pts
3 File(s) 1,651,159,745 bytes
0 Dir(s) 414,998,528 bytes free
At the end of this message you can see the first few lines of each of the two files. The first file is what I would consider a "proper" PTS file. The second file is not a PTS file but a regular ASCII file. How was the second got created from the first as the only differences are that the header point counter was stripped, the intensity translated and scaled, and commas used as separators instead of spaces.
The first can be compressed with (or with
http://pointzip.org)
txt2las -i EynshamHall.pts -parse xyziRGB -translate_intensity 2048 -rescale 0.001 0.001 0.001 -olaz
the second one is a regular ASCII file and can be processed with
txt2las -i EynshamHallscale.pts -parse xyziRGB -scale_intensity 4096 -rescale 0.001 0.001 0.001 -olaz
and you get approximately a 10:1 compression ratio:
C:\lastools\bin>dir Eynsham*
10/05/2012 04:24 AM 21,160,282 EynshamHall.laz
10/04/2012 04:24 AM 209,702,252 EynshamHall.pts
09/30/2012 12:51 AM 1,219,173,108 EynshamHall.rar
10/05/2012 04:27 AM 19,315,269 EynshamHallscale.laz
10/04/2012 04:29 AM 222,284,385 EynshamHallscale.pts
Regards,
Martin @lastools
C:\lastools\bin>more EynshamHall.pts
50396590
27.280418 135.863427 -7.914423 -1282 125 148 77
132.181818 -229.429579 -14.734766 -1725 84 96 50
145.550617 -219.173592 -13.859156 -1709 73 84 44
164.942664 -198.605224 -15.532221 -1627 83 96 45
171.029915 -143.889493 -12.135309 -1735 29 33 19
179.877828 -162.537500 -12.086298 -1626 32 30 19
187.144809 -170.665851 -10.431910 -1724 37 33 21
172.190708 -141.120132 -14.399683 -1653 30 31 20
177.668125 -131.674761 -10.864832 -1684 29 29 18
[...]
C:\lastools\bin>more EynshamHallscale.pts
27.280418,135.863427,-7.914423,0.18701171875,125,148,77
132.181818,-229.429579,-14.734766,0.078857421875,84,96,50
145.550617,-219.173592,-13.859156,0.082763671875,73,84,44
164.942664,-198.605224,-15.532221,0.102783203125,83,96,45
171.029915,-143.889493,-12.135309,0.076416015625,29,33,19
179.877828,-162.537500,-12.086298,0.10302734375,32,30,19
187.144809,-170.665851,-10.431910,0.0791015625,37,33,21
172.190708,-141.120132,-14.399683,0.096435546875,30,31,20
177.668125,-131.674761,-10.864832,0.0888671875,29,29,18
[...]