Daophot

class astropy.io.ascii.daophot.Daophot [edit on github][source]

Bases: astropy.io.ascii.core.BaseReader

Read a DAOphot file. Example:

#K MERGERAD   = INDEF                   scaleunit  %-23.7g  
#K IRAF = NOAO/IRAFV2.10EXPORT version %-23s
#K USER = davis name %-23s
#K HOST = tucana computer %-23s
#
#N ID    XCENTER   YCENTER   MAG         MERR          MSKY           NITER    \
#U ##    pixels    pixels    magnitudes  magnitudes    counts         ##       \
#F %-9d  %-10.3f   %-10.3f   %-12.3f     %-14.3f       %-15.7g        %-6d     
#
#N         SHARPNESS   CHI         PIER  PERROR                                \
#U         ##          ##          ##    perrors                               \
#F         %-23.3f     %-12.3f     %-6d  %-13s
#
14       138.538   256.405   15.461      0.003         34.85955       4        \
-0.032      0.802       0     No_error

The keywords defined in the #K records are available via output table meta attribute:

data = ascii.read('t/daophot.dat')
for keyword in data.meta['keywords']:
    print keyword['name'], keyword['value'], keyword['units'], keyword['format']

The units and formats are available in the output table columns:

for colname in data.colnames:
     col = data[colname]
     print colname, col.units, col.format

Methods Summary

read(table)
write([table])

Methods Documentation

read(table) [edit on github][source]
write(table=None) [edit on github][source]

Page Contents