Jump to content

Automatically stack bands of rasters


hariasa

Recommended Posts

 
Hi all,

I have a lot of rasters of the same size, location, projection, file type etc. that I need to stack. Ordinarily I would do this with the Stack Layer option in ERDAS, but now I have to do it a whopping 60 times * 9 bands. There must be a better way to do this, so I thought of FME.

But FME with the rasterbandcombiner baffles me. I insert 9 rasters in there and I get 9 rasters back, although I wanted 1 raster with 9 bands back instead.

I know you can do it in ArcGIS too, but my classifier (Randomforest in R) does not take kindly to rasters that are created with ArcGIS (no matter what format).

Does anyone know how to stack these rasters together in a more automated fashion (in another program or using the rasterbandcombiner in FME)?

Also, the rasters are not necessarily all the same bit range (8-bit etc.) and not necessarily of the same spatial resolution.

Much thanks!

I already found the solution, you are supposed to use the sort. FME can only stack similar bands, not like ERDAS stack anything you like. If someone has an automated solution for that last bit, that would be great. Thanks all.

Edited by hariasa
Link to comment
Share on other sites

ah , for image stack, I usually use ENVI, but only when the image file separating their band, for example Landsat ETM with 7 band in 7 different file, so I combine them. so is this your case?

ehm, if you are using R as processor, I think R has a functionality to stack images too, am I correct ? just lurking aorund in the google and found bout stack images in R

regards,

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist