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
Modifier and TypeMethodDescriptionintGets the raster's height.booleangetSamples(int[] x, int[] y, double[][] samples) Gets the sample value at the given raster position orFloat.NaN.intgetWidth()Gets the raster's width.
-
Method Details
-
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
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.NaNif 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
-