Using lasvdatum to change vertical datum without intermediate files

28 views
Skip to first unread message

jean.franc...@gmail.com

unread,
Mar 25, 2026, 4:09:40 PM (3 days ago) Mar 25
to LAStools - efficient tools for LiDAR processing
Hi,

I have data using the CGVD2013 height model that I want to transform to the CGVD28 height model. Having GTX files for both, I currently do:

lasvdatum64 -i cgvd2013\*.laz -vgrid CGVD2013.gtx - backward -odir ellipsoid -olaz
lasvdatum64 -i  ellipsoid\*.laz -vgrid CGVD28.gtx -odir cgvd28 -olaz

It's fine, it works, but could I avoid the temporary files?

Thanks!

Michael Perdue

unread,
Mar 26, 2026, 3:45:48 PM (2 days ago) Mar 26
to last...@googlegroups.com
The easiest way is to difference your geoids with GDAL. Something like:
gdal_calc.py -A geoid_a.gtx -B geoid_b.gtx -calc="A-B" --outfile diff_A_B.gtx

Then you just run it through lasvdatum with the difference geoid as normal and your done in a single move. Just watch your sign and make sure your apply it the correct direction. It's easy to get wrong and subtle in the magnitude of the mistake.

Mike

--
Download LAStools at
https://rapidlasso.de
Manage your settings at
https://groups.google.com/g/lastools/membership
---
You received this message because you are subscribed to the Google Groups "LAStools - efficient tools for LiDAR processing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lastools+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lastools/fde93ba6-bf48-4258-85d0-0c8abe4a35d7n%40googlegroups.com.

rapid...@gmail.com

unread,
Mar 27, 2026, 5:10:38 AM (yesterday) Mar 27
to LAStools - efficient tools for LiDAR processing
Hi Jean Francois,
to avoid temporary files you can also use LAStools with pipes (stdout/stdin): 
Something like
    lasvdatum64 -i cgvd2013\*.laz -vgrid CGVD2013.gtx - backward -stdout | lasvdatum64 -stdin -vgrid CGVD28.gtx -odir cgvd28 -olaz
should work.

Cheers,

Jochen @rapidlasso
Reply all
Reply to author
Forward
0 new messages