Commit 3b1aed9a authored by Wei Shoulin's avatar Wei Shoulin
Browse files

add catalog_query_file

parent 69d34d83
...@@ -33,15 +33,31 @@ class Level2DataApi(object): ...@@ -33,15 +33,31 @@ class Level2DataApi(object):
: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]
min_mag: [float] ra: [float] in deg
max_mag: [float] dec: [float] in deg
obs_time: (start, end), radius: [float] in deg
obs_time: (start, end)
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
''' '''
return self.stub.catalog_query(**kwargs) 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): def get(self, **kwargs):
''' fetch a record from database ''' fetch a record from database
......
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