Next: NDF2TIFF - Converts an NDF to an 8-bit TIFF-6.0-format file.
Up: Specifications of CONVERT Applications
Previous: NDF2IRAF - Converts an NDF to an IRAF image
NDF2PGM
- Converts an NDF to a PBMPLUS-style PGM-format file.
- Description:
- This application converts an NDF to a PBMPLUS PGM-format file.
The programme first finds the brightest and darkest pixel values
in the image. It then uses these to determine suitable scaling
factors to convert the image into an 8-bit representation. These
are then output to a simple greyscale PBMPLUS PGM file.
- Usage:
- ndf2pgm in out
- Parameters:
-
-
IN = NDF (Read)
-
The name of the input NDF data structure (without the .sdf
extension). The suggested default is the current NDF if one exists,
otherwise it is the current value.
-
OUT = _CHAR (Read)
-
The name of the PGM file be generated.
The .pgm name extension is added to any output filename that
does not contain it.
-
Examples:
-
- ndf2pgm old new
- This converts the NDF called old (in file old.sdf) to the
PGM file new.pgm.
- ndf2pgm in=spectre out=spectre.pgm
- This converts the NDF called spectre (in file spectre.sdf)
to the PGM file spectre.pgm.
- Notes:
- This programme was written for diagnostic purposes and is included just
in case someone finds it useful.
- Implementation Status:
- Bad values in the data array are replaced
with zero in the output PGM file.
Next: NDF2TIFF - Converts an NDF to an 8-bit TIFF-6.0-format file.
Up: Specifications of CONVERT Applications
Previous: NDF2IRAF - Converts an NDF to an IRAF image
CONVERT A Format-conversion Package
Starlink User Note 55
Malcolm J. Currie
G.J.Privett
A.J.Chipperfield
D.S.Berry
A.C.Davenhall
2010 February 2
E-mail:ussc@star.rl.ac.uk
Copyright © 2005 Council for the Central Laboratory of the Research Councils