|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.DigitizedSkySurvey
public class DigitizedSkySurvey
This class provides methods to download a DSS fits file from the world wide web. Each site uses its different format, but all methods within this class retrieve fits files or null in case of failure. All fits are read, if input streams were opened, they have been closed.
| Nested Class Summary | |
|---|---|
static class |
DigitizedSkySurvey.Test
Test class, retrieve a fits. |
| Field Summary | |
|---|---|
private static String |
CADCPATH
The cgi-path for the default server. |
private static String |
CADCPROTOCOL
The protocol of the default server. |
private static String |
CADCSERVER
The server for the default retrieval method. |
private static String |
DEFMETHOD
The default method name from which to retrieve a DSS fits. |
private static String |
ESOPATH
The cgi-path for the default server. |
private static String |
ESOPROTOCOL
The protocol of the default server. |
private static String |
ESOSERVER
The server for the default retrieval method. |
private static String |
STSCICGIPATH
The cgi-path for the default server. |
private static String |
STSCIPROTOCOL
The protocol of the default server. |
private static String |
STSCISERVER
The server for the default retrieval method. |
private static String |
STSISOURCE
The default source for the Stsci. |
private static Method[] |
www
All defined methods that allow FITS retrieval. |
| Constructor Summary | |
|---|---|
DigitizedSkySurvey()
|
|
| Method Summary | |
|---|---|
static nom.tam.fits.Fits |
getDigitizedSkySurvey(double ra,
double de,
double w,
double h)
Retrieves a DSS fits image from the standard server. |
static nom.tam.fits.Fits |
getDigitizedSkySurvey(String method,
double ra,
double de,
double w,
double h)
Retrieves a DSS fits image using the name of the method used to retrieve the FITS is stated. |
private static nom.tam.fits.Fits |
getFromCadc(Double ra,
Double dec,
Double width,
Double height)
This method connects to the CADC-server in Canada. |
private static nom.tam.fits.Fits |
getFromEso(Double ra,
Double dec,
Double width,
Double height)
This method connects to the ESO-archive. |
private static nom.tam.fits.Fits |
getFromStsci(Double ra,
Double dec,
Double width,
Double height)
This method connects to the DSS archive on STSCISERVER. |
private static String |
getMinSec(double deg)
Converts degress in deg min sec string. |
private static String |
getMinSec(double deg,
boolean plus)
Converts degress in deg min sec string. |
static String[] |
getRetrievalMethods()
Returns the names of all methods that allow FITS retrieval. |
private static Method[] |
scanForMethods()
Scan this class for all methods that return a fits and take four doubles as arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String DEFMETHOD
private static final String STSCIPROTOCOL
private static final String STSCISERVER
private static final String STSCICGIPATH
private static final String STSISOURCE
private static final String ESOPROTOCOL
private static final String ESOSERVER
private static final String ESOPATH
private static final String CADCPROTOCOL
private static final String CADCSERVER
private static final String CADCPATH
private static Method[] www
| Constructor Detail |
|---|
public DigitizedSkySurvey()
| Method Detail |
|---|
public static nom.tam.fits.Fits getDigitizedSkySurvey(double ra,
double de,
double w,
double h)
ra - Right ascension of center of field in degreesde - Declination of center of field in degrees.w - Width of field in degrees.h - Height of field in degrees.
public static nom.tam.fits.Fits getDigitizedSkySurvey(String method,
double ra,
double de,
double w,
double h)
ra - Right ascension of center of field in degreesde - Declination of center of field in degrees.w - Width of field in degrees.h - Height of field in degrees.public static String[] getRetrievalMethods()
private static final Method[] scanForMethods()
private static nom.tam.fits.Fits getFromStsci(Double ra,
Double dec,
Double width,
Double height)
STSCISERVER. If the
format changes, this class must be re-compiled.
The server expects a form in a GET field.
private static nom.tam.fits.Fits getFromEso(Double ra,
Double dec,
Double width,
Double height)
private static nom.tam.fits.Fits getFromCadc(Double ra,
Double dec,
Double width,
Double height)
private static String getMinSec(double deg)
private static String getMinSec(double deg,
boolean plus)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||