public class McIDASAreaProjection extends ProjectionImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_AREADIR
Attribute for the Area Directory
|
static String |
ATTR_AUXBLOCK
Attribute for the Navigation Block
|
static String |
ATTR_NAVBLOCK
Attribute for the Navigation Block
|
static String |
GRID_MAPPING_NAME
Attribute for the Navigation Block
|
atts, defaultMapArea, 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(edu.wisc.ssec.mcidas.AreaFile af)
create a McIDAS AREA projection from the Area file's
directory and navigation blocks.
|
McIDASAreaProjection(int[] dir,
int[] nav)
Create a AREA coordinate system 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(Object obj)
Determines whether or not the
Object in question is
the same as this McIDASAreaProjection. |
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
|
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
|
static void |
main(String[] args)
Test routine
|
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.
|
String |
toString()
Return a String which tells some info about this navigation
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapAreaLL, getHeader, getLatLonBoundingBox, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setNamepublic static String ATTR_AREADIR
public static String ATTR_NAVBLOCK
public static String ATTR_AUXBLOCK
public static String GRID_MAPPING_NAME
public McIDASAreaProjection()
public McIDASAreaProjection(edu.wisc.ssec.mcidas.AreaFile af)
af - is the associated AreaFilepublic McIDASAreaProjection(int[] dir,
int[] nav)
dir - is the AREA file directory blocknav - is the AREA file navigation blockpublic 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(Object obj)
Object in question is
the same as this McIDASAreaProjection. The specified
Object is equal to this McIDASAreaProjection
if it is an instance of McIDASAreaProjection and it has
the same navigation module and default map area as this one.equals in interface Projectionequals in class ProjectionImplobj - the Object in questionpublic String toString()
toString in class ProjectionImplpublic String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImplCopyright © 1999–2013 UCAR/Unidata. All rights reserved.