TranslateFile¶
- class eazy.param.TranslateFile(file='zphot.translate')[source]¶
Bases:
object
File for translating catalog columns to associate bandbasses to them
The
file
has 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_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 theFilterFile
.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
andE18
and not needed a translate file but it is generally preferable to have more descriptive column names that aren’t necessarily tied to a particulareazy
filter 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