[Qgis-user] Combine raster bands in Graphical Modeller

Richard McDonnell richard.mcdonnell at opw.ie
Tue Oct 3 05:30:28 PDT 2023


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.mcdonnell@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: boxerg at iinet.net.au <boxerg at iinet.net.au>
Sent: 03 October 2023 13:05
To: Richard McDonnell <richard.mcdonnell at 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.mcdonnell at opw.ie<mailto:richard.mcdonnell at opw.ie>>
Sent: Tuesday, October 3, 2023 7:15 PM
To: Grant Boxer <boxerg at iinet.net.au<mailto:boxerg at iinet.net.au>>
Cc: qgis-user at lists.osgeo.org<mailto:qgis-user at 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.mcdonnell@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-bounces at lists.osgeo.org<mailto:qgis-user-bounces at lists.osgeo.org>> On Behalf Of Grant Boxer via QGIS-User
Sent: 03 October 2023 04:48
To: qgis-user at lists.osgeo.org<mailto:qgis-user at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20231003/ded0c8f3/attachment-0001.htm>


More information about the QGIS-User mailing list