Replies: 5 comments 2 replies
-
Hi Sabrina! Sorry you were having trouble and didn't get a reply here. I have a few comments for you: First, it looks like the fit is as good as it can be given the data: that is, the fitter found the best parameters possible: while adjusting the relative amplitude in different bands could improve the fit, the SALT2 model can't fit arbitrary offsets in each bands (by design): the This tells me that either (1) this SN has a really weird spectrum that doesn't match the SALT2 model, or (2) you made an error with the zeropoints or bandpasses of the data. Was this SN really observed through Bessell filters? The filters should be the actual ones the data was collected in (or adjusted to). The zeropoints and zeropoint system of the data are important, and can cause the fit you're seeing if not interpreted correctly. (There should really be an entire page in the sncosmo documentation on this; it is a common problem.) Based on the first line of your code, I'm guessing that you have a table of magnitudes and bands, and you're converting those to flux. Are you sure the magnitudes you have are really in the Vega system? If they're actually in the AB system, you might see something like the fit you're seeing. Some background: The "zeropoints" in sncosmo photometric data are somewhat arbitrary: you can multiply the flux by a factor of 10, and increase the zeropoint by 2.5, and the implied brightness will be the same (because The magnitude system is the thing the magnitude is relative to: a magnitude of 20.0 in Vega means that the SN is a factor of |
Beta Was this translation helpful? Give feedback.
-
A few other notes:
|
Beta Was this translation helpful? Give feedback.
-
Hi Kyle, thank you so much for your answer! You are right, I have a table with magnitudes I convert to flux via the built-in function. Since I have more or less the same problem with other SNe, I assume the problem is not the light curve of this particular event. I updated the picture with another SN that is well published, so I can be sure that it's actually in vega system and based on bessell filter systems. So the only problematic part left could be the zeropoints, I guess. The SN was published with vega zeropoints. I converted the magnitudes with these zp's by via Regarding the other comment:
If x0 is not the value I can use for calculate mB, could you tell me what's behind the built-in-function |
Beta Was this translation helpful? Give feedback.
-
All right, got the point with x0, thanks! Regarding the data, for example: Photometry: https://iopscience.iop.org/article/10.1086/345571/pdf (Table 3 (combined with Table 4 to match Bessell Filters)) |
Beta Was this translation helpful? Give feedback.
-
The use of zeropoints from the Bessell 1998 paper is not necessary. The published magnitudes in the Krisciunas et al paper (Tables 3 and 4) should be all you need. To convert from those magnitudes to flux, choose an arbitrary zeropoint, and do the following: # suppose `mag` is an array of Vega magnitudes
# and `magerr` is an array of uncertainties in those magnitudes
zp = 15.0 # can be anything, and can be the same for all bands.
flux = 10**(0.4 * (zp - mag))
fluxerr = flux * (math.log(10) / 2.5) * magerr
data = Table(
{
"time": ...,
"band": ...,
"flux": flux,
"fluxerr": fluxerr,
"zp": zp,
"magsys": "vega",
}
) |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I struggle for a long while to create a suitable fit to my data and since I'm running out of ideas, time and hope, I would be so happy if someone could help me out and have a look over my code.
I used data from a published supernova fitted with SALT2 so I can compare my results.
I converted the magnitudes via
vega.band_mag_to_flux(magnitude, band)
This is my relevant code:
What I tried so far, among other things:
Further, I wonder a bit about the peak magnitude.
From my understanding, the following lines should do excatly the same, but they don't:
fitted_model.source_peakmag('bessellb', magsys='vega'))
and
And last: I have to work with collected published data, so mostly I don't have information about zeropoints and systems.
I guess there is no way to overcome this issue?
Thanks in advance!
Cheers, Sabrina
Beta Was this translation helpful? Give feedback.
All reactions