|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.mcidas.BaseMapAdapter
public class BaseMapAdapter
this is an adapter for McIDAS Base Map files
Constructor Summary | |
---|---|
BaseMapAdapter(InputStream is)
Create a VisAD UnionSet from a McIDAS Base Map file inputstream |
|
BaseMapAdapter(InputStream is,
Rectangle2D bbox)
Create a VisAD UnionSet from a McIDAS Base Map file inputstream |
|
BaseMapAdapter(String filename)
Create a VisAD UnionSet from a local McIDAS Base Map file |
|
BaseMapAdapter(String filename,
Rectangle2D bbox)
Create a VisAD UnionSet from a McIDAS Base Map file on the Web |
|
BaseMapAdapter(URL url)
Create a VisAD UnionSet from a McIDAS Base Map file on the Web |
|
BaseMapAdapter(URL url,
Rectangle2D bbox)
Create a VisAD UnionSet from a McIDAS Base Map file on the Web |
Method Summary | |
---|---|
void |
doByLatLon()
Set the MathType of the UnionSet to be lat/lon. |
UnionSet |
getData()
getData creates a VisAD UnionSet type with the MathType specified thru one of the other methods. |
boolean |
isEastPositive()
determine what sign convention for longitude is currently being used. |
void |
setCoordinateSystem(CoordinateSystem cs,
int numEles,
int numLines,
RealTupleType domain)
Define a CoordinateSystem whose fromReference() will be used to transform points from latitude/longitude into element,line. |
void |
setDomainSet(Linear2DSet domainSet)
Using the domain_set of the FlatField of an image (when one is available), extract the elements required. |
void |
setEastPositive(boolean value)
set the sign of longitude convention. |
void |
setLatLonLimits(float latmin,
float latmax,
float lonmin,
float lonmax)
set the limits of Lats and Lons; without this, the getData() will return ALL the points in the file. |
void |
setLatLonLimits(Rectangle2D bbox)
set the limits of Lats and Lons; without this, the getData() will return ALL the points in the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseMapAdapter(String filename) throws IOException, VisADException
filename
- name of local file.
IOException
- if there was a problem reading the file.
VisADException
- if an unexpected problem occurs.public BaseMapAdapter(String filename, Rectangle2D bbox) throws IOException, VisADException
filename
- name of local file.bbox
- lat/lon bounding box of map lines to include
IOException
- if there was a problem reading the file.
VisADException
- if an unexpected problem occurs.public BaseMapAdapter(URL url) throws IOException, VisADException
url
- URL & filename name of remote file
IOException
- if there was a problem reading the URL.
VisADException
- if an unexpected problem occurs.public BaseMapAdapter(URL url, Rectangle2D bbox) throws IOException, VisADException
url
- URL of remote filebbox
- lat/lon bounding box of map lines to include
IOException
- if there was a problem reading the URL.
VisADException
- if an unexpected problem occurs.public BaseMapAdapter(InputStream is) throws IOException, VisADException
is
- input stream of mapfile
IOException
- if there was a problem reading the inputstream
VisADException
- if an unexpected problem occurs.public BaseMapAdapter(InputStream is, Rectangle2D bbox) throws IOException, VisADException
is
- input stream of mapfilebbox
- lat/lon bounding box
IOException
- if there was a problem reading the inputstream
VisADException
- if an unexpected problem occurs.Method Detail |
---|
public void setLatLonLimits(Rectangle2D bbox)
This may be used along with any other domain-setting routine, but should be invoked last. Alternatively, pass in the bounding box in the constructor.
bbox
- Rectangle2D representing the bounding boxpublic void setLatLonLimits(float latmin, float latmax, float lonmin, float lonmax)
This may be used along with any other domain-setting routine, but should be invoked last.
latmin
- the minimum Latitude valuelatmax
- the maximum Latitude valuelonmin
- the minimum Longitude value (-180 -- 180)lonmax
- the maximum Longitude valuepublic void setDomainSet(Linear2DSet domainSet) throws VisADException
domainSet
- The VisAD Linear2DSet domain_set used when the
associated image FlatField was created
VisADException
- necessary VisAD object cannot be createdpublic void setCoordinateSystem(CoordinateSystem cs, int numEles, int numLines, RealTupleType domain) throws VisADException
cs
- is thatnumEles
- is number of elements (x)numLines
- is number of lines (y)domain
- is the desired domain (ordered element, line)
VisADException
- a necessary VisAD object could not be createdpublic void doByLatLon()
public UnionSet getData()
public void setEastPositive(boolean value)
value
- set to true for positive eastward, set to
false for positive westward.public boolean isEastPositive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |