snsim.survey¶
This module contains the class which are used in the simulation.
Classes¶
This class deals with the observations of the survey. |
Module Contents¶
- class snsim.survey.SurveyObs(survey_config)[source]¶
This class deals with the observations of the survey.
- Parameters:
survey_config (|) – It contains all the survey configuration.
survey_config
FILE (| ├── survey_file PATH TO SURVEY)
float (| ├── dec_size DEC FIELD SIZE IN DEG ->)
str (SUBFIELD KEY ->)
opt
str
opt
float
opt
float
opt
survey_cut (| ├──)
dict (CUT ON OBS FILE ->)
opt
add_data (| ├──)
list(str) (LIST OF KEY TO ADD METADATA ->)
opt
float
geo_field_map (opt if)
float
geo_field_map
str
opt
field_map (| ├──)
str
opt
sub_field_key (| └──)
str
opt
class. (Initialize SurveyObs)
- compute_geo_field_map()[source]¶
Compute the GeoFieldMap and writte it for future use
- Returns:
GeoDataFrame
- Return type:
GeoFieldMap
- get_observations(params, phase_cut=None, nep_cut=None, IDmin=0, use_dask=False, npartitions=None)[source]¶
Give the epochs of observations of a given SN.
- Parameters:
ra (numpy.ndarray(float) or float) – Obj ra coord [rad].
dec (numpy.ndarray(float) or float) – Obj dec coord [rad].
t0 (numpy.ndarray(float) or float) – Obj sncosmo model peak time.
MinT (numpy.ndarray(float) or float) – Obj sncosmo model mintime.
MaxT (numpy.ndarray(float) or float) – Obj sncosmo model maxtime.
nep_cut (list(list(int, float, float, str)), opt) – The cut [nep, mintime, maxtime, band].
IDmin (int, opt) – ID of the first object.
- Returns:
pandas dataframe containing the observations.
- Return type:
- property config¶
Survey configuration.
- property band_dic¶
band_sncosmo.
- Type:
Get the dic band_survey
- property obs_table¶
Table of the observations.
- property gain¶
Get CCD gain in e-/ADU.
- property zp¶
Get zero point and it’s uncertainty.
- property fwhm_psf¶
Get PSF width.
- property duration¶
Get the survey duration in days.
- property start_end_days¶
Get the survey start and ending days.
- property field_size_rad¶
Get field size ra, dec in radians.