Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_msc_sim
Commits
fb815ffb
Commit
fb815ffb
authored
Apr 07, 2024
by
Zhang Xin
Browse files
fix led model bug
parent
98579c7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
ObservationSim/sim_steps/__init__.py
View file @
fb815ffb
...
...
@@ -13,6 +13,7 @@ class SimSteps:
from
.add_pattern_noise
import
apply_PRNU
,
add_poisson_and_dark
,
add_detector_defects
,
add_nonlinearity
,
add_blooming
,
add_bias
from
.add_brighter_fatter_CTE
import
add_brighter_fatter
,
apply_CTE
from
.readout_output
import
add_prescan_overscan
,
add_readout_noise
,
apply_gain
,
quantization_and_output
from
.add_LED_flat
import
add_LED_Flat
SIM_STEP_TYPES
=
{
"scie_obs"
:
"add_objects"
,
...
...
ObservationSim/sim_steps/add_LED_flat.py
View file @
fb815ffb
import
numpy
as
np
from
ObservationSim.MockObject
import
FlatLED
import
galsim
def
add_LED_Flat
(
self
,
chip
,
filt
,
tel
,
pointing
,
catalog
,
obs_param
):
...
...
ObservationSim/sim_steps/add_sky_background.py
View file @
fb815ffb
import
numpy
as
np
import
galsim
from
ObservationSim.Straylight
import
calculateSkyMap_split_g
from
ObservationSim.Instrument
import
FilterParam
def
add_sky_background_sci
(
self
,
chip
,
filt
,
tel
,
pointing
,
catalog
,
obs_param
):
flat_normal
=
np
.
ones_like
(
chip
.
img
.
array
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment