next up previous 393
Next: GIF2NDF - Converts a GIF file into an NDF.
Up: Specifications of CONVERT Applications
Previous: FITS2NDF - Converts FITS files into NDFs


GASP2NDF - Converts an image in GASP format to an NDF

Description:
This application converts a GAlaxy Surface Photometry (GASP) format file into an NDF.

Usage:
gasp2ndf in out shape=?

Parameters:

IN = FILENAME (Read)
A character string containing the name of GASP file to convert. The extension should not be given, since ".dat" is assumed.
OUT = NDF (Write)
The name of the output NDF.
SHAPE( 2 ) = _INTEGER (Read)
The dimensions of the GASP image (the number of columns followed by the number of rows). Each dimension must be in the range 1 to 1024. This parameter is only used if supplied on the command line, or if the header file corresponding to the GASP image does not exist or cannot be opened.

Examples:

gasp2ndf m31_gasp m31
Convert a GASP file called m31_gasp.dat into an NDF called m31. The dimensions of the image are taken from the header file m31_gasp.hdr.

gasp2ndf n1068 ngc1068 shape=[256,512]
Take the pixel values in the GASP file n1068.dat and create the NDF ngc1068 with dimensions 256 columns by 512 rows.

Notes:
  • A GASP image is limited to a maximum of 1024 by 1024 elements. It must be two dimensional.

  • The GASP image is written to the NDF's data array. The data array has type _WORD. No other NDF components are created.

  • If the header file is corrupted, you must remove the offending ".hdr" file or specify the shape of the GASP image on the command line, otherwise the application will continually abort.

Related Applications :
CONVERT: NDF2GASP.

References :
GASP documentation (MUD/66).



next up previous 393
Next: GIF2NDF - Converts a GIF file into an NDF.
Up: Specifications of CONVERT Applications
Previous: FITS2NDF - Converts FITS files into NDFs

CONVERT A Format-conversion Package
Starlink User Note 55
Malcolm J. Currie
G.J.Privett
A.J.Chipperfield
D.S.Berry
A.C.Davenhall
2008 May 19
E-mail:ussc@star.rl.ac.uk

Copyright © 2005 Council for the Central Laboratory of the Research Councils