[AstroPy] ATpy questions
Tue Aug 23 11:27:43 CDT 2011
I have 3 questions about the use of ATpy:
How to add a leading "#" to the header of the Table? It is possible to read tables with a header like "# erosid Ra Dec MagR", but writing such a table removes the "#".
How to replace in a table an entire column by the content of a single-column asciitable ?
Data = atpy.Table(Catalog, type='ascii', numpy=False)
DataDistort = Data
RA, DEC = asciitable.read(RAdec, delimiter='\n', Reader=asciitable.NoHeader, numpy=False), asciitable.read(DECdec, delimiter='\n', Reader=asciitable.NoHeader, numpy=False)
DataDistort.Ra = RA
DataDistort.Dec = DEC
put the first value of RA/DEC on all the rows of DataDistort.Ra/Dec.
How to change the format of a column? I didn't find anything to force the writing of trailing zeros.
Thanks for your help,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy