Convert FITS to PNM

Turn FITS images into PNM. Only the first image in the file is read, as 8 bits stretched linearly from its lowest to its highest value with blank pixels shown black; a three-plane image comes out in color, and the header keywords are not kept.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop FITS files on the dialor turn it to pick what to do

A FITS image as a plain Netpbm file.The picture keeps the same pixels, with no compression.

  1. What you get

    One PNM file with the same pixels as the FITS image. PNM is the Portable Anymap family: PBM, PGM and PPM, the simplest raster formats.

    The pixels are stored uncompressed, so the file is large.

  2. What to expect

    The file is large because nothing is compressed. If you keep many converted images, plan for the extra space.

    To go the other way, use PNM to FITS.

FITS and PNM.What each format is.

The formats

From · FITS

FITS

FITS, the image and table format of astronomy.

Extensions
.fits .fts
MIME type
image/fits
Kind
Images
To · PNM

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
Kind
Images

In your code.The same FITS to PNM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.fits photo.pnm
$ cv convert photo.fits photo.pnm

Questions.What people ask about FITS to PNM.

01OF 04

Yes. The PNM picture has the same pixels as the FITS image.

The pixels are stored uncompressed. That makes the file large.

One file for each conversion.

Yes. Use PNM to FITS for the reverse direction.

More conversions.Other ways in and out of FITS and PNM.