set_gaussian_source#
- tilepy.include.CampaignDefinition.set_gaussian_source(obspar, ra, dec, sigma, name='gaussian_event')[source] [edit on github]#
Configure an ObservationParameters instance to use a simulated Gaussian probability map.
- Parameters:
obspar (ObservationParameters) – The instance to configure.
ra (float) – Right Ascension of the source in degrees.
dec (float) – Declination of the source in degrees.
sigma (float) – Standard deviation (1-sigma) of the Gaussian in degrees.
name (str, optional) – Event name to assign if not already set (default is “gaussian_event”).
- Returns:
This function modifies
obsparin place and returns nothing.- Return type:
None
Example
>>> obspar = ObservationParameters() >>> set_gaussian_source(obspar, ra=180.0, dec=30.0, sigma=2.5) >>> print(obspar.mode) gaussian