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
58b305dc
Commit
58b305dc
authored
Jul 05, 2022
by
xin
Browse files
delete draw pic
parent
3fa20822
Pipeline
#13
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
SpecGen/SpecGenerator.py
View file @
58b305dc
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
'''
'''
Author: zx
Author: zx
Date: 2021-04-08 13:49:35
Date: 2021-04-08 13:49:35
LastEditTime: 2022-0
5-20 08:47
:4
9
LastEditTime: 2022-0
7-05 14:58
:4
2
LastEditors: xin zhangxinbjfu@gmail.com
LastEditors: xin zhangxinbjfu@gmail.com
Description: In User Settings Edit
Description: In User Settings Edit
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/simDemo.py
FilePath: /undefined/Users/zhangxin/Work/SlitlessSim/sls_lit_demo/simDemo.py
...
@@ -189,11 +189,11 @@ class SpecGenerator(object):
...
@@ -189,11 +189,11 @@ class SpecGenerator(object):
# plt.figure()
# plt.figure()
# plt.plot(spec_orig[:,0], spec_orig[:,1])
# plt.plot(spec_orig[:,0], spec_orig[:,1])
plt
.
figure
()
#
plt.figure()
plt
.
errorbar
(
wave_pix
[
idx
][
idx1
],
wave_flux
[
idx
][
idx1
],
err_flux
[
idx
][
idx1
])
#
plt.errorbar(wave_pix[idx][idx1], wave_flux[idx][idx1],err_flux[idx][idx1])
plt
.
legend
([
self
.
sedFile
])
#
plt.legend([self.sedFile])
# plt.plot(wave_pix[idx][idx1], wave_flux[idx][idx1])
#
#
plt.plot(wave_pix[idx][idx1], wave_flux[idx][idx1])
plt
.
show
()
#
plt.show()
return
specTab
,
Aimg
,
stamp
.
array
return
specTab
,
Aimg
,
stamp
.
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