Skip to content

Commit 4bb7105

Browse files
Scriptupdate (#16)
* added gain output * Added directory GalPoisson with two python scripts for creating noise realizations for Poisson bias corrections. * moved GalPoisson files to src/romanimpreprocess/L1_to_L2 * Include pseudo-Poisson realizations in L1_to_L2 gen_noise_image.py. Updated docstrings in GalPoisson. * Same as my previous commit but used git add correctly this time and fixed importing functions from GalPoisson into gen_noise_image.py * Update L1_to_L2_README.rst Added short description of pseudo-Poisson noise bias correction noise layer "O". * Update pyproject.toml * Changed clipping for Galpoisson draw_with_tilnus from 3 to 0.01 and updated docstring for find_tilnus * Update gen_noise_image.py Added trimming of reference pixels in `O` noise realization; also removed an unneeded copy. * Update gen_noise_image.py In `O` noise option, I removed the loop iteration over ending slice == starting slice (which will not be able to give a slope). * Update gen_noise_image.py Removed `tilnu42` from Pearson distribution call in noise generator (this was not supposed to be an argument). * Create build-documentation.yml * Create pre-commit-ci.yml * Update gen_noise_image.py reformat suggested by ruff * implemented change of units on tilde nu_{nk} * job scripts --------- Co-authored-by: Michael Gabe <gabe.7@osu.edu>
1 parent c0b10c1 commit 4bb7105

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

runs/summer2025run/OpenUniverse_to_L1L2.job

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#SBATCH --job-name=sim
3-
#SBATCH --account=PCON0003
3+
#SBATCH --account=PAS2340
44
#SBATCH --array=1-18
55
#SBATCH --time=96:00:00
66
#SBATCH --nodes=1

runs/summer2025run/OpenUniverse_to_L1L2.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,18 @@ def findcal(ctype, sca):
119119
"RAMP_OPT_PARS": {"slope": 0.4, "gain": 1.8, "sigma_read": 7.0},
120120
"JUMP_DETECT_PARS": {"SthreshA": 5.5, "SthreshB": 4.5, "IthreshA": 0.6, "IthreshB": 600.0},
121121
"SKYORDER": 2,
122-
"FITSOUT": sca == 4, # save SCA #4.
122+
"FITSOUT": False,
123123
"NOISE": {
124-
"LAYER": ["Rz4PbrS2C1", "Rz4PbrS2C2", "Rz4PrS2C3", "Rz4PrS2C4"],
124+
"LAYER": [
125+
"Rz4PbrS2C1",
126+
"Rz4PbrS2C2",
127+
"Rz4PbrS2C3",
128+
"Rz4PbrS2C4",
129+
"Rz4OS2C5",
130+
"Rz4OS2C6",
131+
"Rz4OS2C7",
132+
"Rz4OS2C8",
133+
],
125134
"TEMP": temp_dir + f"/temp_{band:s}_{obsid:d}_{sca:d}.asdf",
126135
"SEED": seed,
127136
"OUT": output_dir + f"/L2/sim_L2_{band:s}_{obsid:d}_{sca:d}_noise.asdf",

0 commit comments

Comments
 (0)