public class McIDASAreaProjection extends ProjectionImpl
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_AREADIR
Attribute for the Area Directory
|
static java.lang.String |
ATTR_AUXBLOCK
Attribute for the Navigation Block
|
static java.lang.String |
ATTR_NAVBLOCK
Attribute for the Navigation Block
|
static java.lang.String |
GRID_MAPPING_NAME
Attribute for the Navigation Block
|
atts, defaultMapArea, defaultUnits, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE| Constructor and Description |
|---|
McIDASAreaProjection()
Default bean constructor
|
McIDASAreaProjection(ucar.mcidas.AreaFile af)
create a McIDAS AREA projection from the Area file's
directory and navigation blocks.
|
McIDASAreaProjection(int[] dir,
int[] nav,
int[] aux)
Create a AREA coordinate system from the Area file's
directory and navigation blocks.
|
| Modifier and Type | Method and Description |
|---|---|
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
This returns true when the line between pt1 and pt2 crosses the seam.
|
boolean |
equals(java.lang.Object o)
Returns true if this represents the same Projection as proj.
|
int[] |
getAuxBlock()
Get the auxilliary block used to initialize this McIDASAreaProjection
|
ProjectionRect |
getDefaultMapArea()
Get the bounds for this image
|
int[] |
getDirBlock()
Get the directory block used to initialize this McIDASAreaProjection
|
int[] |
getNavBlock()
Get the navigation block used to initialize this McIDASAreaProjection
|
int |
hashCode() |
double[][] |
latLonToProj(double[][] from,
double[][] to,
int latIndex,
int lonIndex)
Convert lat/lon coordinates to projection coordinates.
|
float[][] |
latLonToProj(float[][] from,
float[][] to,
int latIndex,
int lonIndex)
Convert lat/lon coordinates to projection coordinates.
|
ProjectionPoint |
latLonToProj(LatLonPoint latLon,
ProjectionPointImpl result)
Convert a LatLonPoint to projection coordinates
|
java.lang.String |
paramsToString()
Get the parameters as a String
|
double[][] |
projToLatLon(double[][] from,
double[][] to)
Convert lat/lon coordinates to projection coordinates.
|
float[][] |
projToLatLon(float[][] from,
float[][] to)
Convert lat/lon coordinates to projection coordinates.
|
LatLonPoint |
projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
Convert projection coordinates to a LatLonPoint
Note: a new object is not created on each call for the return value.
|
java.lang.String |
toString()
Return a String which tells some info about this navigation
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapAreaLL, getDefaultUnits, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitlatLonToProj, projToLatLonpublic static java.lang.String ATTR_AREADIR
public static java.lang.String ATTR_NAVBLOCK
public static java.lang.String ATTR_AUXBLOCK
public static java.lang.String GRID_MAPPING_NAME
public McIDASAreaProjection()
public McIDASAreaProjection(ucar.mcidas.AreaFile af)
af - is the associated AreaFilepublic McIDASAreaProjection(int[] dir,
int[] nav,
int[] aux)
dir - is the AREA file directory blocknav - is the AREA file navigation blockaux - is the AREA file auxillary blockpublic ProjectionImpl constructCopy()
constructCopy in class ProjectionImplpublic int[] getDirBlock()
public int[] getNavBlock()
public int[] getAuxBlock()
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result)
latLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
projToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write topublic float[][] latLonToProj(float[][] from,
float[][] to,
int latIndex,
int lonIndex)
latLonToProj in class ProjectionImplfrom - array of lat/lon coordinates: from[2][n],
where from[0][i], from[1][i] is the (lat,lon)
coordinate of the ith pointto - resulting array of projection coordinates,
where to[0][i], to[1][i] is the (x,y) coordinate
of the ith pointlatIndex - index of latitude in "from"lonIndex - index of longitude in "from"public float[][] projToLatLon(float[][] from,
float[][] to)
projToLatLon in class ProjectionImplfrom - array of lat/lon coordinates: from[2][n], where
(from[0][i], from[1][i]) is the (lat,lon) coordinate
of the ith pointto - resulting array of projection coordinates: to[2][n]
where (to[0][i], to[1][i]) is the (x,y) coordinate
of the ith pointpublic double[][] latLonToProj(double[][] from,
double[][] to,
int latIndex,
int lonIndex)
latLonToProj in class ProjectionImplfrom - array of lat/lon coordinates: from[2][n],
where from[0][i], from[1][i] is the (lat,lon)
coordinate of the ith pointto - resulting array of projection coordinates,
where to[0][i], to[1][i] is the (x,y) coordinate
of the ith pointlatIndex - index of latitude in "from"lonIndex - index of longitude in "from"public double[][] projToLatLon(double[][] from,
double[][] to)
projToLatLon in class ProjectionImplfrom - array of lat/lon coordinates: from[2][n], where
(from[0][i], from[1][i]) is the (lat,lon) coordinate
of the ith pointto - resulting array of projection coordinates: to[2][n]
where (to[0][i], to[1][i]) is the (x,y) coordinate
of the ith pointpublic ProjectionRect getDefaultMapArea()
getDefaultMapArea in interface ProjectiongetDefaultMapArea in class ProjectionImplpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam in interface ProjectioncrossSeam in class ProjectionImplpt1 - point 1pt2 - point 2public boolean equals(java.lang.Object o)
ProjectionImplequals in interface Projectionequals in class ProjectionImplo - projection in questionpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class ProjectionImplpublic java.lang.String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImpl