public class AddeImageURL extends AddeDatasetURL
URLs must all have the following format: adde://host/request?keyword_1=value_1&keyword_2=value_2 where request can be one of the following: imagedata - request for data in AreaFile format (AGET) imagedirectory - request for image directory information (ADIR) There can be any valid combination of the following supported keywords: group=<groupname> ADDE group name descr=<descriptor> ADDE descriptor name band=<band> spectral band or channel number mag=<lmag> <emag> image magnification, postitive for blowup, negative for blowdown (default = 1, emag=lmag) (imagedata only) latlon=<lat> <lon> lat/lon point to center image on (imagedata only) linele=<lin> <ele> <type> line/element to center image on (imagedata only) place=<placement> placement of lat/lon or linele points (center or upperleft (def=center)) (imagedata only) pos=<position> request an absolute or relative ADDE position number. May use <start> <end> Default for <end> is 0 if start<0, or =start otherwise. size=<lines> <elements> size of image to be returned (imagedata only) unit=<unit> to specify calibration units other than the default spac=<bytes> number of bytes per data point, 1, 2, or 4 (imagedata only) doc=<yes/no> specify yes to include line documentation with image (def=no) nav=<lalo> include the lat-lon navigation info and not the O&A. aux=<yes/no> specify yes to include auxilliary information with image time=<time1> <time2> specify the time range of images to select (def=latest image if pos not specified) day=<day> specify the day of the images to select (def=latest image if pos not specified) cal=<cal type> request a specific calibration on the image (imagedata only) id=<stn id> radar station id user=<user_id> ADDE user identification proj=<proj #> a valid ADDE project number trace=<0/1> setting to 1 tells server to write debug trace file version= ADDE version number, currently 1 except for griddata requests debug= set to true to watch the printlns stream by compress= set to "gzip" if you want to use the GZIP compression or "compress" if you want to use transfers in Unix compress format (You need to have the VisAD package if you want to support this.) default = none. port= Socket port to connect on. Overridden by a port specified in the host (e.g., adde.ucar.edu:500)
Modifier and Type | Field and Description |
---|---|
static String |
KEY_AUX
Keyword for aux request
|
static String |
KEY_BAND
Keyword for band
|
static String |
KEY_DAY
Keyword for day request
|
static String |
KEY_DOC
Keyword for doc request
|
static String |
KEY_ID
Keyword for station id
|
static String |
KEY_LATLON
Keyword for lat/lon request
|
static String |
KEY_LINEELE
Keyword for lin/ele request
|
static String |
KEY_LOC
Keyword for location
|
static String |
KEY_MAG
Keyword for mag
|
static String |
KEY_NAV
Keyword for navigation type
|
static String |
KEY_NUM
Keyword for number of items
|
static String |
KEY_PLACE
Keyword for place
|
static String |
KEY_POS
Keyword for position
|
static String |
KEY_SIZE
Keyword for size
|
static String |
KEY_SPAC
Keyword for spacing
|
static String |
KEY_TIME
Keyword for time request
|
static String |
KEY_UNIT
Keyword for calibration unit
|
KEY_DESCRIPTOR, KEY_GROUP
ADDE_PROTOCOL, ALL, COMPRESS, DEFAULT_VALUE, GZIP, KEY_COMPRESS, KEY_DEBUG, KEY_PORT, KEY_PROJ, KEY_TRACE, KEY_USER, KEY_VERSION, NO, NO_COMPRESS, REQ_ADIR, REQ_AGET, REQ_DATASETINFO, REQ_GDIR, REQ_GGET, REQ_GRIDDATA, REQ_GRIDDIR, REQ_IMAGEDATA, REQ_IMAGEDIR, REQ_LWPR, REQ_MDKS, REQ_OBTEXT, REQ_OBTG, REQ_POINTDATA, REQ_TEXT, REQ_TXTG, REQ_WTXG, REQ_WXTEXT, TRACE_OFF, TRACE_ON, YES
Constructor and Description |
---|
AddeImageURL()
no arg constructor
|
AddeImageURL(String host,
String requestType,
String group,
String descriptor)
Create an AddeImageURL.
|
AddeImageURL(String host,
String requestType,
String group,
String descriptor,
String query)
Create an ADDE Image URL from the given specs.
|
AddeImageURL(String host,
String requestType,
String group,
String descriptor,
String locateKey,
String locateValue,
String placeValue,
int lines,
int elements,
int lmag,
int emag,
String band,
String unit,
int spacing)
Create an ADDE Image URL from the given spec
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendDateOrPosString(StringBuffer buf)
Create a DAY/TIME or POS string
|
String |
getAuxValue()
Get the AUX keyword value
|
String |
getBand()
Get the band or band range
|
int |
getDatasetPosition()
Get the dataset position
|
String |
getDocValue()
Get the DOC keyword value
|
int |
getElementMag()
Get the element magnification
|
int |
getElements()
Get the number of elements
|
Date |
getEndDate()
Get the end date for the request
|
String |
getId()
Get the location ID for radar images
|
int |
getLineMag()
Get the line magnification
|
int |
getLines()
Get the number of lines
|
String |
getLocateKey()
Get the locate key
|
String |
getLocateValue()
Get the locate value
|
String |
getNavType()
Get the navigation type
|
String |
getPlaceValue()
Get the PLACE value
|
int |
getSpacing()
Get the data size (SPAC)
|
Date |
getStartDate()
Get the start date for the request
|
String |
getTimeCoverage()
Set the time coverage
|
String |
getUnit()
Get the calibration unit
|
protected String |
makeQuery()
Create the ADDE URL
|
void |
setAuxValue(String value)
Set the AUX keyword value
|
void |
setBand(String value)
Set the band or band range
|
void |
setDatasetPosition(int value)
Set the dataset position
|
void |
setDocValue(String value)
Set the DOC keyword value
|
void |
setElementMag(int value)
Set the element magnification
|
void |
setElements(int value)
Set the number of elements
|
void |
setEndDate(Date value)
Set the end date for the request
|
void |
setId(String value)
Set the location ID for radar images
|
void |
setLineMag(int value)
Set the line magnification
|
void |
setLines(int value)
Set the number of lines
|
void |
setLocateKey(String value)
Set the locate key
|
void |
setLocateValue(String value)
Set the locate value
|
void |
setNavType(String value)
Set the navigation type
|
void |
setPlaceValue(String value)
Set the place value
|
void |
setSpacing(int value)
Set the data size (SPAC)
|
void |
setStartDate(Date value)
Set the start date for the request
|
void |
setTimeCoverage(String value)
Set the time coverage
|
void |
setUnit(String value)
Set the calibration unit
|
getDescriptor, getGroup, parseQuery, setDescriptor, setGroup
appendKeyValue, clone, equals, getCompression, getDebug, getExtraKeys, getHost, getPort, getProject, getRequestType, getTrace, getURLString, getUser, getValue, getVersion, hashCode, setCompression, setCompressionFromString, setDebug, setExtraKeys, setHost, setPort, setProject, setRequestType, setTrace, setUser, setVersion
public static final String KEY_BAND
public static final String KEY_POS
public static final String KEY_ID
public static final String KEY_LATLON
public static final String KEY_LINEELE
public static final String KEY_LOC
public static final String KEY_MAG
public static final String KEY_NUM
public static final String KEY_PLACE
public static final String KEY_SIZE
public static final String KEY_SPAC
public static final String KEY_UNIT
public static final String KEY_NAV
public static final String KEY_AUX
public static final String KEY_DOC
public static final String KEY_DAY
public static final String KEY_TIME
public AddeImageURL()
public AddeImageURL(String host, String requestType, String group, String descriptor)
host
- host to send torequestType
- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group
- ADDE groupdescriptor
- ADDE descriptorpublic AddeImageURL(String host, String requestType, String group, String descriptor, String query)
host
- host to send torequestType
- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group
- ADDE group (may be null)descriptor
- ADDE descriptor (may be null)query
- query string (key/value pairs)public AddeImageURL(String host, String requestType, String group, String descriptor, String locateKey, String locateValue, String placeValue, int lines, int elements, int lmag, int emag, String band, String unit, int spacing)
host
- host to send torequestType
- type of request (REQ_IMAGEDATA, REQ_IMAGEDIR)group
- ADDE groupdescriptor
- ADDE descriptorlocateKey
- locate keylocateValue
- locate valueplaceValue
- place valuelines
- number of lineselements
- number of elementslmag
- line magnificationemag
- element magnificationband
- bandunit
- calibration unitspacing
- data sizepublic String getPlaceValue()
public String getLocateKey()
public String getLocateValue()
public int getLines()
public int getElements()
public int getElementMag()
public int getLineMag()
public void setLocateKey(String value)
value
- the locate keypublic void setLocateValue(String value)
value
- the locate valuepublic void setPlaceValue(String value)
value
- the place valuepublic void setLines(int value)
value
- the number of linespublic void setElements(int value)
value
- the number of elementspublic void setElementMag(int value)
value
- the element magnificationpublic void setLineMag(int value)
value
- the line magnificationpublic void setSpacing(int value)
value
- the data sizepublic int getSpacing()
public void setBand(String value)
value
- the band range or ALL. For REQ_IMAGEDATA, must
be a single bandpublic String getBand()
public void setUnit(String value)
value
- the calibration unitpublic String getUnit()
public void setNavType(String value)
value
- the navigation type (X or LALO)public String getNavType()
public void setId(String value)
value
- the location IDpublic String getId()
public void setDatasetPosition(int value)
value
- the dataset positionpublic int getDatasetPosition()
public void setStartDate(Date value)
value
- the starting date for the requestpublic Date getStartDate()
public void setEndDate(Date value)
value
- the ending date for the requestpublic Date getEndDate()
public void setTimeCoverage(String value)
value
- the time coveragepublic String getTimeCoverage()
public void setAuxValue(String value)
value
- the AUX keyword value (YES, NO or DEFAULT_VALUE)public String getAuxValue()
public void setDocValue(String value)
value
- the DOC keyword value (YES, NO or DEFAULT_VALUE)public String getDocValue()
protected String makeQuery()
makeQuery
in class AddeDatasetURL
protected void appendDateOrPosString(StringBuffer buf)
buf
- buffer to append toCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.