Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
21a24bfa
Commit
21a24bfa
authored
5 months ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
cutout api
parent
8b23656d
main
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_dfs_api/mbi/level1.py
+25
-0
csst_dfs_api/mbi/level1.py
with
25 additions
and
0 deletions
+25
-0
csst_dfs_api/mbi/level1.py
0 → 100644
+
25
-
0
View file @
21a24bfa
from
..common.delegate
import
Delegate
class
Level1DataApi
(
object
):
"""
Level1 Data Operation Class
"""
def
__init__
(
self
):
self
.
pymodule
=
Delegate
().
load
(
sub_module
=
"mbi"
)
self
.
stub
=
getattr
(
self
.
pymodule
,
"Level1DataApi"
)()
def
cutout
(
self
,
**
kwargs
):
''' cutout a level1 record from database
:param kwargs: Parameter dictionary, key items support:
ra: [float], in degree
dec: [float], in degree
pixels = [int],
filters = list[str], for example:
['g', 'r', 'i']
:returns: csst_dfs_common.models.Result
'''
return
self
.
stub
.
cutout
(
**
kwargs
)
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets