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_ifs_gehong
Commits
9d7b50e0
Commit
9d7b50e0
authored
Dec 24, 2024
by
Shuai Feng
Browse files
fix some bugs
parent
9c17622d
Pipeline
#7605
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_ifs_gehong/config.py
View file @
9d7b50e0
...
...
@@ -3,7 +3,8 @@ import numpy as np
class
config
():
"""
The configuration of spectral modeling. The default value is used for ETC calculation.
The configuration of spectral modeling. The default value is used for
ETC calculation.
Parameters
----------
...
...
@@ -22,8 +23,8 @@ class config():
dpix : float, optional
Pixel size in the spatial direction, by default 0.2arcsec
"""
def
__init__
(
self
,
wave_min
=
3500.0
,
wave_max
=
10000.0
,
dlam
=
2.0
,
nx
=
30
,
ny
=
30
,
dpix
=
0.2
):
def
__init__
(
self
,
wave_min
=
3500.0
,
wave_max
=
10000.0
,
dlam
=
2.0
,
nx
=
30
,
ny
=
30
,
dpix
=
0.2
):
self
.
dlam
=
dlam
self
.
wave
=
np
.
arange
(
wave_min
,
wave_max
,
dlam
)
self
.
wave_min
=
wave_min
...
...
csst_ifs_gehong/map2d.py
View file @
9d7b50e0
...
...
@@ -8,7 +8,8 @@ from skimage.transform import resize
def
Sersic2D
(
x
,
y
,
mag
=
12.0
,
r_eff
=
1.0
,
n
=
2.0
,
ellip
=
0.5
,
theta
=
0.0
,
x_0
=
0.0
,
y_0
=
0.0
,
pixelscale
=
0.01
):
"""
Sersic2D: Caculate the surface brightness at given spatial position base on the Sersic model.
Sersic2D: Caculate the surface brightness at given spatial position
base on the Sersic model.
Parameters
----------
...
...
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