org.esa.beam.framework.dataop.resamp
Interface Resampling.Raster

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
 int getHeight()
          Gets the raster's height.
 float getSample(int x, int y)
          Gets the sample value at the given raster position or Float.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

getSample

float getSample(int x,
                int y)
                throws Exception
Gets the sample value at the given raster position or Float.NaN.

Parameters:
x - the pixel's X-coordinate
y - the pixel's Y-coordinate
Returns:
the sample value or Float.NaN if data is missing at the given raster position
Throws:
Exception - if a non-runtime error occurs, e.g I/O error


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.