To convert a text file of about 10000 lines containing the columns X, Y and PIXEL VALUE into a basic HDS file.
Produces: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 - Mximum 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
To convert the same file into an EVENT datasetM33_IMAGE. XAXIS(10000) YAXIS(10000) DATA_ARRAY(10000)
Produces:ICL> TEXT2HDS EVENT OUTFILE=OUT
If you have a SCAR descriptor file for the input file.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
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