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

band_shift the absolute magnitudes #43

Closed
moustakas opened this issue Sep 3, 2021 · 5 comments
Closed

band_shift the absolute magnitudes #43

moustakas opened this issue Sep 3, 2021 · 5 comments
Labels
help wanted Extra attention is needed
Milestone

Comments

@moustakas
Copy link
Member

In fastphot, consider band-shifting the ugriz photometry to z=0.1 so the results can be compared with SDSS more easily. The UBVW1 bands can be band-shifted to z=0.

@moustakas
Copy link
Member Author

This ticket ended up being particularly tricky, not least because I hadn't previously figured out how to compute band-shifted magnitudes. But I believe that #69 has this implemented correctly.

As an extra validation step, I took a set of objects and computed K-corrections and absolute magnitudes using both fastphot and the industry standard (IDL version of) K-correct (@blanton144).

Note that these calculations rely on the version of the SDSS filters in speclite which include the atmosphere (see desihub/speclite#76). In addition:

  • I use grzW1 as the input photometry, all corrected for Galactic extinction, and the DESI redshift.
  • I use the correct North and South filter curves according to the declination of each object.
  • I add minimum photometric uncertainties to the input photometry to make the chi2 of the fits a bit more reasonable.

First, carried out a sanity check to make sure the independent model fits were sensible. This first figure shows that fastphot and K-correct agree (in the input magnitudes synthesized from each model) to within a few percent in grzW1 (<2% in all bands except the r-band, which is offset by 3.3%):

Screen Shot 2022-07-12 at 3 55 55 PM

The next two plots show the K-corrections and the absolute magnitudes in the rest-frame SDSS ugriz bands, band-shifted to z=0.1. The agreement in i and W1 suggests that I'm handling the band-shifting correctly, but the disagreement in g and r is disturbingly large (0.45 and 0.2 mag, respectively). I'm not sure how to proceed with this.

Screen Shot 2022-07-12 at 3 59 34 PM

Screen Shot 2022-07-12 at 3 59 51 PM

Finally, I also checked K-correcting to the rest-frame Bessell UBV filters, band-shifted to z=0.0, and these results look pretty good (note the different y-scale):

Screen Shot 2022-07-12 at 4 08 47 PM

@blanton144
Copy link

blanton144 commented Jul 12, 2022 via email

@moustakas
Copy link
Member Author

Thanks for the suggestion, @blanton144, which turned up a couple different bugs in my code. I also ended up digging into my dust attenuation model and decided to switch from a Charlot & Fall power-law (with no UV bump) to a fairly standard Fitzpatrick & Masa Galactic curve (with a UV bump); I'll postpone a deeper dig into how I handle dust attenuation in a future effort.

Below is the K(z) plot you requested and the updated comparison of absolute magnitudes, which now look pretty good (<2% agreement) except in the 0.1u-band. I'm inclined to declare victory because the u-band is quite sensitive to the choice of spectral templates. For example, below is my maximum likelihood fit to an object where we disagree by more than half a magnitude (I'm always brighter); for this object, with fastphot I get M(0.1u)=-18.958 and K-correct yields -18.329 (the open symbols, W2-W4, are bands which are not used during fitting and, of course, I fit to fluxes not magnitudes). The gray curve is the best-fitting K-correct model, and you can see that our UV spectra are very different! (And you can also see why our synthesized r-band photometry doesn't match precisely; there are some features in your templates that are definitely not in my templates.)

I welcome any other thoughts you or others may have.

Screen Shot 2022-07-13 at 11 13 56 AM

Screen Shot 2022-07-13 at 11 15 36 AM

Screen Shot 2022-07-13 at 11 15 56 AM

@blanton144
Copy link

blanton144 commented Jul 13, 2022 via email

moustakas added a commit that referenced this issue Jul 13, 2022
@moustakas
Copy link
Member Author

moustakas commented Jul 13, 2022

Great, thanks, these code changes are now in #69.

And a note to myself: all these plots were made with
https://data.desi.lbl.gov/desi/users/ioannis/fastspecfit/pv-vdisp/fujilupe/pv-vdisp.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants