From 3b1aed9aa26bdad62b866cb42d4c0ad1ce33bdcd Mon Sep 17 00:00:00 2001 From: shoulinwei Date: Wed, 23 Nov 2022 14:53:45 +0800 Subject: [PATCH] add catalog_query_file --- csst_dfs_api/msc/level2.py | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/csst_dfs_api/msc/level2.py b/csst_dfs_api/msc/level2.py index 0926ce1..7b60483 100644 --- a/csst_dfs_api/msc/level2.py +++ b/csst_dfs_api/msc/level2.py @@ -33,15 +33,31 @@ class Level2DataApi(object): :param kwargs: Parameter dictionary, key items support: obs_id: [str] detector_no: [str] - min_mag: [float] - max_mag: [float] - obs_time: (start, end), + ra: [float] in deg + dec: [float] in deg + radius: [float] in deg + obs_time: (start, end) limit: limits returns the number of records,default 0:no-limit :returns: csst_dfs_common.models.Result ''' 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): ''' fetch a record from database -- GitLab