Package org.esa.snap.core.datamodel
Class ConstantTimeCoding
java.lang.Object
org.esa.snap.core.datamodel.ConstantTimeCoding
- All Implemented Interfaces:
- TimeCoding
Time coding which returns a constant value.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDetermines whether thisTimeCodingis capable of converting time values into pixel positions.doubleGets the time for a given pixel position as Modified Julian Day 2000 (MJD2000).getPixelPos(double mjd, PixelPos pixelPos) Gets a pixel position associated with a time value given as Modified Julian Day 2000 (MJD2000).
- 
Constructor Details- 
ConstantTimeCodingpublic ConstantTimeCoding(double time) 
 
- 
- 
Method Details- 
getMJDDescription copied from interface:TimeCodingGets the time for a given pixel position as Modified Julian Day 2000 (MJD2000).- Specified by:
- getMJDin interface- TimeCoding
- Parameters:
- pixelPos- The pixel position in units of a given raster data node
- Returns:
- The time as Modified Julian Day 2000 (MJD2000).
- See Also:
 
- 
canGetPixelPospublic boolean canGetPixelPos()Description copied from interface:TimeCodingDetermines whether thisTimeCodingis capable of converting time values into pixel positions.- Specified by:
- canGetPixelPosin interface- TimeCoding
- Returns:
- true, if so.
- See Also:
 
- 
getPixelPosDescription copied from interface:TimeCodingGets a pixel position associated with a time value given as Modified Julian Day 2000 (MJD2000).- Specified by:
- getPixelPosin interface- TimeCoding
- Parameters:
- mjd- The time as Modified Julian Day 2000 (MJD2000).
- pixelPos- The pixel position to be modified and returned. If- nulla new instance will be created and returned.
- Returns:
- The pixel position, or nullif thisTimeCodingcannot compute pixel positions from time values.
- See Also:
 
 
-