Commit 650b8f74 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

comments

parent 21bc8a4a
...@@ -22,8 +22,8 @@ class Level0DataApi(object): ...@@ -22,8 +22,8 @@ class Level0DataApi(object):
prc_status : [int], prc_status : [int],
file_name: [str], file_name: [str],
version: [str], version: [str],
ra: [float], ra_obj: [float],
dec: [float], dec_obj: [float],
radius: [float], radius: [float],
limit: limits returns the number of records,default 0:no-limit limit: limits returns the number of records,default 0:no-limit
......
...@@ -13,13 +13,18 @@ class Level0DataApi(object): ...@@ -13,13 +13,18 @@ class Level0DataApi(object):
''' retrieve level0 records from database ''' retrieve level0 records from database
: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],
obs_type: [str] obs_type: [str],
object_name: [str],
obs_time : (start, end), obs_time : (start, end),
qc0_status : [int], qc0_status : [int],
prc_status : [int], prc_status : [int],
file_name: [str] file_name: [str],
version: [str],
ra_obj: [float],
dec_obj: [float],
radius: [float],
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
......
...@@ -19,7 +19,11 @@ class Level0DataApi(object): ...@@ -19,7 +19,11 @@ class Level0DataApi(object):
obs_time : (start, end), obs_time : (start, end),
qc0_status : [int], qc0_status : [int],
prc_status : [int], prc_status : [int],
file_name: [str] file_name: [str],
ra_obj: [float],
dec_obj: [float],
radius: [float],
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
......
...@@ -15,15 +15,15 @@ class CommonCatalogTestCase(unittest.TestCase): ...@@ -15,15 +15,15 @@ class CommonCatalogTestCase(unittest.TestCase):
result = self.api.catalog_query( result = self.api.catalog_query(
ra=128, # 15415 ra=128, # 15415
dec=-40, dec=-40,
radius=0.5, radius=2,
catalog_name='gaia3', catalog_name='gaia3',
min_mag=-1, min_mag=-1,
max_mag=-1, max_mag=-1,
obstime = -1, obstime = -1,
limit = 2 limit = -1
) )
dt = self.api.to_table(result) # dt = self.api.to_table(result)
df = dt.to_pandas() # df = dt.to_pandas()
print(df.head()) # print(df.head())
print('used:', time.time()-t) print('used:', time.time()-t)
print('return:', result) print('return:', result['totalCount'])
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