Commit 21a24bfa authored by Wei Shoulin's avatar Wei Shoulin
Browse files

cutout api

parent 8b23656d
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment