test_common_catalog.py 530 Bytes
Newer Older
Shoulin Wei's avatar
gaia3  
Shoulin Wei committed
1
2
3
4
5
6
7
8
9
10
11
import os
import unittest
from astropy.io import fits

from csst_dfs_api.common.catalog import CatalogApi

class CommonCatalogTestCase(unittest.TestCase):

    def setUp(self):
        self.api = CatalogApi()

Wei Shoulin's avatar
c3    
Wei Shoulin committed
12
13
14
15
16
17
18
19
20
21
22
    def test_catalog_query(self):
        result = self.api.catalog_query(
            ra=160, 
            dec=-17, 
            radius=0.2, 
            catalog_name='gaia3', 
            min_mag=-1, 
            max_mag=-1, 
            obstime = -1, 
            limit = 2
        )
Wei Shoulin's avatar
ephem    
Wei Shoulin committed
23
        print('return:', result)