Hi Grant,
The syntax is as follows...

For three separate single band Images....

-A input1.tif --A_band=1 -B input2.tif --B_band=1 -C input3.tif --C_band=1 
...........


For a single raster multiple bands...

-A input1.tif --A_band=1 -B input.tif --B_band=2 -C input.tif --C_band=3 
..........


I hope that helps and hope the process works!
Kind Regards,

Richard


--
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

--
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 46 942 2409
https://gov.ie/opw

--
To send me files larger than 30MB, please use the link below 
https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie

Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/

--
MSc GIS, FME Certified Professional

--
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 46 942 2409
https://https://gov.ie/opw<https://www.opw.ie>

--
Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/<https://www.opw.ie/en/disclaimer/>
From: box...@iinet.net.au <box...@iinet.net.au>
Sent: 03 October 2023 13:05
To: Richard McDonnell <richard.mcdonn...@opw.ie>
Subject: RE: [Qgis-user] Combine raster bands in Graphical Modeller

Hi Richard,

Yes, I have thought about that by putting it in the gdal command, but not sure 
of the correct syntax.

Cheers Grant


From: Richard McDonnell 
<richard.mcdonn...@opw.ie<mailto:richard.mcdonn...@opw.ie>>
Sent: Tuesday, October 3, 2023 7:15 PM
To: Grant Boxer <box...@iinet.net.au<mailto:box...@iinet.net.au>>
Cc: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: RE: [Qgis-user] Combine raster bands in Graphical Modeller

Hi Grant,
I have not tied it, but one possible solution is to use the additional command 
-line parameters to specify the Bands, it might be worth a try..
Kind Regards,

Richard


--
Richard McDonnell MSc GIS, FME Certified Professional
FRM Data Management

--
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 46 942 2409
https://gov.ie/opw

--
To send me files larger than 30MB, please use the link below 
https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie

Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/



--
MSc GIS, FME Certified Professional

--
Oifig na nOibreacha Poiblí
Office of Public Works

Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
Jonathan Swift Street, Trim, Co Meath, C15 NX36
--
M +353 87 688 5964 T +353 46 942 2409
https://https://gov.ie/opw<https://www.opw.ie>

--
Email Disclaimer: 
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/<https://www.opw.ie/en/disclaimer/>

From: QGIS-User 
<qgis-user-boun...@lists.osgeo.org<mailto:qgis-user-boun...@lists.osgeo.org>> 
On Behalf Of Grant Boxer via QGIS-User
Sent: 03 October 2023 04:48
To: qgis-user@lists.osgeo.org<mailto:qgis-user@lists.osgeo.org>
Subject: [Qgis-user] Combine raster bands in Graphical Modeller

I have a multiband raster and I need to add all the ten bands together to 
create a one band raster file. I can do this in the raster calculator manually 
but cannot seem to find a way to do this using the raster calculator in the 
graphical modeller. There is a max of 5 bands that can be operated on at any 
one time. Any suggestions?
Grant Boxer
Perth, WA

_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to