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

Detector Noise Units #164

Open
robelgeda opened this issue Nov 10, 2022 · 6 comments
Open

Detector Noise Units #164

robelgeda opened this issue Nov 10, 2022 · 6 comments
Labels

Comments

@robelgeda
Copy link
Collaborator

robelgeda commented Nov 10, 2022

It seems like the outputs are in counts/s but the detector noise in counts. Simulating a dwarf bright galaxy, the galaxy sinks under noise. Do you know if this is a bug with the detector noise units?

CC @AstroJacobLi @ojustino

@AstroJacobLi
Copy link

Thank you @robelgeda for tagging me! I was testing how different exposure time affects the image quality, then I found that no matter how long you expose, you get similar noisy images. I did a simple fix here: AstroJacobLi@98f0a08, but it might be worth testing if my fix is correct. I will be back to work on this soon.

@york-stsci york-stsci added the Bug label Nov 11, 2022
@york-stsci
Copy link
Collaborator

As far as I can see, the STIPS noise model doesn't incorporate exposure time anywhere, and indeed the changes that I can see, looking over the history, are that when the output moved from being in counts to being counts/s, the noise model was modified to no longer be multiplied by exposure time.

As such, I don't think this is a bug with detector noise units. It may be that, instead, the STIPS noise model is incorrect, which is possible, but is another sort of issue, in particular because if I find a bug in the calculation I can fix it, but if the noise model is wrong, then I would need a correct model to switch to, and I don't know what that would be.

That said, I'm willing to be convinced that there's an obvious bug in the noise model, I just have no idea of what it is, so I'll probably need help to find it.

@gmzsebastian
Copy link
Collaborator

Yes, this is part of a known issue with how the noise gets calculated. I'm the process of fixing it and I am now getting more reasonable results in my fork of STIPS (https://github.com/gmzsebastian/STScI-STIPS), but obviously still under development.

@kwynn03
Copy link

kwynn03 commented Oct 23, 2023

Hi there! I am currently working on a project involving doing photometry on these simulations, and I believe this noise issue is what is currently stopping progress. Is there any update on this, or a specific place in the code I should be looking at to check this out? Thanks!

@ojustino
Copy link
Collaborator

Hi @kwynn03, we expect the new release to be ready in the coming weeks. You can preview whether it resolves your issue by temporarily installing the branch with the updates. We haven't yet completed a code review, so while it's not yet official, it may give you an idea of what to expect when it's released.

@kwynn03
Copy link

kwynn03 commented Oct 31, 2023

Hi @ojustino, thanks for the update! I successfully installed the new branch you suggested, but I'm having some issues with the pandeia engine. At first it was looking for a configuration file in a source directory in pandeia_data-1.7_roman/roman/ but the actual directory seems to be in pandeia_data-1.7_roman (one directory above). I set up a symbolic link so it is now looking in the pandeia_data-1.7_roman/source/ directory for the configuration file, but now it is giving me this error: "pandeia.engine.custom_exceptions.DataConfigurationError: No default source configuration found". Any thoughts? Thank you again!

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

6 participants