Class GeoRaster
java.lang.Object
org.esa.snap.core.dataio.geocoding.GeoRaster
-
Constructor Summary
ConstructorsConstructorDescriptionGeoRaster(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
Modifier and TypeMethodDescriptionvoiddispose()double[]double[]doubledoubleintdoubleintintintdoubledouble
-
Constructor Details
-
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 Details
-
getLongitudes
public double[] getLongitudes() -
getLatitudes
public double[] getLatitudes() -
getLonVariableName
-
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()
-