<s> import os <EOL> from osgeo import gdal <EOL> os . chdir ( r'<STR_LIT>' ) <EOL> original_ds = gdal . Open ( '<STR_LIT>' ) <EOL> driver = gdal . GetDriverByName ( '<STR_LIT>' ) <EOL> ds = driver . CreateCopy ( '<STR_LIT>' , original_ds ) <EOL> band = ds . GetRasterBand ( <NUM_LIT:1> ) <EOL> colors = gdal . ColorTable ( ) <EOL> colors . SetColorEntry ( <NUM_LIT:1> , ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> colors . SetColorEntry ( <NUM_LIT:2> , ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> colors . SetColorEntry ( <NUM_LIT:3> , ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> colors . SetColorEntry ( <NUM_LIT:4> , ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> colors . SetColorEntry ( <NUM_LIT:5> , ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> band . SetRasterColorTable ( colors ) <EOL> band . SetRasterColorInterpretation ( <EOL> gdal . GCI_PaletteIndex ) <EOL> del band , ds </s>
