@@ -43,6 +43,14 @@ def test_sdss_spectrum(self, dr):
4343 assert isinstance (xid , Table )
4444 sp = sdss .SDSS .get_spectra (matches = xid , data_release = dr )
4545
46+ def test_sdss_spectrum_plate_mjd_fiber (self ):
47+ """These plates are only available in recent data releases.
48+ """
49+ sp = sdss .SDSS .get_spectra (plate = 9403 , mjd = 58018 , fiberID = 485 ,
50+ data_release = 16 )
51+ sp = sdss .SDSS .get_spectra (plate = 10909 , mjd = 58280 , fiberID = 485 ,
52+ data_release = 16 )
53+
4654 def test_sdss_spectrum_mjd (self ):
4755 sp = sdss .SDSS .get_spectra (plate = 2345 , fiberID = 572 )
4856
@@ -79,25 +87,22 @@ def test_sdss_image_coord(self):
7987
8088 def test_sdss_specobj (self ):
8189 colnames = ['ra' , 'dec' , 'objid' , 'run' , 'rerun' , 'camcol' , 'field' ,
82- 'z' , 'plate' , 'mjd' , 'fiberID' , 'specobjid' , 'run2d' ,
83- 'instrument' ]
90+ 'z' , 'plate' , 'mjd' , 'fiberID' , 'specobjid' , 'run2d' ]
8491 dtypes = [float , float , np .int64 , int , int , int , int , float , int , int ,
8592 int , np .int64 , int , bytes ]
8693 data = [
8794 [46.8390680395307 , 5.16972676625711 , 1237670015125750016 , 5714 ,
8895 301 , 2 , 185 , - 0.0006390358 , 2340 , 53733 , 291 , 2634685834112034816 ,
89- 26 , 'SDSS' ],
96+ 26 ],
9097 [46.8705377929765 , 5.42458826592292 , 1237670015662621224 , 5714 ,
91- 301 , 3 , 185 , 0 , 2340 , 53733 , 3 , 2634606669274834944 , 26 , 'SDSS' ],
98+ 301 , 3 , 185 , 0 , 2340 , 53733 , 3 , 2634606669274834944 , 26 ],
9299 [46.8899751105478 , 5.09432755808192 , 1237670015125815346 , 5714 ,
93100 301 , 2 , 186 , - 4.898809E-05 , 2340 , 53733 , 287 , 2634684734600407040 ,
94- 26 , 'SDSS' ],
101+ 26 ],
95102 [46.8954031261838 , 5.9739184644185 , 1237670016199491831 , 5714 ,
96- 301 , 4 , 185 , 0 , 2340 , 53733 , 329 , 2634696279472498688 , 26 ,
97- 'SDSS' ],
103+ 301 , 4 , 185 , 0 , 2340 , 53733 , 329 , 2634696279472498688 , 26 ],
98104 [46.9155836662379 , 5.50671723824944 , 1237670015662686398 , 5714 ,
99- 301 , 3 , 186 , 0 , 2340 , 53733 , 420 , 2634721293362030592 , 26 ,
100- 'SDSS' ]]
105+ 301 , 3 , 186 , 0 , 2340 , 53733 , 420 , 2634721293362030592 , 26 ]]
101106 table = Table (data = [x for x in zip (* data )],
102107 names = colnames , dtype = dtypes )
103108 xid = sdss .SDSS .query_specobj (plate = 2340 )
0 commit comments