![]() |
Institut für Astronomie und AstrophysikAbteilung AstronomieSand 1, D-72076 Tübingen, Germany |
![]() |
TAB_READ
Procedure to read an SDAS table file
tab_read,name,tcb,table,header
name - name of the table file
tcb - table control block
Longword array of size 16 x maxcols+2
where maxcols is the maximum number of columns
allocated for the table.
tcb(*,0) contains:
word 0 SPARE
1 number of user parameters
2 max. number of user par. allowed
3 number of rows in the table
4 number of allocated rows (for col. ordered tab)
5 number of columns defined
6 max number of columns
7 length of row used (in units of 2-bytes)
8 max row length (in units of 2-bytes)
relevant only for row ordered tables.
9 table type (11 for row order, 12 for col. order)
15 update flag (0-readonly, 1-update)
tcb(*,i) contains description of column i
word 0 column number
1 offset for start of row in units of 2-bytes
2 width or column in 2-byte units
3 data type
6 = real*4
7 = real*8
4 = integer*4
1 = boolean*4
2 = character string
4-8 ascii column name up to 19 characters
9-13 column units (up to 19 characters)
14-15 format string
tcb(*,max number of columns+1)= file name
table - table array, Byte array row length (bytes) x nrows
header - header parameters in form usable by sxpar, sxaddhist,
sxaddpar, ect.
Version 1 D. Lindler Jan 88
Converted to NEW IDL April 90 D. Lindler
Converted to IDL V5.0 W. Landsman September 1997
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]