__init__.py 883 Bytes
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from ..facility import ObservationApi, Level0DataApi
from csst_dfs_commons.models import Result

def find_observation(
            module_id: str = None,
            obs_type: str = None,
            obs_time : tuple = (None, None),
            qc0_status : int = -1,
            prc_status : int = -1) -> Result:
    return ObservationApi().find()   

def find_level0(obs_id: str = '',
            module_id: str = '',
            detector_no: str = '',
            obs_type: str = '',
            filter: str = '',
            obs_time : tuple = (None, None),
            qc0_status : int = -1,
            prc_status : int = -1,
            file_name: str = '',
            ra_obj: float = None,
            dec_obj: float = None,
            radius: float = None,
            object_name: str = None,
            version: str = None) -> Result:
    return Level0DataApi().find()