
Next: FITS2HDS Up: TEXT2HDS Prev: CNAME
Examples
To convert a text file of about 10000 lines containing the columns
X, Y and PIXEL VALUE into a basic HDS file.
ICL> TEXT2HDS
INFILE - Name of input text file > M33.DAT
OUTFILE - Name of output HDS file > M33_IMAGE
NCOLS - Number of columns in the text file > 3
NROWS - Maximum number of lines in input file > 20000
CNAME1 - Name of array to hold 1st column > XAXIS
CNAME2 - Name of array to hold 2nd column > YAXIS
CNAME3 - Name of array to hold 3rd column > DATA_ARRAY
Produces:
M33_IMAGE.
XAXIS(10000)
YAXIS(10000)
DATA_ARRAY(10000)
To convert the same file into an EVENT dataset
ICL> TEXT2HDS EVENT OUTFILE=OUT
Produces:
OUT
.XAXIS
. .DATA_ARRAY(10000)
. .UNITS =" "
. .FIELD_MIN = 0.00000E+00
. .FIELD_MAX = 9999.0
.YAXIS
. .DATA_ARRAY(10000)
. .UNITS =" "
. .FIELD_MIN = 0.00000E+00
. .FIELD_MAX = 9000.0
.DATA_ARRAY
. .DATA_ARRAY(10000)
. .UNITS =" "
. .FIELD_MIN = 3.50000E+00
. .FIELD_MAX = 512.400
If you have a SCAR descriptor file for the input file.
ICL> TEXT2HDS SCAR EVENT
INFILE - Name of input text file > M33.DAT
DSCFILE - Name of SCAR descriptor file > DSCFM33.DAT
OUTFILE - Name of output HDS file > M33_EVENT

Next: FITS2HDS Up: TEXT2HDS Prev: CNAME