Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a function to obtain the rest frame Sed source for phosim/galsim #51

Closed
wants to merge 13 commits into from

Conversation

rbiswas4
Copy link
Contributor

This adds a function to obtain the rest frame SN spectrum,
Within the model range,

  • It should match the source, except it takes on zero values if the source is negative.
  • It goes to 0 outside the temporal range at which the model is defined
  • It goes to np.nan outside the wavelength range at which the model is defined.

rbiswas4 and others added 13 commits February 7, 2016 22:33
extreme regions of the SNIa phase space can be a problem for codes that
sample the SED like phoSim. Therefore, this change implements:

rectified SED(lambda) = modelSED if SED(lambda) >= 0
                      = 0 if modelSED(lambda) < 0

This will cause the band flux and band mags (model values to be slightly
biased, but this should not matter much as they are truly small hen
compared to reasonable sky noise

	modified:   examples/testSN.py
	modified:   python/lsst/sims/catUtils/supernovae/snObject.py
	modified:   examples/testSN.py
	modified:   examples/SNObject_example.ipynb
Added tests and examples for rectifySED
modified:   examples/SNObject_example.ipynb
    Added plots showing the behavior of rectifySED
modified:   examples/testSN.py
    Added tests checking the default attributes and their modification
behavior
modified:   python/lsst/sims/catUtils/supernovae/snObject.py
    split the attributes on rectify SED and outside model range behavior
replaced get_galacticRv in EBVMixin.py with get_galacticAv.
galacticRv is now set to 3.1 as a default_column in all of the
relevant InstanceCatalog classes.  get_galacticAv mutiplies
E(B-V) (from the SFD maps) by galacticRv to get galacticAv.
	modified:   examples/SNObject_example.ipynb
	modified:   python/lsst/sims/catUtils/supernovae/snObject.py
	modified:   examples/SNObject_example.ipynb
	modified:   python/lsst/sims/catUtils/supernovae/snObject.py
	modified:   supernovae/snObject.py
@danielsf
Copy link
Contributor

It looks like some of the commits in this pull request duplicate the commits in #49 . How easy will it be to merge that, reimplement the actual changes from this branch on a new branch, and then issue a new pull request?

Sorry it took me so long to get to this.

rbiswas4 added a commit that referenced this pull request Sep 26, 2016
Twinkles catalog 2: 
- Implements the ability to read SN model parameters off fatboy database tables
- produce input catalogs for phoSim
- tests pass with latest commit : https://ci.lsst.codes/job/stack-os-matrix/16312/label=centos-6,python=py2/console
- Discussed changes implemented
- Will Close #49 and #51 which are superseded by the implementation here and some previous commits
- Close Jira SIM-1759
@rbiswas4
Copy link
Contributor Author

This is superseded by #69

@rbiswas4 rbiswas4 closed this Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants