snsim.survey

This module contains the class which are used in the simulation.

Classes

SurveyObs

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:
Returns:

pandas dataframe containing the observations.

Return type:

pandas.DataFrame()

show_map(ax=None)[source]

Plot a representation of sub-fields.

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.