# Launch: python interesting_objects.py
# Prints interesting objects spectra filenames

# objname, mjd, plate, fiberid
aa = """
RGG1,53032,1561,161
RGG9,51908,450,409
RGG11,54525,2956,457
RGG20,52791,1315,568
RGG21,53819,2015,251
RGG32,52024,536,575
RGG48,52669,1198,392
RGG118,54234,2753,127
RGG119,54540,1819,496
RGG123,52026,593,547
RGG127_Dong07,53534,2196,561
6dFGS_gJ025523,52175,708,141
NGC3835_epoch1,52411,953,400
NGC3835_epoch2,54502,2881,554
2MASS_J13503590,53559,1806,389
radio_cand,52974,1271,129
J153425.59+040806.7,52026,593,547
J100510.52+543255.5,52652,945,172
J105424.29+454130.5,53054,1436,303
J133921.95+544527.7,52764,1321,44
J022849.52-090153.9,51908,454,109
J024912.87-081525.7,51910,456,77
J102348.44+040553.7,52319,575,199
J131310.13+051942.2,52338,850,585
J155711.97+390928.9,52516,1054,128
J162636.40+350242.1,52522,1057,630
J164027.63+471256.5,52144,627,604
J082737.40+272917.3,52932,1267,107
J085906.36+542150.2,51900,449,571
J233837.09-002810.5,51877,385,264
J005633.36+000510.2,51913,394,624
J092547.32+050231.7,52707,991,61
J112718.75+585025.1,52409,952,228
J114343.77+550019.3,52734,1015,596
J122342.81+581446.2,52791,1315,568
J122711.67+630646.9,52342,779,621
J123152.81+001033.7,51990,289,625
J132224.41+422643.4,53089,1376,87
J134738.24+474301.9,52736,1284,151
J152347.00+541720.4,52376,794,550
J211145.90+093813.7,52520,728,179
J011749.81-100114.7,52177,660,142
J091624.82+383433.5,52707,937,66
J093836.00+383613.4,52725,1215,114
J112713.22+462530.6,53050,1442,263
J114008.71+030711.4,51994,514,331
J125359.22+655907.6,52316,601,533
J143450.63+033842.6,52023,586,234
J143552.31+341345.5,53172,1645,139
"""

from common_utils import get_spectrum_abspath

for a in aa.split():
  bb = a.split(',')
  p = get_spectrum_abspath(bb[1], bb[2], bb[3], search_dir='/data1/pro/SDSS/fit_agn') # change here for your liking (e.g. fit_MILES_x)
  if p:
    print p
  else:
    print 'Not found! {}'.format(a)
