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

comments

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