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
21a24bfa
Commit
21a24bfa
authored
Oct 28, 2024
by
Wei Shoulin
Browse files
cutout api
parent
8b23656d
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dfs_api/mbi/level1.py
0 → 100644
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
)
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