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
References
GASP documentation (MUD/66).
Copyright © 2015 Science and Technology Research Council