astropy:docs

DolphotTable

class delphinus.phottable.DolphotTable(hdfPath)[source]

Bases: object

Represents the output from Dolphot in an HDF5 table.

Attributes Summary

image_bands List of image bandpasses, ordered with self.image_paths().
image_keys List of image keys in photometry, ordered as in catalog.
image_paths List of image paths in photometry, ordered as in catalog.

Methods Summary

add_column(colname, coldata[, shape]) Add a column to the photometry table.
export_ascii(path[, global_cols, ...]) Export an ASCII table of the dataset, saving it to path.
make(tablePath, images, referenceImage, ...) Initialize a DolphotTable using data from the Dolphot class.
plot_luminosity_function_diagnostics(...[, ...]) docstring for plot_luminosity_function_diagnostics
set_metadata(key, value) Write metadata to the photometry table.

Attributes Documentation

image_bands[source]

List of image bandpasses, ordered with self.image_paths().

image_keys[source]

List of image keys in photometry, ordered as in catalog.

Image keys are strings used to represent an image in your pipeline.

image_paths[source]

List of image paths in photometry, ordered as in catalog.

Methods Documentation

add_column(colname, coldata, shape=None)[source]

Add a column to the photometry table.

The procedure for adding columns to pytables tables is given by https://gist.github.com/swarbhanu/1405074

export_ascii(path, global_cols=None, image_cols=None, colors=None)[source]

Export an ASCII table of the dataset, saving it to path.

Parameters :

path : str

Relative path where the file will be written.

global_cols : list

Sequence of column names to export that are global, (applying to all images)

image_cols : list

Sequence of column names to export that apply to each image. In the output file these columns will have a suffix corresponding to each image’s key.

colors : list of tuples

Colours (e.g., B-V) can also be computed an exported in a new column. For each colour, add a tuple to the colors list. That tuple has two items, corresponding to the indices of the images. If the J-band image is at index 0, and the K-band image at index 1, then:

colors=[(0, 1)]

will create a column named J_K, assuming those are the image bands for those columns.

classmethod make(tablePath, images, referenceImage, photPath, psfsPath, apcorPath, execTime=None)[source]

Initialize a DolphotTable using data from the Dolphot class.

plot_luminosity_function_diagnostics(plotPathRoot, magLim=None, fmt='pdf')[source]

docstring for plot_luminosity_function_diagnostics

set_metadata(key, value)[source]

Write metadata to the photometry table.

Parameters :

key : str

Key for metadata dict.

value : :

Value of metadata.

Page Contents