2

I've got 1000 (one thousand) RapidEye raster images. The stacking layers has bands 1, 2, 3 and 4. I need to extract the bands 1, 2 and 3, then save the new file discarding the band 4.

I've tried to save RGB bands in QGIS, using the "Rendered Image" function. It works. How do I do that in batch mode or Python script?

enter image description here

closed as off-topic by PolyGeo Mar 3 '16 at 21:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • QGIS 2.12. Save as raster layer as... This function works, but now I'd like to know how to create a python script to do that 1000 times. – eduardosteps Mar 3 '16 at 20:15
  • 1
    Can you include a snippet of your code so far that illustrates where you are stuck, please? – PolyGeo Mar 3 '16 at 21:07
  • Perhaps this post might help: QGis Save Raster as Rendered Image – Joseph Mar 4 '16 at 11:12
  • @PolyGeo, for now I'm stuck in this part, because I don't know if it is possible to create a PyQGIS script to process these 1000 images. – eduardosteps Mar 4 '16 at 12:31