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
f1c2080d
Commit
f1c2080d
authored
Apr 10, 2024
by
Yan Zhaojun
Browse files
update
parent
ba168388
Pipeline
#3938
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
f1c2080d
...
@@ -1140,7 +1140,8 @@ class IFSsimulator():
...
@@ -1140,7 +1140,8 @@ class IFSsimulator():
# get solar position
# get solar position
dt
=
datetime
.
fromisoformat
(
time
)
dt
=
datetime
.
fromisoformat
(
time
)
jd
=
julian
.
to_jd
(
dt
,
fmt
=
'jd'
)
jd
=
time2jd
(
dt
)
##jd = julian.to_jd(dt, fmt='jd')
t
=
Time
(
jd
,
format
=
'jd'
,
scale
=
'utc'
)
t
=
Time
(
jd
,
format
=
'jd'
,
scale
=
'utc'
)
...
@@ -4496,8 +4497,8 @@ class IFSsimulator():
...
@@ -4496,8 +4497,8 @@ class IFSsimulator():
##########################################
##########################################
########################################################################
########################################################################
self
.
dt
=
julian
.
from_jd
(
exptime_start_jd
,
fmt
=
'jd'
)
#
self.dt=julian.from_jd(exptime_start_jd, fmt='jd')
self
.
dt
=
jd2time
(
exptime_start_jd
)
##################################################################
##################################################################
self
.
TianCe_day
=
self
.
dt
.
strftime
(
"%Y-%m-%d"
)
###str(self.dt.year)+'-'+str(self.dt.month)+'-'+str(self.dt.day)
self
.
TianCe_day
=
self
.
dt
.
strftime
(
"%Y-%m-%d"
)
###str(self.dt.year)+'-'+str(self.dt.month)+'-'+str(self.dt.day)
...
...
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