Package skyview.vo
Class ConeQuerier
java.lang.Object
skyview.vo.ConeQuerier
- All Implemented Interfaces:
Runnable
This class queries a cone search service and returns the positions and IDs.
-
Constructor Summary
ConstructorsConstructorDescriptionConeQuerier(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
Modifier and TypeMethodDescriptionvoidaddCriterion(String name, String op, String value) static StringcheckURLEnd(String url) Make sure that URLs can be appended tostatic ConeQuerierCreate a ConeQuerier Object.intgetCount()Get the number of rows returnedString[]Get the names of extra columnsGet the list of extra columnsString[]getIDs()Get the specified IDsdouble[][]Get the array of positiondoublegetSize()Get the size of the requestgetURL()Get the URL used.static voidvoidrun()Run the queryvoidsetEntriesUsed(int n) voidsetOutput(PrintStream str) voidupdateHeader(nom.tam.fits.Header hdr)
-
Constructor Details
-
ConeQuerier
Build a cone querier using the base URL and cone search parameters. -
ConeQuerier
Build a cone querier using the full URL.
-
-
Method Details
-
checkURLEnd
Make sure that URLs can be appended to -
setEntriesUsed
public void setEntriesUsed(int n) -
setOutput
-
addCriterion
-
getSize
public double getSize()Get the size of the request -
run
public void run()Run the query -
getPositions
public double[][] getPositions()Get the array of position- Returns:
- a double[n][2] array.
-
getIDs
Get the specified IDs -
getCount
public int getCount()Get the number of rows returned -
getURL
Get the URL used. -
getExtras
Get the list of extra columns -
getExtraNames
Get the names of extra columns -
factory
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.
-
main
- Throws:
Exception
-
updateHeader
public void updateHeader(nom.tam.fits.Header hdr)
-