Package org.esa.snap.core.datamodel
Class TiePointGridPointing
- java.lang.Object
-
- org.esa.snap.core.datamodel.TiePointGridPointing
-
-
Constructor Summary
Constructors Constructor Description TiePointGridPointing(GeoCoding geoCoding, TiePointGrid szGrid, TiePointGrid saGrid, TiePointGrid vzGrid, TiePointGrid vaGrid, TiePointGrid elGrid)Constructs a new pointing based on tie-point grids.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGetElevation()Returns whether or not the elevation is available.booleancanGetSunDir()Returns whether or not the sun direction is available.booleancanGetViewDir()Returns whether or not the viewing direction is available.booleanequals(Object obj)doublegetElevation(PixelPos pixelPos)Gets the elevation above the given pixel position.GeoCodinggetGeoCoding()Gets the geo-coding.AngularDirectiongetSunDir(PixelPos pixelPos, AngularDirection sd)Gets the vector to the sun at the given pixel position as angular direction.AngularDirectiongetViewDir(PixelPos pixelPos, AngularDirection vd)Gets the vector to the observer at the given pixel position as angular direction.inthashCode()
-
-
-
Constructor Detail
-
TiePointGridPointing
public TiePointGridPointing(GeoCoding geoCoding, TiePointGrid szGrid, TiePointGrid saGrid, TiePointGrid vzGrid, TiePointGrid vaGrid, TiePointGrid elGrid)
Constructs a new pointing based on tie-point grids.- Parameters:
geoCoding- the geo-coding, must not be nullszGrid- the sun zenith tie-point grid, can be nullsaGrid- the sun azimuth tie-point grid, can be nullvzGrid- the viewing zenith tie-point grid, can be nullvaGrid- the viewing azimuth tie-point grid, can be nullelGrid- the elevation tie-point grid, can be null
-
-
Method Detail
-
getGeoCoding
public final GeoCoding getGeoCoding()
Description copied from interface:PointingGets the geo-coding.- Specified by:
getGeoCodingin interfacePointing- Returns:
- the geo-coding, never null.
-
getSunDir
public final AngularDirection getSunDir(PixelPos pixelPos, AngularDirection sd)
Description copied from interface:PointingGets the vector to the sun at the given pixel position as angular direction.- Specified by:
getSunDirin interfacePointing- Parameters:
pixelPos- the pixel positionsd- the return value to be re-used. If null, a newAngularDirectionwill be returned- Returns:
- the direction to the sun or null, if this information is not available
- See Also:
Pointing.canGetSunDir()
-
getViewDir
public final AngularDirection getViewDir(PixelPos pixelPos, AngularDirection vd)
Description copied from interface:PointingGets the vector to the observer at the given pixel position as angular direction.- Specified by:
getViewDirin interfacePointing- Parameters:
pixelPos- the pixel positionvd- the return value to be re-used. If null, a newAngularDirectionwill be returned- Returns:
- the direction to the observer or null, if this information is not available
- See Also:
Pointing.canGetViewDir()
-
getElevation
public double getElevation(PixelPos pixelPos)
Description copied from interface:PointingGets the elevation above the given pixel position.This method is called by the
Orthorectifierin the case that noElevationModelis available.Note that a particular implementation is not able to retrieve a meaningful elevation, it should return zero.
- Specified by:
getElevationin interfacePointing- Parameters:
pixelPos- the pixel position- Returns:
- the elevation at the given pixel position
- See Also:
Pointing.canGetElevation()
-
canGetElevation
public final boolean canGetElevation()
Description copied from interface:PointingReturns whether or not the elevation is available.- Specified by:
canGetElevationin interfacePointing- Returns:
- true, if and only if so
-
canGetSunDir
public final boolean canGetSunDir()
Description copied from interface:PointingReturns whether or not the sun direction is available.- Specified by:
canGetSunDirin interfacePointing- Returns:
- true, if and only if so
-
canGetViewDir
public final boolean canGetViewDir()
Description copied from interface:PointingReturns whether or not the viewing direction is available.- Specified by:
canGetViewDirin interfacePointing- Returns:
- true, if and only if so
-
-