Hi! I am new to GIS processing.

I need to cut large RGB composed satellite images in patches(5760mx5760m). The 
way I know to do that in QGIS is by"Raster->Extraction->Clip Raster by extent", 
or by batch fileon the "OSGeo4W Shell" console. I have to extract about 400 
patchesfrom 4 or 5 RGB composed satellite images.

The problem is that each extracted patch ends up with its own RGBscale and I 
must manually correct each one of the 400 to the original min andmax for the 
three bands. The program that will use the patches will put themtogether as one 
flies over then, so they must have the same visual color aspectas they had as 
part of the large image.

 I have tried:

gdal_translate -projwin 417220.0 7424030.0 422980.0 7418270.0SomePanRGB.tif 
SomePatch.tif
and
gdal_translate -projwin 417220.0 7424030.0 422980.0 7418270.0 -scale_1 114 
721114 721 -scale_2 152 568 152 568 -scale_3 223 620 223 620 
SomePanRGB.tifSomePatch.tif

 without any difference. I found very lite information on -scale_bn, ifit is 
any good to what I want.

 

Is there a way to extract (clip) the patches without changing the minand max of 
each band (RGB)?

 

QGIS version: 3.10.10-A Coruña (LTR)

OTB-7.0.0-Win64

Windows 10 Home Single Language 64 bits

8GB RAM

 

Thank you!

Mauricio

_______________________________________________
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