Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
291 commits
Select commit Hold shift + click to select a range
e0034b2
modified setup.py to install txt files in sn_simu_input
Oct 16, 2020
f2cc829
code cleaning
pgris Oct 23, 2020
006025c
few modifs to have a random production for non IA SN
Nov 18, 2020
be27156
removed a non Ia possible template choice - lead to a program crash a…
pgris Nov 19, 2020
8e15b78
add season length in lc metadata
pgris Dec 9, 2020
3cd9024
add season in LC tables
Dec 9, 2020
0f8436f
define a unique SNID and used it as the key to access LC
pgris Dec 15, 2020
e7fae6a
moved H0 to 70 by default (used to be 72)
pgris Dec 17, 2020
d0aadf2
bug correction: there was no phase cut when error_model=1 in sn_cosmo…
pgris Jan 5, 2021
3b8049c
bug correction in E(B-V) estimation: coordinates are in radian, not i…
pgris Jan 7, 2021
0642c9d
add sntype in lc metadata
pgris Jan 7, 2021
b0897ce
bug correction when using lcfast and dust
pgris Jan 7, 2021
dd66e29
lighten the lc table content to assess impact on size output
pgris Jan 12, 2021
69eeb1f
do not load dust correction file if ebvofMW is zero
pgris Jan 19, 2021
df6bd1b
add the ability to simulate SN Ia from templates - type: SN_IaT
pgris Jan 27, 2021
73d7bb8
normalize nonIa or templates to abspeakmag
pgris Jan 29, 2021
7b3a9e3
bug correction
Feb 1, 2021
9574050
add flux_e_sec in output variables
Feb 1, 2021
79434af
add ebvofMW in lc metadata
Feb 1, 2021
9aa2f17
add the possibility to select LC points depending on error model flux…
pgris Feb 2, 2021
ae3c578
removed errormodelCut - this should be applied elsewhere
pgris Feb 8, 2021
7244ec6
bug correction
pgris Feb 8, 2021
393b5ed
code update following some changes in simu config file
pgris Mar 4, 2021
2ff53b6
add a wrapper for simulation
Mar 5, 2021
6732505
code cleaning
Mar 5, 2021
8c90af2
code cleaning
Mar 5, 2021
c137010
add a simu parameter so as not to save on disk empty LC
pgris Mar 11, 2021
9f9e877
add the possibility to estimate SNR_photo_bd. Not activated yet
Mar 22, 2021
b552389
code update following some changes in the simulation config file
pgris Mar 25, 2021
e7a5fbc
few modifs to have a more flexible use of the number of seasons to pr…
May 19, 2021
76b83d8
bug correction in seasons estimation
Jul 29, 2021
cddff6a
add an absolute number of SN for production
Aug 25, 2021
bc93293
take the initial x0 (before alpha and beta correction) from sncosmo
pgris Sep 22, 2021
7f563c6
code update to account for the new way of estimating (x1,color) distr…
pgris Sep 23, 2021
2eed7ea
few checks/adjustments
pgris Sep 24, 2021
4c8fb1d
H0=70 by def.
pgris Oct 1, 2021
ad923ff
add a sigmaInt in the simulation
pgris Oct 1, 2021
87903a3
set sigmaInt to 0.0 by default
pgris Oct 5, 2021
11aba9d
add possibility to vary x1 and color distribution
pgris Oct 5, 2021
c5daf4f
add lambdabar estimator to output lc variables
pgris Nov 29, 2021
d4875ff
add blueCutoff and redCutoff values per band
pgris Nov 30, 2021
850cfce
code modified to estimate syste on Mb from sigmaInt
pgris Jan 5, 2022
8bdc90b
add a file to estimate systes related to mb
pgris Jan 6, 2022
a814fa0
finish implementation of syste file for mb variation
pgris Jan 6, 2022
b186e2c
keep some of the previously removed columns
pgris Apr 14, 2022
0b9c7e6
code update following changes in sn_simulation parameters
pgris Jul 25, 2022
92a52fc
replace lsst.sims dependencies by rubin_sim ones
pgris Aug 2, 2022
7d550e7
change EBV estimation
pgris Aug 2, 2022
ee92691
code update to be able to use salt3 in sncosmo
pgris Aug 2, 2022
49299e5
add a parameter to remove produced lc if dumped in file
pgris Sep 2, 2022
3bd495c
add full lc path filename in simu file to ease grabing LC from simu
pgris Sep 2, 2022
7cfdac1
code cleaning
pgris Sep 6, 2022
d09d7b1
code update following changes in the stacker; also changed the output…
pgris Sep 6, 2022
b41c2d9
code update
pgris Sep 6, 2022
9e31ce7
cleaning
pgris Sep 7, 2022
f10c6ef
code update
pgris Jan 2, 2023
01c23f5
add the night column in lc output vars
pgris Jan 3, 2023
ffababa
add infoWrapper class
pgris Jan 3, 2023
6057084
add night col and modified plotLC
pgris Jan 3, 2023
abc3bd3
make this work in multiprocessing mode
pgris Jan 3, 2023
ced562b
add fit LC
pgris Jan 3, 2023
c5ef793
add a method to dump SN on hdf5 file for each pixel
pgris Jan 4, 2023
a22660b
removed some printing
pgris Jan 4, 2023
4abd56c
code update at the loading reference LC stage
pgris Jan 5, 2023
c61d1e7
code cleaning
pgris Jan 5, 2023
f464c44
code update
pgris Jan 5, 2023
5e3b81b
add a script to perform info+fit
pgris Jan 6, 2023
6f4f1cb
autopep8
Jan 18, 2023
3c108f7
modifs for compatibility with rubin_sim+autopep8
Jan 18, 2023
a53326d
autopep8
Jan 18, 2023
076069d
remove dependencies on Telescope class
pgris Jan 19, 2023
2b85f2f
code update
pgris Jan 20, 2023
580177f
adapt band name for sncosmo fit
pgris Jan 23, 2023
108947b
code updated, cleaned and documented
pgris Jan 24, 2023
20b4eab
update ref files
pgris Jan 24, 2023
f94cf74
code update
pgris Jan 25, 2023
a5330cc
add multiprocessing for the fit
pgris Jan 26, 2023
a2b7c4f
code update
pgris Jan 26, 2023
f341005
update following recent changes in sn_simulation
pgris Jan 26, 2023
e860ce8
code update
pgris Jan 30, 2023
cfe06d5
remove old dependencies (gamma file, mag_to_flux)
Jan 31, 2023
64a87de
some modifs to estimate LS selection related to phase range
Feb 4, 2023
54c9910
significant cleaning in progress
pgris Feb 10, 2023
00962a2
code update
pgris Feb 10, 2023
fcdb0d0
some code cleaning
pgris Feb 13, 2023
105287a
changed selection dict
pgris Feb 14, 2023
661cc8b
removed some printing
pgris Feb 15, 2023
fb4bfc6
set salt3 v2.0 as default simu model
pgris Feb 15, 2023
23fe989
remove dependency to sn_stackers
pgris Feb 15, 2023
3417021
code protection if no gen params
pgris Feb 17, 2023
8790e4e
selecting obs corresponding to seasons
pgris Feb 23, 2023
70d8cee
remove SN_ prefix; mem cleaning when pixel processing is done
pgris Feb 27, 2023
64b9cc8
add a clean parameter to clean dir before processing
pgris Mar 3, 2023
a7d83a8
add SN in front of prodid to specify wht is produced
pgris Mar 3, 2023
950e99b
add healpixID in path for astropy table
pgris Mar 3, 2023
5374704
add useful printing
pgris Apr 6, 2023
af3b5b0
set to default: rate_sn=combined, min_rf_phase_qual=0., max_rf_phase_…
pgris Jun 12, 2023
d142a8f
add new var for LC selection; remove LC selection stage from here
pgris Jun 23, 2023
e3ad560
move some printing to avoid crashes
pgris Jun 30, 2023
39c4e06
print healpixID - for debugging purpose
pgris Jun 30, 2023
208711f
bug correction
pgris Jun 30, 2023
34cb5c8
implement random estimation of SN SEDs
Jul 11, 2023
4e8dd75
started implementation of SN SEDs
Jul 11, 2023
3a2400c
bug correction in SED implementation
pgris Sep 1, 2023
bee5316
add some debug comments
Sep 5, 2023
09ade73
cross check
Sep 6, 2023
d0bad8d
code update following stacker update
pgris Sep 18, 2023
53dcfef
code protection to avoid crash
pgris Sep 25, 2023
cd88e5e
set season gap to 80 days; add a method to plot seasons
pgris Sep 27, 2023
332840c
add a parameter to produce spectra in addition to light curves
pgris Oct 12, 2023
f4cdd4b
modifs to match expected format
pgris Oct 12, 2023
7515093
some modif to save spectra on disk
pgris Oct 12, 2023
6ae7166
set nspectra param to 0 by default
pgris Oct 13, 2023
b3bc84d
include nspectra in the process
pgris Oct 13, 2023
390e44a
some cleaning
pgris Oct 13, 2023
ac48b30
include nspectra in the process
pgris Oct 13, 2023
e699bae
reactivate telescope params
pgris Nov 23, 2023
d38bde4
some modifs to include the telescope version in the simulation
pgris Nov 23, 2023
a9f57e8
code update - simu params
pgris Nov 23, 2023
3f66c3f
update: Instrument->InstrumentSimu to avoid conflic with the Instrume…
pgris Nov 23, 2023
f7cba3d
remove some debug print
pgris Nov 23, 2023
eff845f
trying to include estimation of zp vs airmass on the fly
pgris Nov 23, 2023
9e0ccfd
remove dependency to an external file, zp_airmass.npy. These paramete…
pgris Nov 24, 2023
45120b3
updates following modifs in sn_telmodel
pgris Nov 27, 2023
63e9414
add some code protection if no data available for LC simu
pgris Nov 28, 2023
fc04a85
add some code protection if no LC could be simulated
pgris Nov 28, 2023
dfc207f
output data format is now pandas df
pgris Dec 1, 2023
3d2d11f
bug correction
Dec 1, 2023
9892821
bug correction in SNID format
pgris Dec 1, 2023
aa138db
code cleaning
pgris Dec 4, 2023
b033700
add a function to check and correct for Cov_xy col names
pgris Dec 4, 2023
f5bc158
bug corr in sn_id
pgris Dec 6, 2023
ffb2f35
add lsst start as output var
pgris Dec 11, 2023
791172f
add lsst_start and max_mjd as output var in metadata
pgris Dec 11, 2023
bcf6435
change the way of dumping data
pgris Dec 11, 2023
573f15a
bug correction
Dec 14, 2023
ba7047a
add a method to estimate seasons using kmean (clusters) algorithm
pgris Dec 21, 2023
7764440
cleaning
pgris Dec 21, 2023
b2f2100
tuning
pgris Dec 21, 2023
e95a4d3
bug correction in make_cluster to get seasons from obs
pgris Jan 8, 2024
2a6aee9
add a file of simu parameters as input
pgris Jan 9, 2024
cb846ab
add simu parameters in metadata
pgris Jan 9, 2024
15a4088
implement the possibility to use an input simu parameter file
pgris Jan 9, 2024
1ace064
add a smearFlux parameter - default to 1
pgris Jan 10, 2024
bbd9e78
add SNID parameter in simu input file reading to ease future comparisons
pgris Jan 10, 2024
5a38851
add the possibility to smear LC fluxes
pgris Jan 10, 2024
b53924a
bug correction
pgris Jan 10, 2024
53591cf
add two params to estimate unbiased rate
pgris Feb 5, 2024
410b2c1
bug correction
pgris Feb 8, 2024
8e9c0a5
code update related to the telescope model
pgris Apr 8, 2024
37a0991
add airmassType param
pgris Apr 9, 2024
2464d52
cleaning
pgris Apr 10, 2024
f883e26
cleaning
pgris Apr 10, 2024
bd79c08
cleaning
pgris Apr 11, 2024
354e3d6
some adapt for the simuwrapper class
pgris Apr 11, 2024
09c876b
add parameter for simu save wrapper
pgris Apr 12, 2024
3a4ef9e
add metadata
pgris Apr 12, 2024
6f84240
bug correction
pgris Apr 12, 2024
e9b5b98
cleaning
pgris Apr 16, 2024
813be83
add saturation effects
pgris Apr 19, 2024
e3bf82c
code protection
pgris Apr 19, 2024
58a2501
code protection
pgris May 3, 2024
5534097
add psf_flux and ccd full well in lc metadata
pgris May 7, 2024
82f3daa
add zmeas from sigmaz estimator
pgris May 7, 2024
41dcbd9
add a param fit_remove_sat
pgris May 13, 2024
91232d8
bug correction
pgris May 14, 2024
f0d948d
cleaning
pgris May 14, 2024
394d04c
extend minwave and maxwave model for salt3
pgris May 14, 2024
083cfbb
bug correction when estimating saturated LC fluxes
pgris May 15, 2024
7f2efb1
typo corr
pgris May 15, 2024
3a32133
cleaning
pgris May 22, 2024
12d10c1
set flux smearing flag to 1 by default
pgris Jun 7, 2024
17f4f6e
cleaning
pgris Jun 7, 2024
4763e5d
remove comment
pgris Jun 10, 2024
fa45d2d
add weight for each produced SN
Jun 13, 2024
ddda42d
add a weight for simulated SNs
pgris Jun 14, 2024
b7f8624
code update
pgris Jun 14, 2024
98c2df5
bug correction
pgris Jun 17, 2024
d5d0488
removed weight param
pgris Jun 17, 2024
10eec6e
removed weight param
pgris Jun 17, 2024
0e6e903
changed minRFphaseQual and maxRFphaseQual values for SN
pgris Jul 19, 2024
47b7f68
implementing new atmos files
pgris Sep 18, 2024
a659edb
modifs to account for the new atmospheric files
pgris Sep 19, 2024
ff7414f
code update
pgris Sep 19, 2024
3f8bdc0
bug correction in register_band
Nov 20, 2024
9aa33f5
code update
Nov 20, 2024
c9f2e73
remove verbosity
Nov 20, 2024
87a4140
update to account for the new throughput model
pgris Feb 7, 2025
16cdaa0
add a verbose mode for debug
pgris Feb 10, 2025
b9db726
update
pgris Feb 11, 2025
d608d32
update package
pgris Feb 11, 2025
3e5f051
update
Feb 12, 2025
32da154
adjust min wavelength for salt3
pgris Feb 12, 2025
c4715c6
add a parameter to have a flat z distribution for SN
pgris Mar 24, 2025
9c52d0e
typo correction
pgris Mar 25, 2025
0ea1f0c
add some corrections and LC infos
pgris Apr 17, 2025
6d4c8d2
add x0 estimation from griddata as input parameter (default=no)
pgris May 15, 2025
4d942e0
add the possibility to restict the MJD range for T0 choices
pgris May 16, 2025
e3ff76d
use the flexible way of defining sncosmo bands
pgris Jul 3, 2025
be6b081
update: add throughput dependence on atmospheric parameters
pgris Jul 4, 2025
286bab7
update to include atmos params
pgris Jul 4, 2025
e88910b
cleaning
pgris Jul 4, 2025
24aad9b
implement airmass variation of mean_wavelength
pgris Jul 8, 2025
0b5b22d
add atmos dependent obs
pgris Jul 9, 2025
4415b0f
add smearing (sigma) for atmospheric parameters pwv, ozone and aerosol
pgris Jul 9, 2025
15e24ee
add smearing of atmospheric parameters
pgris Jul 11, 2025
3e1e79b
bug correction
pgris Jul 11, 2025
d10bf14
update: bands registry outside simulation to gain processing time
pgris Jul 16, 2025
595b7a8
update
pgris Jul 16, 2025
8a7bd87
update
pgris Jul 17, 2025
5ca3d56
update
pgris Jul 18, 2025
dc1c180
add the choice for rounding for airmass, pwv,ozone and aerosol
pgris Jul 21, 2025
37d7561
update to include latest parameters
pgris Jul 21, 2025
07fa0c8
cleaning
pgris Jul 21, 2025
288e8a1
code protection
pgris Jul 24, 2025
2e9fc71
propagate properly lsst_start
pgris Jul 24, 2025
c04282c
add pyproject.toml to be compatible with latest pip versions
pgris Sep 9, 2025
0d4cef6
new versioning
pgris Sep 9, 2025
44df484
update
pgris Sep 9, 2025
512effd
update due to sn_telmodel updates
pgris Sep 25, 2025
afd4d8f
add dustmaps as dependency
pgris Sep 25, 2025
c7ab93c
add code protection
pgris Sep 29, 2025
fed073e
implement the estimation of zp, sigma_zp, mean_wave, sigma_mean_wave …
pgris Dec 5, 2025
a3382c1
add atmos param smearing
pgris Dec 8, 2025
9238ba8
implement atmos param sel
pgris Dec 8, 2025
8300030
add round for atmos smeared parameters
pgris Dec 8, 2025
1f9b505
remove rounding in atmos param smearing
pgris Dec 8, 2025
893d90b
update rounding params
pgris Dec 18, 2025
ce578bd
try to speed up the addition of atmos params
pgris Dec 18, 2025
b521e31
add the coaddition of fluxes
pgris Dec 18, 2025
79ef18a
cleaning+default parameter change for sigma_atmosphere
pgris Dec 19, 2025
5d0b30a
removed some dependencies
pgris Dec 19, 2025
84d0ee5
modified to put a line from .toml
pgris Dec 19, 2025
40d85a3
loop on season to minimize mem problems
pgris Jan 6, 2026
cb043d4
zp_airmass as input param (recomputed if required)
pgris Jan 6, 2026
fd2f710
bug correction/code protection
pgris Jan 6, 2026
34245e1
bug correction/code protection
pgris Jan 6, 2026
35e2c3f
check season obs quality (nobs+season length) before processing
pgris Jan 8, 2026
77f344f
bug correction
pgris Jan 9, 2026
5a9b0d6
removed some printing
pgris Jan 12, 2026
b2ccb4e
update
pgris Jan 13, 2026
6f62dcd
debugging multiproc pbs
pgris Jan 14, 2026
1b18ad8
update
pgris Jan 14, 2026
b2ef4c7
update
pgris Jan 14, 2026
80c1b41
update
pgris Jan 14, 2026
187868c
update and cleaning
pgris Jan 15, 2026
ce98951
add dust_map loading
pgris Jan 15, 2026
12fa84a
ebvofMW extracted from a pandas df, no more estimated using SFDQuery
pgris Jan 15, 2026
bfaa7ce
add a comment
pgris Jan 16, 2026
a4b5880
code protection+bug corr in nmultiproc usage
pgris Jan 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
30 changes: 30 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "sn_simulation"
version = "1.1.0"
requires-python = ">=3.5"
dependencies = ["dustmaps",]
authors = [
{name = "Philippe Gris", email = "[email protected]"}
]
maintainers = [
{name = "Philippe Gris", email = "[email protected]"}
]
description = "Simulations for SNe Ia"
readme = "README.rst"
license = {file = "LICENSE"}
classifiers = ["Programming Language :: Python",]

[tool.setuptools.packages.find]
where = [".","sn_simu_input"]
include = ['sn_simulator', 'sn_simu_wrapper', 'sn_simu_input']

[tool.setuptools.package-data]
"*" = ["*.txt"]

[project.urls]
Homepage = "http://github.com/lsstdesc/sn_simulation"
Repository = "https://github.com/lsstdesc/sn_simulation"
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
###### Requirements without Version Specifiers ######
#numpy
25 changes: 0 additions & 25 deletions setup.py

This file was deleted.

34 changes: 34 additions & 0 deletions setup_deprecated.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
from setuptools import setup

# get the version here
pkg_vars = {}

with open("version.py") as fp:
exec(fp.read(), pkg_vars)

setup(
name='sn_simulation',
version=pkg_vars['__version__'],
description='Simulations for supernovae',
url='http://github.com/lsstdesc/sn_simulation',
author='Philippe Gris',
author_email='[email protected]',
license='BSD',
packages=['sn_simulator', 'sn_simu_wrapper', 'sn_simu_input'],
# All files from folder sn_simu_input
package_data={'sn_simu_input': ['*.txt']},
python_requires='>=3.5',
zip_safe=False,
install_requires=[
'sn_tools>=0.1',
'dustmaps',
'sn_telmodel>=0.1'
],
)

# pyproject.toml
dependencies = [
"getObsAtmo@git+https://github.com/lsstdesc/getObsAtmo#egg=getObsAtmo",
"rubin_sim@git+https://github.com/lsst/rubin_sim.git#egg=rubin_sim",
"dustmaps",
]
1 change: 1 addition & 0 deletions sn_simu_input/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .version import __version__
171 changes: 171 additions & 0 deletions sn_simu_input/config_simulation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
## production Id
ProductionIDSimu prodid str #Production Id

## SN parameters
SN Id 100 int #SN Id
SN type SN_Ia str #SN type
# parameter dist
SN modelPar nameFile x1_color_G10.csv str #SN dist filename
SN modelPar dirFile reference_files str #SN dist model ref dir
SN modelPar x1sigma 0 int #shift for x1 distrib parameter
SN modelPar colorsigma 0 int #shift for color distrib parameter
SN modelPar mbsigma 0 int #shift for mb SN parameter
SN modelPar mbsigmafile sigma_mb_from_simu_Ny_40.hdf5 str #file for mbsigma application
#x1
SN x1 type unique str #SN x1 type
SN x1 min -2.0 float #SN x1 min
SN x1 max 0.2 float #SN x1 max
SN x1 step 0.1 float #SN x1 step
# color
SN color type unique str #SN color type
SN color min 0.2 float #SN color min
SN color max 1.0 float #SN color max
SN color step 0.1 float #SN color step
# redshift
SN z type unique str #SN z type
SN z min 0.01 float #SN z min
SN z max 1.0 float #SN z max
SN z step 0.01 float #SN z step
SN z rate combined str #SN z rate
SN z weight sn_rate str #SN z weight(sn_rate/flat)
SN z maxsimu 1.1 float # SN max z for rate
SN z minsimu 0.01 float # SN max z for rate
SN z sigmaz 1.e-5 float # redshift error to be propagated to zsim
# daymax
SN daymax type unique str #SN daymax type
SN daymax step 1. float #SN daymax step
SN daymax restricted 0 int #to restrict daymax values
#rf cuts
SN minRFphase -20. float #SN min rf phase
SN maxRFphase 60. float #SN max rf phase
SN minRFphaseQual -10. float #SN min rf phase qual
SN maxRFphaseQual 35. float #SN max rf phase qual
# other parameters
SN absmag -19.0906 float #SN absmag
SN band bessellB str #SN band
SN magsys vega str #SN magsys
SN differentialFlux 0 int #SN diff flux
SN salt2Dir SALT2_Files str #SN SALT2 dir
SN blueCutoffu 380. float #SN blue cutoff u-band
SN redCutoffu 800. float #SN red cutoff u-band
SN blueCutoffg 380. float #SN blue cutoff g-band
SN redCutoffg 800. float #SN red cutoff g-band
SN blueCutoffr 380. float #SN blue cutoff r-band
SN redCutoffr 800. float #SN red cutoff r-band
SN blueCutoffi 360. float #SN blue cutoff i-band
SN redCutoffi 800. float #SN red cutoff i-band
SN blueCutoffz 380. float #SN blue cutoff z-band
SN redCutoffz 800. float #SN red cutoff z-band
SN blueCutoffy 380. float #SN blue cutoff y-band
SN redCutoffy 800. float #SN red cutoff y-band
SN ebvofMW -1. float #SN E(B-V)
SN NSNfactor 1 int #NSN*factor for simulation
SN NSNabsolute -1 int #absolute number of SN to produce
SN sigmaInt 0.0 float #SN intrinsic dispersion
SN nspectra 0 int #Number of spectra to generate
SN smearFlux 1 int #LC flux smearing
SN alpha 0.13 float #nuisance parameter (alpha)
SN beta 3.1 float #nuisance parameter (beta)
SN x0 griddata 0 int #to extract x0 from griddata
##Simulation parameters(from file)
SN simuFile None str # simulation parameter file

## Cosmology parameters
Cosmology Model w0waCDM str #cosmology model
Cosmology Om 0.30 float #cosmology Omegam
Cosmology Ol 0.70 float #cosmology Omegall
Cosmology H0 70.0 float #cosmology H0
Cosmology w0 -1.0 float #cosmology w0
Cosmology wa 0.0 float #cosmology wa

#Light curve
LC coadd 1 int #to coadd LC fluxes

## Instrument
InstrumentSimu name LSST str #instrument name
InstrumentSimu telescope_dir throughputs str #main telescope dir
InstrumentSimu telescope_tag 1.9 str #throughputs tag version
InstrumentSimu throughputDir baseline str #instrument throughput dir
InstrumentSimu atmosDir atmos str #instrument atmos dir
InstrumentSimu atmosType const str #instrument atmos/const/dep
#airmass
InstrumentSimu airmass 1.2 float #instrument airmass
InstrumentSimu sigma_airmass 0.0 float #instrument sigma_airmass
InstrumentSimu round_airmass 1 int #instrument airmass rounding
InstrumentSimu min_airmass 1.0 float #airmass min after smearing
InstrumentSimu max_airmass 2.9 float #airmass max after smearing
#aerosol
InstrumentSimu aerosol 0.05 float #instrument aerosol
InstrumentSimu sigma_aerosol 0.0 float #instrument sigma_aerosol
InstrumentSimu round_aerosol 4 int #instrument aerosol rounding
InstrumentSimu min_aerosol 0. float #aerosol min after smearing
InstrumentSimu max_aerosol 0.5 float #aerosol max after smearing
#pwv
InstrumentSimu pwv 5.0 float #instrument precipit. water vapor
InstrumentSimu sigma_pwv 0.0 float #instrument sigma precipit. water vapor
InstrumentSimu round_pwv 3 int #instrument precipit. water vapor rounding
InstrumentSimu min_pwv 0.0 float #pwv min after smearing
InstrumentSimu max_pwv 25. float #pwv max after smearing
#ozone
InstrumentSimu ozone 300. float #ozone
InstrumentSimu sigma_ozone 0. float #sigma_ozone
InstrumentSimu round_ozone 3 int #ozone rounding
InstrumentSimu min_ozone 0.0 float #ozone min after smearing
InstrumentSimu max_ozone 600. float #ozone max after smearing
#number of trial to estimate zp
InstrumentSimu ntrial_zp 1 int #ntrial to estimate zp vs airmass





##Observations
Observations filename fullDbName str #observation file name
Observations fieldtype WFD str #observations field type
Observations fieldname all str #observations field name (DD only)
Observations coadd 0 int #observations coaddition per night
Observations season -1 str #observations seasons

## Simulator
Simulator name sn_simulator.sn_cosmo str #simulator name
Simulator model salt3 str #simulator model
Simulator version 2.0 float #simulator version
Simulator errorModel 0 int #simulator error model

## Reference_Files
ReferenceFiles TemplateDir Template_LC str #dir for templates ref files
ReferenceFiles GammaDir reference_files str #dir for gamma ref files
ReferenceFiles GammaFile gamma.hdf5 str #gamma ref file name
ReferenceFiles DustCorrDir Template_Dust str #dir for template dust files
ReferenceFiles fluxpixelDir reference_files str #dir for template dust files
# ReferenceFiles zpDir reference_files str #dir for zp_airmass ref file
# ReferenceFiles zpFile zp_airmass_v1.9.npy str #zp_airmass ref file

## Host
Host 0 int #Host

# Display LC
Display LC display 0 int #display LC
Display LC time 5. float #display LC persistency time

##Output:
OutputSimu directory Output_Simu str #Output directory
OutputSimu save 1 int #output save file in sn_simulator
OutputSimu savefromwrapper 0 int #output save file in simuwrapper
OutputSimu throwempty 1 int #do not save empty LC
OutputSimu throwafterdump 1 int #remove LC after dumping on file
OutputSimu clean 1 int #to clean output dir before processing

#Multiprocessing
MultiprocessingSimu nproc 1 int #multiprocessing number of procs

# Pixelisation
Pixelisation nside 64 int #pixelisation nside Healpix

#Web path
WebPathSimu https://me.lsst.eu/gris/DESC_SN_pipeline str #web path for reference files

#include saturation effects
saturation effect 0 int #to include saturation effects
saturation psf single_gauss str #PSF for saturation effects
saturation ccdfullwell 90.e3 float #ccd full well value
121 changes: 121 additions & 0 deletions sn_simu_input/sncosmo_builtins.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name version type subtype subclass reference website notes
nugent-sn1a 1.2 SN Ia TimeSeriesSource [N02] a
nugent-sn91t 1.1 SN Ia TimeSeriesSource [S04] a
nugent-sn91bg 1.1 SN Ia TimeSeriesSource [N02] a
nugent-sn1bc 1.1 SN Ib/c TimeSeriesSource [L05] a
nugent-hyper 1.2 SN Ib/c TimeSeriesSource [L05] a
nugent-sn2p 1.2 SN IIP TimeSeriesSource [G99] a
nugent-sn2l 1.2 SN IIL TimeSeriesSource [G99] a
nugent-sn2n 2.1 SN IIn TimeSeriesSource [G99] a
s11-2004hx 1.0 SN IIL/P TimeSeriesSource [S11] b [1]
s11-2005lc 1.0 SN IIP TimeSeriesSource [S11] b [1]
s11-2005hl 1.0 SN Ib TimeSeriesSource [S11] b [1]
s11-2005hm 1.0 SN Ib TimeSeriesSource [S11] b [1]
s11-2005gi 1.0 SN IIP TimeSeriesSource [S11] b [1]
s11-2006fo 1.0 SN Ic TimeSeriesSource [S11] b [1]
s11-2006jo 1.0 SN Ib TimeSeriesSource [S11] b [1]
s11-2006jl 1.0 SN IIP TimeSeriesSource [S11] b [1]
hsiao 1.0 SN Ia TimeSeriesSource [H07] c [2]
hsiao 2.0 SN Ia TimeSeriesSource [H07] c [2]
hsiao 3.0 SN Ia TimeSeriesSource [H07] c [2]
hsiao-subsampled 3.0 SN Ia TimeSeriesSource [H07] c [2]
salt2 2.0 SN Ia SALT2Source [G10] d
salt2 2.4 SN Ia SALT2Source [B14b] d
salt2-extended 1.0 SN Ia SALT2Source b [3]
salt2-extended 2.0 SN Ia SALT2Source
salt2-extended-h17 1.0 SN Ia SALT2Source [H17] e [4]
snf-2011fe 1.0 SN Ia TimeSeriesSource [P13] f
snana-2004fe 1.0 SN Ic TimeSeriesSource g [5]
snana-2004gq 1.0 SN Ic TimeSeriesSource g [5]
snana-sdss004012 1.0 SN Ic TimeSeriesSource g [5]
snana-2006fo 1.0 SN Ic TimeSeriesSource g [5]
snana-sdss014475 1.0 SN Ic TimeSeriesSource g [5]
snana-2006lc 1.0 SN Ic TimeSeriesSource g [5]
snana-2007ms 1.0 SN II-pec TimeSeriesSource g [5]
snana-04d1la 1.0 SN Ic TimeSeriesSource g [5]
snana-04d4jv 1.0 SN Ic TimeSeriesSource g [5]
snana-2004gv 1.0 SN Ib TimeSeriesSource g [5]
snana-2006ep 1.0 SN Ib TimeSeriesSource g [5]
snana-2007y 1.0 SN Ib TimeSeriesSource g [5]
snana-2004ib 1.0 SN Ib TimeSeriesSource g [5]
snana-2005hm 1.0 SN Ib TimeSeriesSource g [5]
snana-2006jo 1.0 SN Ib TimeSeriesSource g [5]
snana-2007nc 1.0 SN Ib TimeSeriesSource g [5]
snana-2004hx 1.0 SN IIP TimeSeriesSource g [5]
snana-2005gi 1.0 SN IIP TimeSeriesSource g [5]
snana-2006gq 1.0 SN IIP TimeSeriesSource g [5]
snana-2006kn 1.0 SN IIP TimeSeriesSource g [5]
snana-2006jl 1.0 SN IIP TimeSeriesSource g [5]
snana-2006iw 1.0 SN IIP TimeSeriesSource g [5]
snana-2006kv 1.0 SN IIP TimeSeriesSource g [5]
snana-2006ns 1.0 SN IIP TimeSeriesSource g [5]
snana-2007iz 1.0 SN IIP TimeSeriesSource g [5]
snana-2007nr 1.0 SN IIP TimeSeriesSource g [5]
snana-2007kw 1.0 SN IIP TimeSeriesSource g [5]
snana-2007ky 1.0 SN IIP TimeSeriesSource g [5]
snana-2007lj 1.0 SN IIP TimeSeriesSource g [5]
snana-2007lb 1.0 SN IIP TimeSeriesSource g [5]
snana-2007ll 1.0 SN IIP TimeSeriesSource g [5]
snana-2007nw 1.0 SN IIP TimeSeriesSource g [5]
snana-2007ld 1.0 SN IIP TimeSeriesSource g [5]
snana-2007md 1.0 SN IIP TimeSeriesSource g [5]
snana-2007lz 1.0 SN IIP TimeSeriesSource g [5]
snana-2007lx 1.0 SN IIP TimeSeriesSource g [5]
snana-2007og 1.0 SN IIP TimeSeriesSource g [5]
snana-2007ny 1.0 SN IIP TimeSeriesSource g [5]
snana-2007nv 1.0 SN IIP TimeSeriesSource g [5]
snana-2007pg 1.0 SN IIP TimeSeriesSource g [5]
snana-2006ez 1.0 SN IIn TimeSeriesSource g [5]
snana-2006ix 1.0 SN IIn TimeSeriesSource g [5]
snana-2004fe 2.0 SN Ic TimeSeriesSource
snana-2004gq 2.0 SN Ic TimeSeriesSource
snana-sdss004012 2.0 SN Ic TimeSeriesSource
snana-2006fo 2.0 SN Ic TimeSeriesSource
snana-sdss014475 2.0 SN Ic TimeSeriesSource
snana-2006lc 2.0 SN Ic TimeSeriesSource
snana-2007ms 2.0 SN II-pec TimeSeriesSource
snana-04d1la 2.0 SN Ic TimeSeriesSource
snana-04d4jv 2.0 SN Ic TimeSeriesSource
snana-2004gv 2.0 SN Ib TimeSeriesSource
snana-2006ep 2.0 SN Ib TimeSeriesSource
snana-2007y 2.0 SN Ib TimeSeriesSource
snana-2004ib 2.0 SN Ib TimeSeriesSource
snana-2005hm 2.0 SN Ib TimeSeriesSource
snana-2006jo 2.0 SN Ib TimeSeriesSource
snana-2007nc 2.0 SN Ib TimeSeriesSource
snana-2004hx 2.0 SN IIP TimeSeriesSource
snana-2005gi 2.0 SN IIP TimeSeriesSource
snana-2006gq 2.0 SN IIP TimeSeriesSource
snana-2006kn 2.0 SN IIP TimeSeriesSource
snana-2006jl 2.0 SN IIP TimeSeriesSource
snana-2006iw 2.0 SN IIP TimeSeriesSource
snana-2006kv 2.0 SN IIP TimeSeriesSource
snana-2006ns 2.0 SN IIP TimeSeriesSource
snana-2007iz 2.0 SN IIP TimeSeriesSource
snana-2007nr 2.0 SN IIP TimeSeriesSource
snana-2007kw 2.0 SN IIP TimeSeriesSource
snana-2007ky 2.0 SN IIP TimeSeriesSource
snana-2007lj 2.0 SN IIP TimeSeriesSource
snana-2007lb 2.0 SN IIP TimeSeriesSource
snana-2007ll 2.0 SN IIP TimeSeriesSource
snana-2007nw 2.0 SN IIP TimeSeriesSource
snana-2007ld 2.0 SN IIP TimeSeriesSource
snana-2007md 2.0 SN IIP TimeSeriesSource
snana-2007lz 2.0 SN IIP TimeSeriesSource
snana-2007lx 2.0 SN IIP TimeSeriesSource
snana-2007og 2.0 SN IIP TimeSeriesSource
snana-2007ny 2.0 SN IIP TimeSeriesSource
snana-2007nv 2.0 SN IIP TimeSeriesSource
snana-2007pg 2.0 SN IIP TimeSeriesSource
whalen-z15b 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z15d 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z15g 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z25b 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z25d 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z25g 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z40b 1.0 Pop III TimeSeriesSource [Whalen13] [6]
whalen-z40g 1.0 Pop III TimeSeriesSource [Whalen13] [6]
mlcs2k2 1.0 SN Ia MLCS2k2Source [Jha07] [7]
snemo2 1.0 SN Ia SNEMOSource [Saunders18] h
snemo7 1.0 SN Ia SNEMOSource [Saunders18] h
snemo15 1.0 SN Ia SNEMOSource [Saunders18] h
1 change: 1 addition & 0 deletions sn_simu_input/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__='v1.0.0'
Loading