public class MSGnavigation extends ProjectionImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEIGHT_FROM_EARTH_CENTER
**********************************************************************
Introduction:
=============
The Program "MSG_navigation.c" is an example code provided to give
the users guidance for a possible implementation of the equations
given in the LRIT/HRIT Global Specification [1] to navigate MSG
(METEOSAT 8 onwards) data, i.e.
|
static java.lang.String |
SCALE_X |
static java.lang.String |
SCALE_Y |
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 |
---|
MSGnavigation() |
MSGnavigation(double lat0,
double lon0,
double major_axis,
double minor_axis,
double sat_height,
double scale_x,
double scale_y)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Does the line between these two points cross the projection "seam".
|
boolean |
equals(java.lang.Object o)
Returns true if this represents the same Projection as proj.
|
double |
getLon0() |
int |
hashCode() |
ProjectionPoint |
latLonToProj(LatLonPoint latlon,
ProjectionPointImpl destPoint)
Convert a LatLonPoint to projection coordinates
|
ProjectionRect |
latLonToProjBB(LatLonRect rect)
Create a ProjectionRect from the given LatLonRect.
|
static void |
main(java.lang.String[] arg) |
java.lang.String |
paramsToString()
Get a string representation of the projection parameters
|
LatLonPoint |
projToLatLon(ProjectionPoint ppt,
LatLonPointImpl destPoint)
Convert projection coordinates to a LatLonPoint
Note: a new object is not created on each call for the return value.
|
java.lang.String |
toString()
Get a String representation of this projection.
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName
public static final java.lang.String HEIGHT_FROM_EARTH_CENTER
public static final java.lang.String SCALE_X
public static final java.lang.String SCALE_Y
public MSGnavigation()
public MSGnavigation(double lat0, double lon0, double major_axis, double minor_axis, double sat_height, double scale_x, double scale_y)
lat0
- in degrees; geosynch satelite is over this pointlon0
- in degrees; geosynch satelite is over this pointmajor_axis
- in metersminor_axis
- in meterssat_height
- in metersscale_x
- convert between aperature size in radians and distance in km (xrad = xkm / scale_x)scale_y
- scale_factor = (nr - 1) * major_axis, nr = altitude of the camera from the Earths centre, measured in units of the Earth (equatorial) radiuspublic java.lang.String toString()
ProjectionImpl
toString
in class ProjectionImpl
public ProjectionImpl constructCopy()
ProjectionImpl
constructCopy
in class ProjectionImpl
public java.lang.String paramsToString()
ProjectionImpl
paramsToString
in interface Projection
paramsToString
in class ProjectionImpl
public ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl destPoint)
ProjectionImpl
latLonToProj
in interface Projection
latLonToProj
in class ProjectionImpl
latlon
- convert from these lat, lon coordinatesdestPoint
- the object to write topublic LatLonPoint projToLatLon(ProjectionPoint ppt, LatLonPointImpl destPoint)
ProjectionImpl
projToLatLon
in interface Projection
projToLatLon
in class ProjectionImpl
ppt
- convert from these projection coordinatesdestPoint
- the object to write topublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
ProjectionImpl
crossSeam
in interface Projection
crossSeam
in class ProjectionImpl
pt1
- the line goes between these two pointspt2
- the line goes between these two pointspublic boolean equals(java.lang.Object o)
ProjectionImpl
equals
in interface Projection
equals
in class ProjectionImpl
o
- projection in questionpublic int hashCode()
hashCode
in class java.lang.Object
public ProjectionRect latLonToProjBB(LatLonRect rect)
latLonToProjBB
in class ProjectionImpl
rect
- the LatLonRectpublic double getLon0()
public static void main(java.lang.String[] arg)