-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement more flexible fiber acceptance fraction calculations #5
Comments
Stephen and I have had some discussions about this. The spectral templates I've developed don't yet--but will---have some morphological information attached to them (half-light radii, Sersic indices, axis ratios, etc.), at least for ELGs, LRGs, and BGS (based on HST observations wherever possible). The N-dimensional space of size, SB profile, axis ratio, fiber size (which depends on focal-plane position), seeing, fiber mis-centering, etc. is quite large, however, so this will require some care as to how these effects will be implemented. +1 that this is being tackled and I'm happy to help! |
Most of the work is already done in this exposure-time calculator notebook, so this is mostly a matter of repackaging existing code. The profile and PSF modeling are handled by GalSim, so are very flexible. However, I don't want to make GalSim a required dependency so we will continue to support the use of tabulated fiber acceptance ratios for predetermined profiles, and only use GalSim for more flexible calculations when it is available. |
Quick notes: This issue and also #3 (guiding and tracking errors) are things we'd like to simulate for the input to the full pixsims as well. Please implement these in a way that they can be used independent from the rest of the specsim simulation, i.e. as separate library functions and not embedded within a larger calculation. DESI has a radially dependent platescale, which results in elliptical fiber profiles in angular coordinates on the sky. Ideally this code will support not only arbitrary source profiles, but also non-circular apertures. For reference, desimodel/bin/fiberloss.py is the code we used to calculate the current fiber input geometric loss factors. It brute forces the calculation over a fine grid, which is viable if you are doing it once but not fast enough if you are doing it for every fiber on the fly for a custom profile. |
We are already modeling the SDSS radial distortions for the spectrophoto calibration paper, so that sounds doable. Is the DESI radial distortion function already tabulated somewhere in desimodel? |
That's definitely the plan. Another piece that should be easy to call independently is converting flux and throughput arrays to an array of mean photon rates, which I see is already being duplicated in quicksim and specter.throughput.Througput.photons() (which |
The DESI optics platescale vs. radius is tabulated in data/focalplane/platescale.txt, coming from DESI-0329v14 which has more explanation. Note that the latest version is v15, but the platescale info is the same. Throughput calculation: in the short term it may be useful for us to have independent paths to compare and debug. After specsim matures, I could make this a dependency of specter depending upon how many things like throughput are an overlap of functionality. |
Any plans for moving the resolution of this issue up? I'm working on simulating BGS objects (as part of desihub/desisim#72) but specsim only knows about object types 'lrg', 'elg', 'qso' and 'star'. Or should I just make a nominal 'fiberloss-bgs.dat' file? The problem with having just one file, of course, is that we expect significantly larger variations in the fiber acceptance rate for BGS because of the flux-limited and lower-redshift nature of the sample. It would be great for my simulations to marginalize over these effects. |
I tagged this issue with the v0.5 milestone, which means that I plan to address it in the next release. Once this is implemented, you will need some model of BGS shape profiles (e.g., in half-light radius and Sersic index) in order to sample the variability in fiber loss fractions. |
@moustakas You wrote earlier:
I am going to model the dependence of fiber acceptance fraction on the source profile. Will that capture the BGS variations you expect? How flexible a profile model do you need?
|
The original fiberloss calculator makes the following assumptions:
|
Ellipticity, the Sersic indices of the bulge and disk, half-light radii, bulge-to-disk ratio, etc., will all be important for the fiber acceptance fraction (and not just the scatter -- the mean fraction will vary in important ways). There's no way -- for BGS at least -- a single n=1 profile of varying half-light radius will be flexible enough. (Remember that the BGS is flux-limited, so we'll include both star-forming disk and spheroidal galaxies in the sample.) The question is how many effects do we need to model to capture the mean trends (and variance) of the galaxy population. There's ton's of data we can use (from SDSS, AGES, GAMA, etc.), but let's make a plan on-list. |
The canonical galaxy sources are modeled as:
Note that both profiles are assumed to be circular, which is more of an edge case than typical. |
Seeing is fixed at FWHM=1.1" at 6355A, which is consistent with Arjun & Dey 2013, specifically these panels of their Fig.11: These seeing values include an instrumental PSF specified in desi.yaml as:
and subtracted in quadrature in
The atmospheric PSF is modeled as a Moffat profile with beta=3.5 and a FWHM that scales with wavelength with the Kolmogorov -1/5 exponent. Perhaps better to use a Kolmogorov PSF directly? |
The instrumental contribution to the PSF consists of an optical PSF and distribution of expected centroid offsets, tabulated in
This is implemented in
Note that this neglects the variation of platescale over the field of view. Is a Gaussian PSF the appropriate model or should it be more like the Airy pattern of an obscured pupil? What is responsible for the wavelength dependence here? (The Airy PSF size increases linearly with wavelength but is about an order of magnitude smaller than these values). The offset is fixed at 0.2" ~ 14.1 um, which seems high given the tabulated RMS values ~ 10um. Perhaps it would be better to sample a distribution of offsets via an additional PSF convolution? It would also be feasible to simulate offsets during the exposure, a la Margala 2015, assuming they are dominated by residual ADR (with a fixed ADC) rather than guiding errors. |
The fibers + spectrographs should accept almost all of the light from infinity, except for fibers that have non-compliant FRD (of which I'm sure there'll be some). The PSFs on the focal plane were generated using a N thousand ray traces through Zemax, and then the RMS is computed from the results. The plate scale variations are large. There's both a 10% change in the projected area from the center of the focal plane to the edge, and a squashing of the projected area on the sky by 10%. Those data here: https://desi.lbl.gov/trac/browser/code/desimodel/trunk/data/focalplane/platescale.txt |
Is the Tractor model of the galaxy profiles documented somewhere? |
Has someone already made plots of the Tractor EXP+DEV shape parameters for the different DESI target classes? |
It looks like the original
or else this comment in
With the default 1.1" seeing, this is a ~10% effect on the size of the atmospheric PSF. |
For clarification, the Comparing to the DESI corrector blur numbers calculated as a sigma (not FWHM), the numbers are about the same (not a factor of ~2 different), which under the assumption that the DESI corrector blur is not radically better/worse than the current Jacoby corrector, would imply that the Jacoby blur numbers are actually sigmas. I chatted with Pat Jelinsky and he may have the Zemax model of the current corrector, in which case he can try to reproduce figure 4 to figure out the units... |
To my knowledge this has not been done. Briefly, the best ELG truth region is in the north (DEEP2/Field 1), and therefore does not have DECaLS data, and the LRG target selection has been somewhat of a moving target (pun intended). The morphologies and shapes of a BGS sample could be, but have not been looked at. That said we do have HST morphologies (Sersic indices, axis ratios, and half-light radii) of a few hundred ELG- and LRG-like targets that could be useful, and for BGS we basically have a ton of data. Should I task someone on the Targeting WG to put these pieces together? |
Closing since the original issue (more flexible fiberloss calculations) has been resolved since version 0.8. |
We currently use tabulated fiber acceptance fractions for a fixed set of assumed transverse source profiles on the sky. This feature request is to allow arbitrary source profiles to be simulated, probably parameterized by a sum of Sersic components.
The text was updated successfully, but these errors were encountered: