dshean / demcoreg

Utilities for DEM and point cloud co-registration
MIT License
114 stars 45 forks source link

which version of python? #4

Closed lichao-whigg closed 6 years ago

lichao-whigg commented 6 years ago

I would like to ask which version of python you are using? Does it apply to Python3? Besides,the 198 line of the dem_align.py Program(dem1_ds = warplib.memwarp_multi_fn([dem1_fn,], res=dem2_ds, extent=dem2_ds, t_srs=dem2_ds)[0]) Should it be written like this: dem1_ds = warplib.memwarp_multi_fn([dem1_fn,dem2_fn], res=dem2_ds, extent=dem2_ds, t_srs=dem2_ds)[0]

ShashankBice commented 6 years ago

It should work for Python3, see readme of this repository. The line which you are pointing to is a quick hack to conform the resolution of the reference DEM(dem1_ds) with that of the source DEM(dem2_ds),ie, the DEM which you want to coregister. The modification suggested by you will give a list of datasets which will have both the reference and source DEMs datasets, which is actually not intended here. See pygeotools repo for more info.