lightcurvelynx.obstable.fake_obs_table

Attributes

logger

Classes

FakeObsTable

A subclass for a (simplified) fake survey. The user must provide a constant

Module Contents

logger[source]
class FakeObsTable(table, *, colmap=None, bandflux_error=None, **kwargs)[source]

Bases: lightcurvelynx.obstable.obs_table.ObsTable

A subclass for a (simplified) fake survey. The user must provide a constant flux error (bandflux_error) to use or enough information to compute the provided noise model.

The class uses a flexible deriver to try to compute any missing parameters needed from what is provided.

Defaults are set for other parameters (e.g. exptime, nexposure, read_noise, dark_current), which the user can override with keyword arguments to the constructor.

Parameters:
  • table (dict or pandas.core.frame.DataFrame) – The table with all the ObsTable information. Must have columns “time”, “ra”, “dec”, and “filter”.

  • colmap (dict, optional) – A mapping of standard column names to a list of possible names in the input table. Each value in the dictionary can be a string or a list of strings.

  • zp_per_band (dict, optional) – A dictionary mapping filter names to their instrumental zero points (flux in nJy corresponding to 1 electron per exposure). The filters provided must match those in the table. This is required if the table does not have a zero point column.

  • bandflux_error (float or dict, optional) – If provided, use this constant flux error (in nJy) for all observations (overriding the normal noise compuation). A value of 0.0 will produce a noise-free simulation. If a dictionary is provided, it should map filter names to constant flux errors per-band. This setting should primarily be used for testing purposes.

  • radius (float, optional) – The angular radius of the field of view of the observations in degrees (default=None).

  • saturation_mags (dict, optional) – A dictionary mapping filter names to their saturation thresholds in magnitudes. The filters provided must match those in the table. If not provided, saturation effects will not be applied.

  • **kwargs (dict) –

    Additional keyword arguments to pass to the ObsTable constructor. This includes overrides for survey parameters such as:

    • survey_name: The name of the survey (default=”FAKE_SURVEY”).