|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.geoloc.ProjectionImpl
ucar.unidata.geoloc.projection.McIDASAreaProjection
public class McIDASAreaProjection
McIDASAreaProjection is the ProjectionImpl for McIDAS Area navigation modules.
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.geoloc.ProjectionImpl |
|---|
ATTR_NAME, atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE, workL, workP |
| Constructor Summary | |
|---|---|
McIDASAreaProjection()
|
|
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. |
|
| Method Summary | |
|---|---|
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 obj)
Determines whether or not the Object in question is
the same as 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(java.lang.String[] args)
Test routine |
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 |
| Methods inherited from class ucar.unidata.geoloc.ProjectionImpl |
|---|
addParameter, addParameter, addParameter, clone, getClassName, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, setDefaultMapArea, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public McIDASAreaProjection()
public McIDASAreaProjection(edu.wisc.ssec.mcidas.AreaFile af)
af - is the associated AreaFile
public McIDASAreaProjection(int[] dir,
int[] nav)
dir - is the AREA file directory blocknav - is the AREA file navigation block
public 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 block| Method Detail |
|---|
public ProjectionImpl constructCopy()
constructCopy in class ProjectionImplpublic int[] getDirBlock()
public int[] getNavBlock()
public ProjectionPoint latLonToProj(LatLonPoint latLon,
ProjectionPointImpl result)
latLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write to
public LatLonPoint projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
projToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write to
public 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 point
public 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 point
public ProjectionRect getDefaultMapArea()
getDefaultMapArea in interface ProjectiongetDefaultMapArea in class ProjectionImpl
public boolean crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
crossSeam in interface ProjectioncrossSeam in class ProjectionImplpt1 - point 1pt2 - point 2
public boolean equals(java.lang.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 question
public java.lang.String toString()
toString in class ProjectionImplpublic java.lang.String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImpl
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Area file name
java.lang.Exception - problem reading data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||