lcdata.to_sncosmo

lcdata.to_sncosmo(light_curve)

Convert an lcdata light curve to sncosmo format.

This adds the zp and zpsys keys that are required by sncosmo, and converts the band name to a string instead of the bytes type used internally.

Parameters

light_curve (Table) – Light curve in lcdata format

Returns

Light curve in sncosmo format

Return type

Table