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_sim
Commits
67d4743f
Commit
67d4743f
authored
Apr 12, 2024
by
Yan Zhaojun
Browse files
update ifs_sim
parent
200976fe
Pipeline
#3984
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/__pycache__/csst_ifs_sim.cpython-38.pyc
0 → 100644
View file @
67d4743f
File added
csst_ifs_sim/csst_ifs_sim.py
View file @
67d4743f
...
@@ -13,10 +13,21 @@ import os
...
@@ -13,10 +13,21 @@ import os
from
scipy.interpolate
import
interp1d
from
scipy.interpolate
import
interp1d
import
astropy.coordinates
as
coord
import
astropy.coordinates
as
coord
import
ctypes
import
ctypes
from
csst_ifs_sim.support
import
IFSinstrumentModel
from
csst_ifs_sim.support
import
cosmicrays
# from csst_ifs_sim.support import IFSinstrumentModel
from
csst_ifs_sim.support
import
logger
as
lg
# from csst_ifs_sim.support import cosmicrays
from
csst_ifs_sim.CTI
import
CTI
# from csst_ifs_sim.support import logger as lg
# from csst_ifs_sim.CTI import CTI
sys
.
path
.
append
(
'../'
)
from
CTI
import
CTI
from
support
import
logger
as
lg
from
support
import
cosmicrays
from
support
import
IFSinstrumentModel
# from optparse import OptionParser
# from optparse import OptionParser
import
configparser
as
ConfigParser
import
configparser
as
ConfigParser
import
cmath
import
cmath
...
@@ -355,6 +366,7 @@ class StrayLight(object):
...
@@ -355,6 +366,7 @@ class StrayLight(object):
DESCRIPTION.
DESCRIPTION.
"""
"""
filterIndex
=
{
'nuv'
:
0
,
'u'
:
1
,
'g'
:
2
,
'r'
:
3
,
'i'
:
4
,
'z'
:
5
,
'y'
:
6
}
sat
=
(
ctypes
.
c_double
*
3
)()
sat
=
(
ctypes
.
c_double
*
3
)()
sat
[:]
=
self
.
sat
sat
[:]
=
self
.
sat
...
@@ -392,6 +404,8 @@ class StrayLight(object):
...
@@ -392,6 +404,8 @@ class StrayLight(object):
DESCRIPTION.
DESCRIPTION.
"""
"""
filterIndex
=
{
'nuv'
:
0
,
'u'
:
1
,
'g'
:
2
,
'r'
:
3
,
'i'
:
4
,
'z'
:
5
,
'y'
:
6
}
sat
=
(
ctypes
.
c_double
*
3
)()
sat
=
(
ctypes
.
c_double
*
3
)()
sat
[:]
=
self
.
sat
sat
[:]
=
self
.
sat
ob
=
(
ctypes
.
c_double
*
3
)()
ob
=
(
ctypes
.
c_double
*
3
)()
...
@@ -402,7 +416,7 @@ class StrayLight(object):
...
@@ -402,7 +416,7 @@ class StrayLight(object):
self
.
slcdll
.
ComposeY
(
ob
,
py1
,
py2
)
self
.
slcdll
.
ComposeY
(
ob
,
py1
,
py2
)
earth_e1
=
(
ctypes
.
c_double
*
7
)()
earth_e1
=
(
ctypes
.
c_double
*
7
)()
self
.
slcdll
.
EarthShine
(
self
.
jtime
,
sat
,
ob
,
py1
,
earth_e1
)
self
.
slcdll
.
EarthShine
(
self
.
jtime
,
sat
,
ob
,
py1
,
earth_e1
)
# e[7]代表7个波段的照度
# e[7]代表7个波段的照度
earth_e2
=
(
ctypes
.
c_double
*
7
)()
earth_e2
=
(
ctypes
.
c_double
*
7
)()
...
...
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