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
Zhang Xin
Sls 1d Spec
Commits
c2120c1f
Commit
c2120c1f
authored
May 20, 2022
by
xin
Browse files
delet some file
parent
a880cf7e
Changes
1
Show whitespace changes
Inline
Side-by-side
sim_demo1.py
deleted
100644 → 0
View file @
a880cf7e
'''
Author: xin zhangxinbjfu@gmail.com
Date: 2022-05-18 08:37:51
LastEditors: xin zhangxinbjfu@gmail.com
LastEditTime: 2022-05-20 08:43:13
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/example/sim_demo1.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''
from
SpecGen.SpecGenerator
import
SpecGenerator
from
SpecGen.Config
import
Config
import
galsim
if
__name__
==
'__main__'
:
dataDir
=
'data/'
config
=
Config
(
dataDir
=
dataDir
)
sedFn
=
dataDir
+
'sed/sed_44575.txt'
psf
=
galsim
.
Gaussian
(
fwhm
=
0.39
)
specG
=
SpecGenerator
(
sedFn
=
sedFn
,
grating
=
'GI'
,
beam
=
'A'
,
aper
=
2.0
,
xcenter
=
5000
,
ycenter
=
5000
,
p_size
=
0.074
,
psf
=
psf
,
skybg
=
0.3
,
dark
=
0.02
,
readout
=
5
,
t
=
150
,
expNum
=
1
,
config
=
config
)
specTab
,
specImg
,
img
,
fluxRa
=
specG
.
generateSpec1dforStar
()
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