---
name: "flipx"
section: "1"
platform: "linux"
package: "qfits-tools"
version: "6.2.0-9+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/flipx"
---

# flipx(1)

Flip x axis in a FITS image

## NAME

flipx - Flip x axis in a FITS image

## SYNOPSIS

**flipx** \<input images\>

## DESCRIPTION

This is an example use of the qfits library. This program expects  a list of FITS file names in input. For each input file, it will flip the image contained in the main data section in the X direction, i.e. pixel (i,j) is swapped with pixel (lx-i, j).

The pixel loading mechanism is independent from endian-ness of the local host or FITS pixel type. This program offers a good overview of how to use qfits for pixel-level operations.

## OPTIONS

None.

## FILES

Input files shall all comply with FITS format.

## BUGS

Notice that this program does not support cubes or image extensions, but could be easily extended to support that case.
