Select to view content in your preferred language

Export Raster function in Model Builder

3781
4
Jump to solution
01-19-2023 11:10 AM
jhindleCRG
Occasional Contributor

I'm trying to create a model builder chain in which I have an iteration of rasters going into  the INT tool, as the viewing extents need to be fixed and this allows me to do that. Once done, I would like to then Export these rasters and specify them as jpeg and quality of 95.

I have tried to do this using 'Raster to Other Format' but when I do this I cannot open my .tiff files as it doesn't allow me to use jpeg since my raster bands are 4 and not 3. It also creates them as a file size thats almost triple the size.

Is there a way to add the 'Export Raster' tool to Model Builder, or perhaps another workaround?

Thanks

0 Kudos
1 Solution

Accepted Solutions
curtvprice
MVP Alum

The Make Raster Layer tool has a parameter to select bands. Perhaps you could run that on your input, specifying the three bands you want and pipe that into Copy Raster To Other Format?

View solution in original post

4 Replies
curtvprice
MVP Alum

The Make Raster Layer tool has a parameter to select bands. Perhaps you could run that on your input, specifying the three bands you want and pipe that into Copy Raster To Other Format?

curtvprice
MVP Alum

You gave me a kudo -- did this work?

0 Kudos
jhindleCRG
Occasional Contributor

Yes, it did, I tried this before but realized I was only selecting '3', and not adding '1' & '2' & '3'

JordanCampbellUAF
Emerging Contributor

Does Make raster layer export the bands you select as individual layers? Or does it make a composite layer of the bands you select. I need to extract all the bands from a raster and I want to use make raster layer in model builder. I have the output going into the copy raster tool but how do I get it all to go through each band in the multiband image?

0 Kudos