public class AREACoordinateSystem extends MapProjection
Modifier | Constructor and Description |
---|---|
protected |
AREACoordinateSystem()
create a AREA coordinate system with nothing initialized.
|
|
AREACoordinateSystem(AreaFile af)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(int[] dir,
int[] nav)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(int[] dir,
int[] nav,
int[] aux)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(int[] dir,
int[] nav,
int[] aux,
boolean useSpline)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(RealTupleType ref,
AreaFile af)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(RealTupleType reference,
int[] dir,
int[] nav)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(RealTupleType reference,
int[] dir,
int[] nav,
int[] aux)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
|
AREACoordinateSystem(RealTupleType reference,
int[] dir,
int[] nav,
int[] aux,
boolean useSpline)
create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether or not the
Object in question is
the same as this AREACoordinateSystem . |
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 overwritten
by a derived class to do a lazy instantiation of the coordinate system.
|
int[] |
getAuxBlock()
Get the navigation block used to initialize this AREACoordinateSystem
|
Rectangle2D |
getDefaultMapArea()
Get the bounds for this image
|
int[] |
getDirBlock()
Get the directory block used to initialize this AREACoordinateSystem
|
int[] |
getNavBlock()
Get the navigation block used to initialize this AREACoordinateSystem
|
double[] |
getSubpoint()
get the subpoint if available
|
boolean |
getUseSpline()
Get whether we are using a spline or not
|
protected void |
init(int[] dir,
int[] nav,
int[] aux,
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
|
getCenterLatLon, getLatLon, getXIndex, getYIndex, isLatLonOrder, isXYOrder
getLatitudeIndex, getLongitudeIndex
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
protected AREAnav anav
public AREACoordinateSystem(AreaFile af) throws VisADException, AreaFileException
af
- is the associated AreaFileVisADException
AreaFileException
public AREACoordinateSystem(RealTupleType ref, AreaFile af) throws VisADException, AreaFileException
ref
- the CoordinateSystem reference (must be equivalent
to RealTupleType.LatitudeLongitudeTuple)af
- is the associated AreaFileVisADException
AreaFileException
public AREACoordinateSystem(int[] dir, int[] nav) throws VisADException
dir
- is the AREA file directory blocknav
- is the AREA file navigation blockVisADException
public AREACoordinateSystem(int[] dir, int[] nav, int[] aux) throws VisADException
dir
- is the AREA file directory blocknav
- is the AREA file navigation blockaux
- is the AREA file auxillary blockVisADException
public AREACoordinateSystem(int[] dir, int[] nav, int[] aux, boolean useSpline) throws VisADException
dir
- is the AREA file directory blocknav
- is the AREA file navigation blockaux
- is the AREA file auxillary blockuseSpline
- use a spline approximation for speedVisADException
public AREACoordinateSystem(RealTupleType reference, int[] dir, int[] nav) throws VisADException
reference
- the CoordinateSystem reference (must be equivalent
to RealTupleType.LatitudeLongitudeTuple)dir
- is the AREA file directory blocknav
- is the AREA file navigation blockVisADException
public AREACoordinateSystem(RealTupleType reference, int[] dir, int[] nav, int[] aux) throws VisADException
reference
- the CoordinateSystem reference (must be equivalent
to RealTupleType.LatitudeLongitudeTuple)dir
- is the AREA file directory blocknav
- is the AREA file navigation blockaux
- is the AREA file auxillary blockVisADException
protected AREACoordinateSystem() throws VisADException
VisADException
public AREACoordinateSystem(RealTupleType reference, int[] dir, int[] nav, int[] aux, boolean useSpline) throws VisADException
reference
- the CoordinateSystem reference (must be equivalent
to RealTupleType.LatitudeLongitudeTuple)dir
- is the AREA file directory blocknav
- is the AREA file navigation blockaux
- is the AREA file auxillary blockuseSpline
- use a spline approximation for speedVisADException
protected AREAnav getAreaNav()
protected void init(int[] dir, int[] nav, int[] aux, boolean useSpline) throws VisADException
dir
- is the AREA file directory blocknav
- is the AREA file navigation blockaux
- is the AREA file auxillary blockuseSpline
- use a spline approximation for speedVisADException
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 convertVisADException
- if problem with conversion.public double[][] fromReference(double[][] tuples) throws VisADException
fromReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convertVisADException
- if problem with conversion.public float[][] toReference(float[][] tuples) throws VisADException
toReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convertVisADException
- if problem with conversion.public float[][] fromReference(float[][] tuples) throws VisADException
fromReference
in class CoordinateSystem
tuples
- contains the element,line pairs to convertVisADException
- if problem with conversion.public Rectangle2D getDefaultMapArea()
getDefaultMapArea
in class MapProjection
public boolean equals(Object obj)
Object
in question is
the same as this AREACoordinateSystem
. The specified
Object
is equal to this AREACoordinateSystem
if it is an instance of AREACoordinateSystem
and it has
the same navigation module and default map area as this one.equals
in class CoordinateSystem
obj
- the Object in questiontrue
if and only if this instance equals cs.public String toString()
toString
in class MapProjection
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.