test_common_catalog.py 391 Bytes
Newer Older
Shoulin Wei's avatar
gaia3  
Shoulin Wei committed
1
2
3
4
5
6
7
8
9
10
11
12
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()

    def test_gaia3_query(self):
Wei Shoulin's avatar
ephem    
Wei Shoulin committed
13
14
        result = self.api.gaia3_query(ra=160, dec=-17, radius=0.2, min_mag=-1, max_mag=-1, obstime = -1, limit = 2)
        print('return:', result)