How to keep color interpretation when cropping IrRG Tiff file

Hi,
I need to clip some (IrRG) 3bands Geotiff using a "grid.shp" but I lose the original bands interpretation in the process, and I have tried everything I could... I have attached three screenshots, header (before), header (after), and false color image (IrRG) which is ok after the clip, whitout the proper color interp (Undefinined, Red, Green). Here is my code.

The question is, is there a way to keep the same color interpretation when cropping the files? Thanks for your help.

CODE:
GLOBAL_MAPPER_SCRIPT VERSION="1.00"
UNLOAD_ALL
IMPORT FILENAME=catalog.gmc \
EXPORT_RASTER FILENAME=outputDirectory\.tif \
TYPE=GEOTIFF SPATIAL_RES=0.5,0.5 GEN_WORLD_FILE=NO \
PALETTE=MULTIBAND NUM_BANDS=3 BAND_BIT_DEPTH=8 \
POLYGON_CROP_FILE=grid.shp \
POLYGON_CROP_USE_EACH=YES POLYGON_CROP_NAME_ATTR=MAP_TILE \
UNLOAD_ALL

What I have tried:
PALETTE=KEEP_SOURCE NUM_BANDS=3
BAND_EXPORT_SETUP...
.. and all the mixtures.

Original:


After: (Which isnt true)


Image:

Sign In or Register to comment.