TranslateFile¶
- class eazy.param.TranslateFile(file='zphot.translate')[source]¶
Bases:
objectFile for translating catalog columns to associate bandbasses to them
The
filehas formatflux_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_ch1is a column in the catalog table corresponding to the IRAC 3.6 µm flux density.F18indicates that this is a flux density column and is associated with filter number 18 in theFilterFile.E18indicates an uncertainty column, and filters must have both flux density and uncertainty columns to be considered.The original catalog could have had column names
F18andE18and not needed a translate file but it is generally preferable to have more descriptive column names that aren’t necessarily tied to a particulareazyfilter file.Note, similarly, that columns like
F{N}andE{N}are treated as these types of flux and uncertainty columns. If they correspond to something else, they should be “translated” to avoid confusionMethods 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