public class RasterUtils extends Object
Constructor and Description |
---|
RasterUtils() |
Modifier and Type | Method and Description |
---|---|
static double |
computeResolutionInKm(double[] lonData,
double[] latData,
int width,
int height) |
static boolean |
containsAntiMeridian(double[] longitudes,
int width)
Checks if the longitude data raster contains the anti-meridian.
|
static PixelPos[] |
getPoleLocations(GeoRaster geoRaster) |
static double[] |
loadData(RasterDataNode dataNode) |
static double[] |
loadDataScaled(RasterDataNode dataNode) |
static double[] |
loadGeoData(RasterDataNode dataNode)
loads geo-location data as an array of doubles ready to use by ComponentGeoCoding.
|
static double[] |
toDouble(float[] floats) |
static float[] |
toFloat(double[] doubles) |
public static boolean containsAntiMeridian(double[] longitudes, int width)
longitudes
- the longitude rasterwidth
- the data width in pixelspublic static float[] toFloat(double[] doubles)
public static double[] toDouble(float[] floats)
public static double[] loadDataScaled(RasterDataNode dataNode) throws IOException
IOException
public static double[] loadData(RasterDataNode dataNode) throws IOException
IOException
public static double[] loadGeoData(RasterDataNode dataNode) throws IOException
dataNode
- the raster data node providing the geolocation dataIOException
- on disk-access errorspublic static double computeResolutionInKm(double[] lonData, double[] latData, int width, int height)
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.