Forum

Author Topic: Raster transform python multiple bands  (Read 2100 times)

Christina K

  • Newbie
  • *
  • Posts: 14
    • View Profile
Raster transform python multiple bands
« on: June 12, 2019, 12:55:08 PM »
Hi,

I need to export a multispectral image as reflectance with python. I am able to use a single band expression in the raster calculator in python but in this case I would like to export multiple bands.

It is unclear how to add more output bands to the expression in python. Is this possible? It is working correctly in the GUI see attached screenshot.

Thanks in advance


Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Raster transform python multiple bands
« Reply #1 on: June 12, 2019, 09:26:12 PM »
Hello Christina,

You can pass the list of expressions to be used as outer bands:
Code: [Select]
Metashape.app.document.chunk.raster_transform.formula = ["B1/32768", "B2/32768", "B3/32768"]
Best regards,
Alexey Pasumansky,
Agisoft LLC