|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.CoordinateSystem visad.georef.NavigatedCoordinateSystem visad.georef.MapProjection visad.data.hrit.HRITCoordinateSystem
public class HRITCoordinateSystem
HRITCoordinateSystem is a VisAD CoordinateSystem class used by HRITAdapter for conversions to/from (Latitude, Longitude) and Cartesian (element,line), and with Latitude and Longitude in degrees. It is currently modeled mostly after AREACoordinateSystem, so there are strong similarities between the two. In fact, for now this class does navigation exclusively through the McIDAS GEOS nav class.
Field Summary | |
---|---|
protected AREAnav |
anav
|
Constructor Summary | |
---|---|
protected |
HRITCoordinateSystem()
create an HRIT coordinate system with nothing initialized. |
|
HRITCoordinateSystem(int[] iparms,
int[] dir,
boolean useSpline)
create an HRIT coordinate system from the provided array of navigation parameters, and partially filled AREA directory. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether or not the Object in question is
the same as this HRITCoordinateSystem . |
double[][] |
fromReference(double[][] tuples)
convert from latitude,longitude to image element,line |
float[][] |
fromReference(float[][] tuples)
convert from latitude,longitude to image element,line |
protected AREAnav |
getAreaNav()
This is used by the methods that do the work and can be overridden by a derived class to do a lazy instantiation of the coordinate system. |
int[] |
getAuxBlock()
Get the navigation block used to initialize this HRITCoordinateSystem |
Rectangle2D |
getDefaultMapArea()
Get the bounds for this image |
int[] |
getDirBlock()
Get the directory block used to initialize this HRITCoordinateSystem |
int[] |
getNavBlock()
Get the navigation block used to initialize this HRITCoordinateSystem |
double[] |
getSubpoint()
get the subpoint if available |
boolean |
getUseSpline()
Get whether we are using a spline or not |
protected void |
init(int[] iparms,
int[] dir,
boolean useSpline)
Create and initialize the areanav. |
double[][] |
toReference(double[][] tuples)
convert from image element,line to latitude,longitude |
float[][] |
toReference(float[][] tuples)
convert from image element,line to latitude,longitude |
String |
toString()
Return a String which tells some info about this navigation |
Methods inherited from class visad.georef.MapProjection |
---|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder |
Methods inherited from class visad.georef.NavigatedCoordinateSystem |
---|
getLatitudeIndex, getLongitudeIndex |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AREAnav anav
Constructor Detail |
---|
protected HRITCoordinateSystem() throws VisADException
VisADException
public HRITCoordinateSystem(int[] iparms, int[] dir, boolean useSpline) throws VisADException
iparms
- init params?dir
- is the AREA file directory blockuseSpline
- use a spline approximation for speed
VisADException
Method Detail |
---|
protected AREAnav getAreaNav()
protected void init(int[] iparms, int[] dir, boolean useSpline) throws VisADException
iparms
- init params?dir
- is the AREA file directory blockuseSpline
- use a spline approximation for speed
VisADException
public int[] getDirBlock()
public int[] getNavBlock()
public int[] getAuxBlock()
public double[] getSubpoint()
public boolean getUseSpline()
public double[][] toReference(double[][] tuples) throws VisADException
toReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convert
VisADException
- if problem with conversion.public double[][] fromReference(double[][] tuples) throws VisADException
fromReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convert
VisADException
- if problem with conversion.public float[][] toReference(float[][] tuples) throws VisADException
toReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convert
VisADException
- if problem with conversion.public float[][] fromReference(float[][] tuples) throws VisADException
fromReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convert
VisADException
- if problem with conversion.public Rectangle2D getDefaultMapArea()
getDefaultMapArea
in class MapProjection
public boolean equals(Object obj)
Object
in question is
the same as this HRITCoordinateSystem
. The specified
Object
is equal to this HRITCoordinateSystem
if it is an instance of HRITCoordinateSystem
and it has
the same navigation module and default map area as this one.
equals
in class CoordinateSystem
obj
- the Object in question
true
if and only if this instance equals cs.public String toString()
toString
in class MapProjection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |