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-dfs
csst-dfs-api
Commits
650b8f74
Commit
650b8f74
authored
Oct 20, 2022
by
Wei Shoulin
Browse files
comments
parent
21bc8a4a
Changes
4
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/ifs/level0.py
View file @
650b8f74
...
@@ -22,8 +22,8 @@ class Level0DataApi(object):
...
@@ -22,8 +22,8 @@ class Level0DataApi(object):
prc_status : [int],
prc_status : [int],
file_name: [str],
file_name: [str],
version: [str],
version: [str],
ra: [float],
ra
_obj
: [float],
dec: [float],
dec
_obj
: [float],
radius: [float],
radius: [float],
limit: limits returns the number of records,default 0:no-limit
limit: limits returns the number of records,default 0:no-limit
...
...
csst_dfs_api/mci/level0.py
View file @
650b8f74
...
@@ -13,13 +13,18 @@ class Level0DataApi(object):
...
@@ -13,13 +13,18 @@ class Level0DataApi(object):
''' retrieve level0 records from database
''' retrieve level0 records from database
:param kwargs: Parameter dictionary, key items support:
:param kwargs: Parameter dictionary, key items support:
obs_id: [str]
obs_id: [str],
detector_no: [str]
detector_no: [str],
obs_type: [str]
obs_type: [str],
object_name: [str],
obs_time : (start, end),
obs_time : (start, end),
qc0_status : [int],
qc0_status : [int],
prc_status : [int],
prc_status : [int],
file_name: [str]
file_name: [str],
version: [str],
ra_obj: [float],
dec_obj: [float],
radius: [float],
limit: limits returns the number of records,default 0:no-limit
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result
:returns: csst_dfs_common.models.Result
...
...
csst_dfs_api/msc/level0.py
View file @
650b8f74
...
@@ -19,7 +19,11 @@ class Level0DataApi(object):
...
@@ -19,7 +19,11 @@ class Level0DataApi(object):
obs_time : (start, end),
obs_time : (start, end),
qc0_status : [int],
qc0_status : [int],
prc_status : [int],
prc_status : [int],
file_name: [str]
file_name: [str],
ra_obj: [float],
dec_obj: [float],
radius: [float],
limit: limits returns the number of records,default 0:no-limit
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result
:returns: csst_dfs_common.models.Result
...
...
tests/common/test_common_catalog.py
View file @
650b8f74
...
@@ -15,15 +15,15 @@ class CommonCatalogTestCase(unittest.TestCase):
...
@@ -15,15 +15,15 @@ class CommonCatalogTestCase(unittest.TestCase):
result
=
self
.
api
.
catalog_query
(
result
=
self
.
api
.
catalog_query
(
ra
=
128
,
# 15415
ra
=
128
,
# 15415
dec
=-
40
,
dec
=-
40
,
radius
=
0.5
,
radius
=
2
,
catalog_name
=
'gaia3'
,
catalog_name
=
'gaia3'
,
min_mag
=-
1
,
min_mag
=-
1
,
max_mag
=-
1
,
max_mag
=-
1
,
obstime
=
-
1
,
obstime
=
-
1
,
limit
=
2
limit
=
-
1
)
)
dt
=
self
.
api
.
to_table
(
result
)
#
dt = self.api.to_table(result)
df
=
dt
.
to_pandas
()
#
df = dt.to_pandas()
print
(
df
.
head
())
#
print(df.head())
print
(
'used:'
,
time
.
time
()
-
t
)
print
(
'used:'
,
time
.
time
()
-
t
)
print
(
'return:'
,
result
)
print
(
'return:'
,
result
[
'totalCount'
]
)
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