Class: RFits::AsciiTable
Overview
A class representing an ASCII table.
Constant Summary
Constants inherited from HDU
Instance Attribute Summary
Attributes inherited from Table
Attributes inherited from HDU
Instance Method Summary collapse
Methods inherited from Table
Methods inherited from HDU
#hdu_type, #initialize, #position, #reset_position
Constructor Details
This class inherits a constructor from RFits::Table
Instance Method Details
#create(at) ⇒ Object
1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 |
# File 'lib/rfits/rfits.rb', line 1292 def create(at) self.file.set_position(at - 1 < 0 ? 0 : at - 1) IO::Proxy.fits_insert_atbl(self.file.io, 0, 0, @column_names.size, @column_names, nil, @column_formats, @column_units, @extname, 0) @extpos = at # This just makes sure something is written out right away. self.header['RFITS1234'] = 'temp' self.header.delete('RFITS1234') end |