test_mbi_level1.py 404 Bytes
Newer Older
Wei Shoulin's avatar
test  
Wei Shoulin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import unittest
from astropy.io import fits

from csst_dfs_api.mbi.level1 import Level1DataApi

class Level1DataTestCase(unittest.TestCase):

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

    def test_cutout(self):
        recs = self.api.cutout(
            ra=120,
            dec = 40,
            pixels = 100,
            filters = ['g', 'r', 'i'])
        print('find:', recs)