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
3b1aed9a
Commit
3b1aed9a
authored
Nov 23, 2022
by
Wei Shoulin
Browse files
add catalog_query_file
parent
69d34d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/msc/level2.py
View file @
3b1aed9a
...
...
@@ -33,15 +33,31 @@ class Level2DataApi(object):
:param kwargs: Parameter dictionary, key items support:
obs_id: [str]
detector_no: [str]
min_mag: [float]
max_mag: [float]
obs_time: (start, end),
ra: [float] in deg
dec: [float] in deg
radius: [float] in deg
obs_time: (start, end)
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result
'''
return
self
.
stub
.
catalog_query
(
**
kwargs
)
def
catalog_query_file
(
self
,
**
kwargs
):
''' retrieve level2 catalog, return Level2Record
:param kwargs: Parameter dictionary, key items support:
obs_id: [str]
detector_no: [str]
ra: [float] in deg
dec: [float] in deg
radius: [float] in deg
obs_time: (start, end)
:returns: csst_dfs_common.models.Result
'''
return
self
.
stub
.
catalog_query_file
(
**
kwargs
)
def
get
(
self
,
**
kwargs
):
''' fetch a record from database
...
...
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