|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
net.DigitizedSkySurveyImage
DigitizedSkySurvey instead.
public class DigitizedSkySurveyImage
This class uses a cgi-based interface to the
dss server to retrieve a dss
image readily to use as a Java-image. The standard retrieval format is on
an URL like
http://stdatu.stsci.edu/cgi-bin/dss_search?v=poss2ukstu&r=16+00+00&d=-20+00+00&e=J2000&h=15.0&w=15.0&f=gif&s=true&c=none&fov=NONE&v3=.
As I know only how to operate this server, the extra-work involved in
allowing the user to specify the server KEY_SERVER, the CGI-path
KEY_CGIPATH and all the id's for the necessary fields might be
extra work, but future development may provide different servers. Note that
the user can specify the name of the method that actually transfers a
request to the server with the KEY_URLMETHOD key. Actually, it
points to getUrlForStsci(java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double). Additional implementation should
adopt a similar naming scheme, i.e. starting with getUrlFor
extended with the institute name providing the service. This method must
always return an URL and must be declared in this class.
New locations
| Nested Class Summary | |
|---|---|
static class |
DigitizedSkySurveyImage.Display
Deprecated. Test the image retrieval. |
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
private static String |
DEFCGIPATH
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDDEC
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDEPOCH
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDFORMAT
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDHEIGHT
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDRA
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDSOURCE
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFIDWIDTH
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFPROTOCOL
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFSERVER
Deprecated. Default print writer to use for the syslog. |
private static String |
DEFURLMETHOD
Deprecated. Default print writer to use for the syslog. |
private static Toolkit |
imageload
Deprecated. The ttolkit for downloading URL's to images. |
static String |
KEY_CGIPATH
Deprecated. The cgi-path after the server name. |
static String |
KEY_IDDEC
Deprecated. The string used to identify the declination of the image. |
static String |
KEY_IDEPOCH
Deprecated. The string used to identify the epoch of the position. |
static String |
KEY_IDFORMAT
Deprecated. The string used to identify the image format. |
static String |
KEY_IDHEIGHT
Deprecated. The string used to identify the height of the image. |
static String |
KEY_IDRA
Deprecated. The string used to identify the right ascension of the image. |
static String |
KEY_IDSOURCE
Deprecated. The string used to identify the plate source. |
static String |
KEY_IDWIDTH
Deprecated. The string used to identify the width of the image. |
static String |
KEY_PROTOCOL
Deprecated. The protocol type for downloading. |
static String |
KEY_SERVER
Deprecated. The server name hosting the digitized sky survey archive. |
static String |
KEY_URLMETHOD
Deprecated. This method is called to retrieve an URL for image download. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
DigitizedSkySurveyImage(Map prop)
Deprecated. Constructs a new dss-image retrieval object. |
|
| Method Summary | |
|---|---|
private URL |
getDownloadUrl(double ra,
double dec,
double width,
double height)
Deprecated. Returns the URL from which the image can be retrieved. |
Image |
getImage(double ra,
double dec,
double width,
double height)
Deprecated. Takes the center of an image, its width and height and retrieves it from a dss server. |
Image |
getImageAndWait(Component forme,
double ra,
double dec,
double width,
double height)
Deprecated. Takes the center of an image, its width and height and retrieves it from a dss server. |
private static String |
getMinSec(double degree)
Deprecated. Converts the fractional part of the argument into minutes and seconds. |
URL |
getUrlForStsci(Double ra,
Double dec,
Double width,
Double height)
Deprecated. This method prepares an url according to the CGI-requirements of the STScI dss-server. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_PROTOCOL
public static final String KEY_SERVER
public static final String KEY_CGIPATH
public static final String KEY_IDSOURCE
public static final String KEY_IDRA
public static final String KEY_IDDEC
public static final String KEY_IDEPOCH
public static final String KEY_IDHEIGHT
public static final String KEY_IDWIDTH
public static final String KEY_IDFORMAT
public static final String KEY_URLMETHOD
private static final String DEFPROTOCOL
private static final String DEFSERVER
private static final String DEFCGIPATH
private static final String DEFIDSOURCE
private static final String DEFIDRA
private static final String DEFIDDEC
private static final String DEFIDEPOCH
private static final String DEFIDHEIGHT
private static final String DEFIDWIDTH
private static final String DEFIDFORMAT
private static final String DEFURLMETHOD
private static final Toolkit imageload
| Constructor Detail |
|---|
public DigitizedSkySurveyImage(Map prop)
getImage(double, double, double, double) method.
| Method Detail |
|---|
public Image getImage(double ra,
double dec,
double width,
double height)
getImageAndWait(java.awt.Component, double, double, double, double).
ra - Right ascension of the center of the image in degrees.dec - Declination of the center of the image in degrees.width - Width of the image in degrees.height - Height of the image in degrees.
public Image getImageAndWait(Component forme,
double ra,
double dec,
double width,
double height)
getImage(double, double, double, double).
forme - The component that wants to display the image.ra - Right ascension of the center of the image in degrees.dec - Declination of the center of the image in degrees.width - Width of the image in degrees.height - Height of the image in degrees.
private URL getDownloadUrl(double ra,
double dec,
double width,
double height)
KEY_URLMETHOD property to fork into the appropriate
method.
ra - Right ascension of the center of the image in degrees.dec - Declination of the center of the image in degrees.width - Width of the image in degrees.height - Height of the image in degrees.private static final String getMinSec(double degree)
public URL getUrlForStsci(Double ra,
Double dec,
Double width,
Double height)
KEY_IDSOURCE of
the image, r is right ascension in hours, minutes and seconds,
d the declination in degrees, minutes and seconds separated
with '+' that replace ' '. Height and width are in arcminutes.
Retrieval format is always 'gif' to allow JAVA to convert the bytes
into an image. No compression, field-of-view, or rotation angle is
allowed.The image requested has integer width and height (arcmin).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||