Package skyview.vo
Class ConeQuerier
- java.lang.Object
-
- skyview.vo.ConeQuerier
-
-
Constructor Summary
Constructors Constructor Description ConeQuerier(String URL, String id)
Build a cone querier using the full URL.ConeQuerier(String baseURL, String id, double ra, double dec, double size)
Build a cone querier using the base URL and cone search parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCriterion(String name, String op, String value)
static String
checkURLEnd(String url)
Make sure that URLs can be appended tostatic ConeQuerier
factory(String id, double ra, double dec, double size)
Create a ConeQuerier Object.int
getCount()
Get the number of rows returnedString[]
getExtraNames()
Get the names of extra columnsArrayList<String[]>
getExtras()
Get the list of extra columnsString[]
getIDs()
Get the specified IDsdouble[][]
getPositions()
Get the array of positiondouble
getSize()
Get the size of the requestString
getURL()
Get the URL used.static void
main(String[] args)
void
run()
Run the queryvoid
setEntriesUsed(int n)
void
setOutput(PrintStream str)
void
updateHeader(nom.tam.fits.Header hdr)
-
-
-
Method Detail
-
setEntriesUsed
public void setEntriesUsed(int n)
-
setOutput
public void setOutput(PrintStream str)
-
getSize
public double getSize()
Get the size of the request
-
getPositions
public double[][] getPositions()
Get the array of position- Returns:
- a double[n][2] array.
-
getIDs
public String[] getIDs()
Get the specified IDs
-
getCount
public int getCount()
Get the number of rows returned
-
getURL
public String getURL()
Get the URL used.
-
getExtraNames
public String[] getExtraNames()
Get the names of extra columns
-
factory
public static ConeQuerier factory(String id, double ra, double dec, double size)
Create a ConeQuerier Object.- Parameters:
id
-- NED: query the NED cone search services
- SIMBAD: query SIMBAD
- contains '/': assume this is a Vizier table.
- otherwise: assume this is a HEASARC table.
-
updateHeader
public void updateHeader(nom.tam.fits.Header hdr)
-
-