---
name: "pct2rgb.py"
section: "1"
platform: "linux"
package: "python-gdal"
version: "1.2.6-1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/pct2rgb.py"
---

# pct2rgb.py(1)

converts an image into a pseudo-colored image

## NAME

pct2rgb.py - converts an image into a pseudo-colored image

## SYNOPSIS

```
pct2rgb.py [-of format] [-b band] source_file dest_file
```

## DESCRIPTION

This utility will convert a pseudocolor band on the input file into an output RGB file of the desired format.

- **-of** *format***:**

  Format to generated (defaults to GeoTIFF).

- **-b** *band***:**

  Band to convert to RGB, defaults to 1.

- *source\_file***:**

  The input file.

- *dest\_file***:**

  The output RGB file that will be created.

NOTE: rgb2pct.py is a Python script, and will only work if GDAL was built with Python support.

## AUTHORS

Frank Warmerdam \<warmerdam@pobox.com\> Silke Reimer \<silke@intevation.de\>
