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

Jitter functionality is incomplete #40

Closed
josePhoenix opened this issue Jan 27, 2015 · 2 comments
Closed

Jitter functionality is incomplete #40

josePhoenix opened this issue Jan 27, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@josePhoenix
Copy link
Collaborator

In the documentation for WebbPSF.JWInstrument, we have

    jitter : string "gaussian" or None
        Type of jitter model to apply. Currently only convolution with a Gaussian kernel of specified
        width `jitter_sigma` is implemented. (default: None)
    jitter_sigma : float
        Width of the jitter kernel in arcseconds (default: 0.007 arcsec)

However, this test code shows no difference between a PSF with jitter enabled and a PSF with no jitter:

import webbpsf
nc = webbpsf.NIRCam()
nc.options['jitter'] = None
psf = nc.calcPSF(nlambda=3)

nc.options['jitter'] = 'gaussian'
psf_jitter = nc.calcPSF(nlambda=3)
webbpsf.display_PSF_difference(psf, psf_jitter)

I think this is because calcPSF is completely rewritten for JWInstrument and doesn't automatically get updates we make to poppy.Instrument. Refactoring that is something to tackle for v0.4.

@mperrin mperrin added this to the 0.3 milestone Feb 11, 2015
@mperrin
Copy link
Owner

mperrin commented Feb 16, 2015

Does #47 fix this?

@josePhoenix
Copy link
Collaborator Author

Yes!

Achievement unlocked: we closed all the issues on a milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants