TranslateFile

class eazy.param.TranslateFile(file='zphot.translate')[source]

Bases: object

File for translating catalog columns to associate bandbasses to them

The file has format

flux_irac_ch1  F18
err_irac_ch1   E18
...

or a CSV table with format

column, trans, error
flux_irac_ch1, F18
err_irac_ch1,  E18, 1.0
...

where flux_irac_ch1 is a column in the catalog table corresponding to the IRAC 3.6 µm flux density. F18 indicates that this is a flux density column and is associated with filter number 18 in the FilterFile.

E18 indicates an uncertainty column, and filters must have both flux density and uncertainty columns to be considered.

The original catalog could have had column names F18 and E18 and not needed a translate file but it is generally preferable to have more descriptive column names that aren’t necessarily tied to a particular eazy filter file.

Note, similarly, that columns like F{N} and E{N} are treated as these types of flux and uncertainty columns. If they correspond to something else, they should be “translated” to avoid confusion

Methods Summary

change_error([filter, value])

Modify uncertainties based on error scaling factors in translate file

to_csv()

Generate CSV string

write([file, show_ones])

Write to an ascii file

Methods Documentation

change_error(filter=88, value=100000000.0)[source]

Modify uncertainties based on error scaling factors in translate file

to_csv()[source]

Generate CSV string

write(file=None, show_ones=False)[source]

Write to an ascii file