@@ -32,14 +32,12 @@ class JwstClass(object):
3232 Proxy class to default TapPlus object (pointing to JWST Archive)
3333 """
3434 JWST_MAIN_TABLE = conf .JWST_MAIN_TABLE
35- JWST_ARTIFACT_TABLE = conf .JWST_ARTIFACT_TABLE
36- JWST_OBSERVATION_TABLE = conf .JWST_OBSERVATION_TABLE
37- JWST_OBSERVATION_TABLE_RA = conf .JWST_OBSERVATION_TABLE_RA
38- JWST_OBSERVATION_TABLE_DEC = conf .JWST_OBSERVATION_TABLE_DEC
39- JWST_PLANE_TABLE = conf .JWST_PLANE_TABLE
35+ JWST_MAIN_TABLE_RA = conf .JWST_MAIN_TABLE_RA
36+ JWST_MAIN_TABLE_DEC = conf .JWST_MAIN_TABLE_DEC
4037
4138 JWST_DEFAULT_COLUMNS = ['observationid' , 'calibrationlevel' , 'public' ,
42- 'dataproducttype' , 'instrument_name' , 'position_bounds_center' ,
39+ 'dataproducttype' , 'instrument_name' , 'energy_bandpassname' ,
40+ 'target_name' , 'target_ra' , 'target_dec' , 'position_bounds_center' ,
4341 'position_bounds_spoly' ]
4442
4543 PLANE_DATAPRODUCT_TYPES = ['image' , 'cube' , 'measurements' , 'spectrum' ]
@@ -558,12 +556,12 @@ def __cone_search(self, coordinate, radius,
558556 radius_deg = commons .radius_to_unit (radius_quantity , unit = 'deg' )
559557
560558 query = "SELECT DISTANCE(POINT('ICRS'," + \
561- str (self .JWST_OBSERVATION_TABLE_RA ) + "," + \
562- str (self .JWST_OBSERVATION_TABLE_DEC ) + "), \
559+ str (self .JWST_MAIN_TABLE_RA ) + "," + \
560+ str (self .JWST_MAIN_TABLE_DEC ) + "), \
563561 POINT('ICRS'," + str (ra ) + "," + str (dec ) + ")) AS dist, " + columns + " \
564562 FROM " + str (self .JWST_MAIN_TABLE ) + " WHERE CONTAINS(\
565- POINT('ICRS'," + str (self .JWST_OBSERVATION_TABLE_RA ) + "," + \
566- str (self .JWST_OBSERVATION_TABLE_DEC )+ "),\
563+ POINT('ICRS'," + str (self .JWST_MAIN_TABLE_RA ) + "," + \
564+ str (self .JWST_MAIN_TABLE_DEC )+ "),\
567565 CIRCLE('ICRS'," + str (ra )+ "," + str (dec ) + ", " + \
568566 str (radius_deg )+ "))=1" + \
569567 observationid_condition + \
0 commit comments