Hello Ellon,.
to shift the rasters that lasgrid and lascanopy produce on a sub-pixel level there is the command -grid_ll shiftx shifty where shiftx and shifty must be a number between 0 and the step size. Below a small example.
lasgrid -i ..\data\fusa.laz -step 1.0 -o fusa_1m.asc
more fusa_1m.asc
ncols 250
nrows 250
xllcorner 277750.000000
yllcorner 6122250.000000
cellsize 1.000000
NODATA_value -9999.0
45.20 44.90 42.40 42.40 42.41 42.41 42.39 42.31 [...]
lasgrid -i ..\data\fusa.laz -step 1.0 -grid_ll 0.25 0.25 -o fusa_1m_shifted_25cm.asc
more fusa_1m_shifted_25cm.asc
ncols 251
nrows 251
xllcorner 277749.250000
yllcorner 6122249.250000
cellsize 1.000000
NODATA_value -9999.0
-9999.0 45.26 42.40 42.42 42.41 42.43 42.41 [...]
It seems more tricky with your odd step size. To figure out what shift to use you need to compute the remainder of your intended lower left coordinate pair and the step size.
Here is my calculation for x:
352962.034534013189841 / 0.07124 = 4954548.491493728099957888826502
.491493728099957888826502 * 0.07124 = 0.035014013189841
Here is my calculation for y:
4799376.815214870102704 / 0.07124 = 67369129.915986385495564289724874
.915986385495564289724874 * 0.07124 = 0.065254870102704
So this one here should shift the pixels of the raster generated by lasgrid to align with your other raster.
lasgrid -i prepared/all_14_Riegl_0000001.laz ^
-step 0.07124 ^
-highest ^
-false ^
-ll_grid 0.035014013189841 0.065254870102704 ^
-odir rasters ^
-o chm_grd.tif
Could you try and report success, failure, or what you had to modify further?
Regards,
Martin @rapidlasso