Forum

Author Topic: API1.6 exportRaster DEM shaded  (Read 1821 times)

benj_G

  • Newbie
  • *
  • Posts: 24
    • View Profile
API1.6 exportRaster DEM shaded
« on: February 06, 2020, 12:01:00 PM »
Hi everyone,

we run a full timeline python script with :

Code: [Select]
metashape.exe -r script.py
In this script we export DEM.

In version API1.5 we do :

Code: [Select]
chunk.exportDem(DemPATH, image_format=Metashape.ImageFormatTIFF,nodata=-99999,write_world=True)
and we have a tiff DEM shaded.

we want to migrate our script to API1.6 so we run:

Code: [Select]
chunk.exportRaster(DemPATH,source_data=Metashape.ElevationData,image_format=Metashape.ImageFormatTIFF,nodata_value=-99999,save_world=True)
but we have a tiff DEM not shaded.

if we run the last same command with GUI python console the DEM is shaded and it's ok !


can you explain how to apply shaded DEM by python scripting.

thanks in andvance for your help.

benjamin

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: API1.6 exportRaster DEM shaded
« Reply #1 on: February 06, 2020, 12:20:50 PM »
Hello Benjamin,

Can you post the screenshots demonstrating the difference between shaded and non-shaded outputs?

Best regards,
Alexey Pasumansky,
Agisoft LLC

benj_G

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: API1.6 exportRaster DEM shaded
« Reply #2 on: February 06, 2020, 01:16:01 PM »
Hi,
thanks for quick reply.

see attach files.
« Last Edit: February 06, 2020, 02:33:48 PM by benj_G »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: API1.6 exportRaster DEM shaded
« Reply #3 on: February 06, 2020, 07:05:15 PM »
Hello Benjamin,

Which application you are using to open the DEM export? I'll try to reproduce the issue then. However, I think that the hillshading is not a property of the GeoTIFF file, but rather the application settings.
Best regards,
Alexey Pasumansky,
Agisoft LLC