Package org.esa.snap.core.datamodel
Class GeoApproximation
java.lang.Object
org.esa.snap.core.datamodel.GeoApproximation
Approximates the x(lat, lon) and y(lat, lon) functions.
This class does not belong to the public API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoApproximation[]
createApproximations
(javax.media.jai.PlanarImage lonImage, javax.media.jai.PlanarImage latImage, javax.media.jai.PlanarImage maskImage, double accuracy) double
getDistance
(double lat, double lon) Returns the distance (in radian) of 'the center of this approximation' to a given (lat, lon) point.getFX()
Returns the (approximation to) the x(lat, lon) function.getFY()
Returns the (approximation to) the y(lat, lon) function.double
Returns the maximum distance (in radian) within which this approximation is valid.getRange()
Returns the range of the x(lat, lon) and y(lat, lon) functions.Returns theRotator
associated with this approximation.
-
Method Details
-
createApproximations
public static GeoApproximation[] createApproximations(javax.media.jai.PlanarImage lonImage, javax.media.jai.PlanarImage latImage, javax.media.jai.PlanarImage maskImage, double accuracy) -
getFX
Returns the (approximation to) the x(lat, lon) function.- Returns:
- the (approximation to) the x(lat, lon) function.
-
getFY
Returns the (approximation to) the y(lat, lon) function.- Returns:
- the (approximation to) the y(lat, lon) function.
-
getMaxDistance
public double getMaxDistance()Returns the maximum distance (in radian) within which this approximation is valid.- Returns:
- the maximum distance (in radian).
-
getDistance
public double getDistance(double lat, double lon) Returns the distance (in radian) of 'the center of this approximation' to a given (lat, lon) point.- Parameters:
lat
- The latitude.lon
- The longitude.- Returns:
- the distance (in radian).
-
getRotator
Returns theRotator
associated with this approximation.- Returns:
- the
Rotator
associated with this approximation.
-
getRange
Returns the range of the x(lat, lon) and y(lat, lon) functions.- Returns:
- the range of the x(lat, lon) and y(lat, lon) functions.
-