Hello,
I have upgraded my Metashape version to 1.6.
Scripts that I have been using require updating, I have been able to find some of the changes through the change log for 1.6 Python Scripting.
But I am having trouble with the following;
In 1.5 the following ran without error;
chunk.exportDem(output_path +'/DEM/'+ project_name + "_DEM_EPSG" + v_to_epsg + "_ver_" + version + ".tif",image_format=Metashape.ImageFormatTIFF, projection=v_projection)
But in 1.6 I have attempted to apply the change as follows;
chunk.exportRaster(output_path +'/DEM/'+ project_name + "_DEM_EPSG" + v_to_epsg + "_ver_" + version + ".tif",image_format=Metashape.ImageFormatTIFF, projection=v_projection, source_data=DEMdata)
But the error message returning is;
NameError: name 'DEMdata' is not defined.
The change log says the following on page 33;
source_data (DataSource) – Selects between DEM and orthomosaic.
I have attempted to use the word DEM and get same error.
Does anyone know what the syntax is?
Ben