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_mci_sim
Commits
a1b523c6
Commit
a1b523c6
authored
Apr 14, 2024
by
Yan Zhaojun
Browse files
test
parent
c3313757
Pipeline
#4043
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
a1b523c6
...
...
@@ -1715,21 +1715,22 @@ class MCIsimulator():
############ load star data catlog #####################
##starcat='selection_20230517_concat.csv'
starcat
=
's
tar_catlog.csv
'
starcat
=
's
election_20230517_concat.fits
'
##starcat='GaiaSource_675688-675713.csv'
self
.
log
.
info
(
'Stat catlog file name is %s'
%
(
starcat
))
#df0=pandas.read_csv(self.information['dir_path']+'MCI_inputData/star_input/'+starcat)
df0
=
pandas
.
read_csv
(
self
.
information
[
'dir_path'
]
+
'MCI_inputData/star_input/'
+
starcat
)
da
=
fits
.
open
(
starcat
)
df2
=
da
[
1
].
data
####
#df2.index = range(len(df2))
## limit the filed of view to 600*600 arcsec^2 square zone;
df2
=
df0
df3
=
df2
[
(
abs
(
df2
[
'ra_gaia'
]
-
df2
[
'ra_gaia'
].
mean
())
<
400
/
3600.0
)
&
(
abs
(
df2
[
'dec_gaia'
]
-
df2
[
'dec_gaia'
].
mean
())
<
400
/
3600.0
)
]
df3
.
index
=
range
(
len
(
df3
))
...
...
requirements.txt
View file @
a1b523c6
numpy
~=1.23.3
scipy
~=1.9.2
setuptools
~=65.5.1
pandas
~=1.
2
.3
pandas
~=1.
5
.3
julian
~=0.14
astropy
~=5.1
tqdm
~=4.59.0
...
...
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