Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #152.
I adopted most of the changes wholesale. Here is a list of some of the ones where more conversation might be beneficial:
We adopted electrons when referring to Poisson-distributed quantities, and DN when appropriate.
This was trimmed slightly and prefaced slightly, but I find some of that discussion useful and did not feel the need to just delete it.
This looks to be fixed with a config change.
We updated these when called out in the detailed notes.
I haven't changed the styling here.
I've deleted the line about CRDS not being public. I have not changed the default; the present default matches GalSim's default, which is e.g. what was used for the large PIT simulations, and CRDS has its own issues (e.g., the linearity reference files are of marginal quality).
This is general python stuff and has no particular relationship to romanisim; I have not made a change.
https://romanisim.readthedocs.io/en/latest/romanisim/running.html
Please update the 'romanisim-make-image -h' output with the one produced in the latest version of romanisim. The output currenly on the page still mentions 'fits' instead of 'asdf', for instance, and input catalogs in .csv format made with romanisim do not work.
add_objects_to_image does not add Poisson noise if --chromatic is false, and so that nois emust be added at other stages of the simulation. We do this, e.g., in L2, L3, L2 injection, and L3 injection. I have not changed the text.
I haven't changed this. We convert the DN to electrons and then do the fit, in the same way as the pipeline. The result is then converted back to DN / s for the final L2 images using the gain.
I haven't changed this. romanisim converts the dark from DN / s to e / s before sending it to this routine.
I've added that the level 0 images are only intended for testing purposes, and changed counts to "total electron".
I have changed total counts to total electrons. I have added that this includes Poisson noise.
This input takes the dark rate image in electrons / s. The conversion from the native CRDS units to the dark rate is done elsewhere in the simulation.
This is exactly the argument "margin" passed to in_bounds. The docstring for in_bounds has been modestly updated.
I've updated this text. The point is that this doesn't get each source's x & y coordinates, and instead just gets everything in a circle with a radius of 1.1 times the center-corner distance. The center-corner distance uses the full WCS and distortion. I have not checked that this is always adequate, but I would be surprised if it were not. Let me know if you find otherwise.
I've changed to electrons.
I've changed to elecetrons.
Changed to electrons.
I added "between pixels." Of course the correlation between reads and resultants doesn't depend on IPC, but IPC correlates one pixel with its neighbors.
The point here is that in past exposures the same pixel can be hit by a bright source multiple times. e.g., a bright star in the previous exposure and the two-previous exposure. Sanchez+2023 doesn't have a particular model for what the persistence flux is as a function of time for that case. In the simulation we model this as the persistence flux that would be left over from the exposure two exposures ago plus the persistence flux that would be left over from the exposure one exposure ago. I have slightly tweaked the text.
Changed to electrons. This phase of the simulation is working with electrons.
Replaced with electrons, because this is what is done.
I have left in most of this discussion.
This was out of date and has been replaced; the documentation was from before the dark rate column existed.
Changed to "could presumably be adequate."
I did not add the default values for all of these quantities, since I imagine they may change. I did add a link to the code where they are all defined. In some cases where I found the values very unlikely to change I added specific values.
I changed this to the number of border reference pixels (4).
Here I've changed the docstring to be np.ndarray[ny, nx, 3] from np.ndarray[npix, npix, 3]. I don't think it's a good idea to describe the last axis, which has the three color channels, as the x axis.