Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Raster transform python multiple bands
« previous
next »
Print
Pages: [
1
]
Author
Topic: Raster transform python multiple bands (Read 2103 times)
Christina K
Newbie
Posts: 14
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
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 14854
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"]
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
Raster transform python multiple bands
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)