---
name: "ossim-pixelflip"
section: "1"
platform: "linux"
package: "ossim-core"
version: "2.9.1-3+b1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ossim-pixelflip"
---

# ossim-pixelflip(1)

ossim-pixelflip

## NAME

ossim-pixelflip - ossim-pixelflip

## SYNOPSIS

**ossim-pixelflip** \[*options*\] *\<output\_type\> \<input\_file\> \<output\_file\> \<target\_value\> \<replacement\_value\>*

## DESCRIPTION

Description: ossim-pixelflip flips any null pixels to a valid pixel

## OPTIONS

- **--disable-elev**

  Will disable the elevation

- **--disable-notify**

  Takes an argument. Arguments are ALL, WARN, NOTICE, INFO, FATAL, DEBUG.  If you want multiple disables then just do multiple **--disable-notify** on the command line.  All argument are case insensitive.  Default is all are enabled.

- **--disable-plugin**

  Will disable the plugin loader

- **--ossim-logfile**

  takes a logfile as an argument.  All output messages are redirected to the specified log file.  By default there is no log file and all messages are enabled.

- **-K**

  specify individual keywords to add to the preferences keyword list: name=value

- **-P**

  specify a preference file to load

- **-T**

  specify the classes to trace, ex: ossimInit\|ossimImage.\* will trace ossimInit and all ossimImage classes

- **-c** or **--clamp-value**

  clamp values (any pixel with value larger than input will be clamped to input)

- **-h** or **--help**

  Display this information

- **-m**

  Replacement mode (see notes below)

- **-o** or **--create-overview**

  Creates and overview for the output image

- **-w**

  output tile width(only valid with tiled output types).  Must be a multiply of 16

NOTES: **-m** Replacement mode option explanation:

-

  Valid modes (default=replace\_all\_targets) :

-

  replace\_partial\_targets replace\_partial\_targets\_all\_bands replace\_full\_targets replace\_all\_targets (default=all)

If mode is "replace\_all\_targets" (default): Any pixel with dn of target will be replaced.

If mode is "replace\_partial\_targets": Target will be replaced only at least one subpixel(band) does not have the target.

If mode is "replace\_partial\_targets\_all\_bands": Target will be replaced only at least one subpixel(band) does not have the target.  All bands will be replaced. This is a good Landsat7 edge fixer...

If mode is "replace\_full\_targets": Target will be replaced only if all subpixels(bands) have the target.

-

  Example: target      = 0 replacement = 1 Pixel at (0, 0) r=0, g=0,  b=0 Pixel at (0, 1) r=0, g=30, b=21

-

  Mode is "replace\_all\_targets": Pixel at (0, 0) becomes  r=1, g=1,  b=1 Pixel at (0, 1) becomes  r=1, g=30, b=21

-

  Mode is "replace\_partial\_targets": Pixel at (0, 0) remains  r=0, g=0,  b=0 Pixel at (0, 1) becomes  r=1, g=30, b=21

-

  Mode is "replace\_partial\_targets\_all\_bands": Pixel at (0, 0) remains  r=0, g=0,  b=0 Pixel at (0, 1) becomes  r=1, g=1, b=1

-

  Mode is "replace\_full\_targets": Pixel at (0, 0) becomes  r=1, g=1,  b=1 Pixel at (0, 1) remains  r=0, g=30, b=21

Valid output writer types: tiff\_strip       tiff\_strip\_band\_separate         tiff\_tiled       tiff\_tiled\_band\_separate         jpeg     general\_raster\_bip       general\_raster\_bil       general\_raster\_bsq       general\_raster\_bip\_envi  general\_raster\_bil\_envi  general\_raster\_bsq\_envi  nitf\_block\_band\_separate         nitf\_block\_band\_sequential       nitf20\_block\_band\_separate       nitf20\_block\_band\_sequential     ossim\_pdf

## SEE ALSO

The full documentation for **ossim-pixelflip** is maintained as a Texinfo manual.  If the **info** and **ossim-pixelflip** programs are properly installed at your site, the command

-

  **info ossim-pixelflip**

should give you access to the complete manual.
