threeML.plugins.PhotometryLike module¶
-
class
threeML.plugins.PhotometryLike.
BandNode
(name, index, value, mask)[source]¶ Bases:
object
-
property
off
¶ ‘p.off = True’ or ‘p.off = False’.
- Type
Turn on or off the band. Use booleans, like
-
property
on
¶ ‘p.on = True’ or ‘p.on = False’.
- Type
Turn on or off the band. Use booleans, like
-
property
-
class
threeML.plugins.PhotometryLike.
PhotometryLike
(name: str, filters: Union[speclite.filters.FilterSequence, speclite.filters.FilterResponse], observation: threeML.utils.photometry.photometric_observation.PhotometericObservation)[source]¶ Bases:
threeML.plugins.XYLike.XYLike
-
classmethod
from_file
(name: str, filters: Union[speclite.filters.FilterResponse, speclite.filters.FilterSequence], file_name: str)[source]¶ Create the a PhotometryLike plugin from a saved HDF5 data file
- Parameters
name – plugin name
filters – speclite filters
file_name – name of the observation file
-
classmethod
from_kwargs
(name, filters, **kwargs)[source]¶ Example:
- grond = PhotometryLike.from_kwargs(‘GROND’,
filters=threeML_filter_library.ESO.GROND, g=(20.93,.23), r=(20.6,0.12), i=(20.4,.07), z=(20.3,.04), J=(20.0,.03), H=(19.8,.03), K=(19.7,.04))
Magnitudes and errors are entered as keyword arguments where the key is the filter name and the argument is a tuple containing the data. You can exclude data for individual filters and they will be ignored during the fit.
NOTE: PhotometryLike expects apparent AB magnitudes. Please calibrate your data to this system
- Parameters
name – plugin name
filters – speclite filters
kwargs – keyword args of band name and tuple(mag, mag error)
-
property
magnitude_errors
¶
-
property
magnitudes
¶
-
classmethod