Package org.esa.snap.core.datamodel
Class LineTimeCoding
- java.lang.Object
-
- org.esa.snap.core.datamodel.LineTimeCoding
-
- All Implemented Interfaces:
TimeCoding
public class LineTimeCoding extends Object implements 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
Constructors Constructor Description LineTimeCoding(double[] mjDs)LineTimeCoding(int numLines, double mjdStart, double mjdEnd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetMJD(PixelPos pixelPos)Gets the time as MJDdoublefor 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
-
-
-
-
Method Detail
-
getMJD
public double getMJD(PixelPos pixelPos)
Gets the time as MJDdoublefor 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:
getMJDin interfaceTimeCoding- Parameters:
pixelPos- The pixel position in units of a given raster data node- Returns:
- the time as MJD
double - See Also:
ProductData.UTC.getMJD(),TimeCoding.getPixelPos(double, PixelPos)
-
-