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

simplify extracting resolution matrix from simulator #18

Closed
sbailey opened this issue Nov 24, 2015 · 1 comment
Closed

simplify extracting resolution matrix from simulator #18

sbailey opened this issue Nov 24, 2015 · 1 comment
Assignees
Milestone

Comments

@sbailey
Copy link
Contributor

sbailey commented Nov 24, 2015

The high-resolution "resolution matrix" that convolves the source spectrum by the instrumental resolution is available as qsim.cameras[j].sparseKernel. It would be handy if the user could access the binned equivalent after downsampling, i.e. the resolution matrix corresponding to the output flux. I think we would want it to have the property that

result = qsim.simulate(..., downsampling=n)
R = qsim.get_binned_resolution(..., downsampling=n)
np.all(result.obsflux == R.dot(result.srcflux))

Or at least as close to that as is possible given the rebinning.

@dkirkby
Copy link
Member

dkirkby commented Mar 9, 2016

Fixed by #35

@dkirkby dkirkby closed this as completed Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants