Class GeoRaster
- java.lang.Object
-
- org.esa.snap.core.dataio.geocoding.GeoRaster
-
public class GeoRaster extends Object
-
-
Constructor Summary
Constructors Constructor Description GeoRaster(double[] longitudes, double[] latitudes, String lonVariableName, String latVariableName, int rasterWidth, int rasterHeight, double rasterResolutionInKm)
Constructs a geoRaster; convenience constructor for pixel geolocation raster with the center pixel as reference location.GeoRaster(double[] longitudes, double[] latitudes, String lonVariableName, String latVariableName, int rasterWidth, int rasterHeight, int sceneWidth, int sceneHeight, double rasterResolutionInKm, double offsetX, double offsetY, double subsamplingX, double subsamplingY)
Constructs a geoRaster
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
double[]
getLatitudes()
String
getLatVariableName()
double[]
getLongitudes()
String
getLonVariableName()
double
getOffsetX()
double
getOffsetY()
int
getRasterHeight()
double
getRasterResolutionInKm()
int
getRasterWidth()
int
getSceneHeight()
int
getSceneWidth()
double
getSubsamplingX()
double
getSubsamplingY()
-
-
-
Constructor Detail
-
GeoRaster
public GeoRaster(double[] longitudes, double[] latitudes, String lonVariableName, String latVariableName, int rasterWidth, int rasterHeight, double rasterResolutionInKm)
Constructs a geoRaster; convenience constructor for pixel geolocation raster with the center pixel as reference location. Sets subsampling to 1.0 and offset to 0.5 for x- and y-axis. It also sets sceneWidth and height to rasterWidth and height.- Parameters:
longitudes
- the longitude datalatitudes
- the latitude datalonVariableName
- variable name of data origin for longitude datalatVariableName
- variable name of data origin for latitude datarasterWidth
- width of the data rasterrasterHeight
- height of the data rasterrasterResolutionInKm
- ground resolution of pixels
-
GeoRaster
public GeoRaster(double[] longitudes, double[] latitudes, String lonVariableName, String latVariableName, int rasterWidth, int rasterHeight, int sceneWidth, int sceneHeight, double rasterResolutionInKm, double offsetX, double offsetY, double subsamplingX, double subsamplingY)
Constructs a geoRaster- Parameters:
longitudes
- the longitude datalatitudes
- the latitude datalonVariableName
- variable name of data origin for longitude datalatVariableName
- variable name of data origin for latitude datarasterWidth
- width of the data rasterrasterHeight
- height of the data rastersceneWidth
- width of the scene rastersceneHeight
- height of the scene rasterrasterResolutionInKm
- ground resolution of pixelsoffsetX
- offset along x-axisoffsetY
- offset along y-axissubsamplingX
- subsampling along x-axissubsamplingY
- subsampling along y-axis
-
-
Method Detail
-
getLongitudes
public double[] getLongitudes()
-
getLatitudes
public double[] getLatitudes()
-
getLonVariableName
public String getLonVariableName()
-
getLatVariableName
public String getLatVariableName()
-
getRasterWidth
public int getRasterWidth()
-
getRasterHeight
public int getRasterHeight()
-
getSceneWidth
public int getSceneWidth()
-
getSceneHeight
public int getSceneHeight()
-
getRasterResolutionInKm
public double getRasterResolutionInKm()
-
getOffsetX
public double getOffsetX()
-
getOffsetY
public double getOffsetY()
-
getSubsamplingX
public double getSubsamplingX()
-
getSubsamplingY
public double getSubsamplingY()
-
dispose
public void dispose()
-
-