public class ConstantTimeCoding extends Object implements TimeCoding
Constructor and Description |
---|
ConstantTimeCoding(double time) |
Modifier and Type | Method and Description |
---|---|
boolean |
canGetPixelPos()
Determines whether this
TimeCoding is capable of converting time values into pixel positions. |
double |
getMJD(PixelPos pixelPos)
Gets the time for a given pixel position as Modified Julian Day 2000 (MJD2000).
|
PixelPos |
getPixelPos(double mjd,
PixelPos pixelPos)
Gets a pixel position associated with a time value given as Modified Julian Day 2000 (MJD2000).
|
public double getMJD(PixelPos pixelPos)
TimeCoding
getMJD
in interface TimeCoding
pixelPos
- The pixel position in units of a given raster data nodeProductData.UTC.getMJD()
,
TimeCoding.getPixelPos(double, PixelPos)
public boolean canGetPixelPos()
TimeCoding
TimeCoding
is capable of converting time values into pixel positions.canGetPixelPos
in interface TimeCoding
true
, if so.TimeCoding.getPixelPos(double, PixelPos)
public PixelPos getPixelPos(double mjd, PixelPos pixelPos)
TimeCoding
getPixelPos
in interface TimeCoding
mjd
- The time as Modified Julian Day 2000 (MJD2000).pixelPos
- The pixel position to be modified and returned. If null
a new instance will be created and returned.null
if this TimeCoding
cannot compute pixel positions from time values.TimeCoding.canGetPixelPos()
,
TimeCoding.getMJD(PixelPos)
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.