The snat_sim
package is designed to automatically integrate with other Python
packages commonly used in scientific research. This integration extends the
functionality of various external packages and is performed automatically on
import. A description of how snat_sim
integrates with different packages
is provided below. For a technical overview on the implementation of each
integration, see the utils module documentation
or follow one of the links below.
The pandas
package is designed to support the manipulation of tabular data.
In addition to providing an impressive collection of built-in data-analysis tools,
the package also supports the implementation of
custom accessors
that can extend the capability of pandas
objects.
Importing the snat_sim
package will automatically register custom accessors
with the pandas
package.
A summary of different groups of accessors is provided below, including links to detailed documentation of the accessible functions.
Time series utilities are available for pandas.Series
objects and are accessible via the
tsu
accessor name.
Linearly interpolate the series using periodic boundary conditions |
|
Resample the series evenly from the beginning of the earliest year through the end of the latest year. |
|
Return the supplemented subset of the series corresponding to a given year |
The sncosmo
package is used to analyze spectrophotometric observations of supernovae.
The package includes a registry system
that allows users to retrieve supernova models, filter profiles, and other information by name.
By default, the sncosmo
package comes pre-packaged with a number of filter response
curves from different astronomical surveys. The snat_sim
package extends the number of
available filter profiles by registering additional filters for the Dark Energy Camera (DECam)
and the Legacy Survey of Space and Time (LSST). A summary of the registered filters is
provided below:
Registered Filter Name |
Filter Description |
---|---|
DECam_<ugrizY>_filter |
DECam optical response curves |
DECam_atm |
Fiducial atmosphere assumed for the optical response curves |
DECam_ccd |
DECam CCD Response curve |
Registered Filter Name |
Filter Description |
---|---|
lsst_detector |
Detector sensitivity defined in the LSST Science Requirements Document. |
lsst_atmos_10 |
Fiducial atmosphere over a 10 year baseline. |
lsst_atmos_std |
Fiducial atmosphere likely for LSST at 1.2 airmasses. |
lsst_filter_<ugrizy> |
Throughput of the <ugrizy> glass filters only. |
lsst_hardware_<ugrizy> |
Hardware contribution response curve in each band. |
lsst_total_<ugrizy> |
Total response curve in each band. |
lsst_m<123> |
Response curve contribution from each mirror. |
lsst_lens<123> |
Response curve contribution from each lens. |
lsst_mirrors |
Combined result from all mirrors. |
lsst_lenses |
Combined response from all lenses. |
lsst_<ugrizy>_no_atm |
Throughput in each band without a fiducial atmosphere. |