Package org.esa.snap.core.dataop.resamp
Interface Resampling.Raster
-
- All Known Implementing Classes:
BaseElevationModel
- Enclosing interface:
- Resampling
public static interface Resampling.Raster
A raster is a rectangular grid which provides sample values at a given raster position x,y.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getHeight()
Gets the raster's height.boolean
getSamples(int[] x, int[] y, double[][] samples)
Gets the sample value at the given raster position orFloat.NaN
.int
getWidth()
Gets the raster's width.
-
-
-
Method Detail
-
getWidth
int getWidth()
Gets the raster's width.- Returns:
- the raster's width
-
getHeight
int getHeight()
Gets the raster's height.- Returns:
- the raster's height
-
getSamples
boolean getSamples(int[] x, int[] y, double[][] samples) throws Exception
Gets the sample value at the given raster position orFloat.NaN
.- Parameters:
x
- the pixel's X-coordinatey
- the pixel's Y-coordinate the sample value orDouble.NaN
if data is missing at the given raster position- Returns:
- false if one value is Double#NaN
- Throws:
Exception
- if a non-runtime error occurs, e.g I/O error
-
-