Package org.esa.snap.core.datamodel
Class LineTimeCoding
java.lang.Object
org.esa.snap.core.datamodel.LineTimeCoding
- All Implemented Interfaces:
TimeCoding
A time-coding based on an Array of modified julian days as double values. One MDJ per raster line.
- Since:
- SNAP 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionLineTimeCoding
(double[] mjDs) LineTimeCoding
(int numLines, double mjdStart, double mjdEnd) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the time as MJDdouble
for a raster linePoint2D.Double.getY()
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.esa.snap.core.datamodel.TimeCoding
canGetPixelPos, getPixelPos
-
Constructor Details
-
LineTimeCoding
public LineTimeCoding(int numLines, double mjdStart, double mjdEnd) -
LineTimeCoding
public LineTimeCoding(double[] mjDs)
-
-
Method Details
-
getMJD
Gets the time as MJDdouble
for a raster linePoint2D.Double.getY()
. If the y value of the pixel pos is outside the raster y dimension NaN will be returned.- Specified by:
getMJD
in interfaceTimeCoding
- Parameters:
pixelPos
- The pixel position in units of a given raster data node- Returns:
- the time as MJD
double
- See Also:
-