public class McIDASAreaProjection
extends ucar.unidata.geoloc.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
|
| 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 |
|---|---|
ucar.unidata.geoloc.ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1,
ucar.unidata.geoloc.ProjectionPoint pt2)
This returns true when the line between pt1 and pt2 crosses the seam.
|
boolean |
equals(java.lang.Object o) |
int[] |
getAuxBlock()
Get the auxilliary block used to initialize this McIDASAreaProjection
|
ucar.unidata.geoloc.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.
|
ucar.unidata.geoloc.ProjectionPoint |
latLonToProj(ucar.unidata.geoloc.LatLonPoint latLon,
ucar.unidata.geoloc.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.
|
ucar.unidata.geoloc.LatLonPoint |
projToLatLon(ucar.unidata.geoloc.ProjectionPoint world,
ucar.unidata.geoloc.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, setNamepublic 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 ucar.unidata.geoloc.ProjectionImpl constructCopy()
constructCopy in class ucar.unidata.geoloc.ProjectionImplpublic int[] getDirBlock()
public int[] getNavBlock()
public int[] getAuxBlock()
public ucar.unidata.geoloc.ProjectionPoint latLonToProj(ucar.unidata.geoloc.LatLonPoint latLon,
ucar.unidata.geoloc.ProjectionPointImpl result)
latLonToProj in interface ucar.unidata.geoloc.ProjectionlatLonToProj in class ucar.unidata.geoloc.ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write topublic ucar.unidata.geoloc.LatLonPoint projToLatLon(ucar.unidata.geoloc.ProjectionPoint world,
ucar.unidata.geoloc.LatLonPointImpl result)
projToLatLon in interface ucar.unidata.geoloc.ProjectionprojToLatLon in class ucar.unidata.geoloc.ProjectionImplworld - convert from these projection coordinatesresult - the object to write topublic float[][] latLonToProj(float[][] from,
float[][] to,
int latIndex,
int lonIndex)
latLonToProj in class ucar.unidata.geoloc.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 ucar.unidata.geoloc.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 ucar.unidata.geoloc.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 ucar.unidata.geoloc.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 ucar.unidata.geoloc.ProjectionRect getDefaultMapArea()
getDefaultMapArea in interface ucar.unidata.geoloc.ProjectiongetDefaultMapArea in class ucar.unidata.geoloc.ProjectionImplpublic boolean crossSeam(ucar.unidata.geoloc.ProjectionPoint pt1,
ucar.unidata.geoloc.ProjectionPoint pt2)
crossSeam in interface ucar.unidata.geoloc.ProjectioncrossSeam in class ucar.unidata.geoloc.ProjectionImplpt1 - point 1pt2 - point 2public boolean equals(java.lang.Object o)
equals in interface ucar.unidata.geoloc.Projectionequals in class ucar.unidata.geoloc.ProjectionImplpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class ucar.unidata.geoloc.ProjectionImplpublic java.lang.String paramsToString()
paramsToString in interface ucar.unidata.geoloc.ProjectionparamsToString in class ucar.unidata.geoloc.ProjectionImpl