Class GeoCodingFactory
java.lang.Object
org.esa.snap.core.dataio.geocoding.GeoCodingFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentGeoCodingcreatePixelGeoCoding(Band latBand, Band lonBand) Creates a ComponentGeoCoding using a PixelForward and a PixelQuadTreeInverse coding using the Bands passed in.static ComponentGeoCodingcreatePixelGeoCoding(Band latBand, Band lonBand, double rasterResolutionInKm) Creates a ComponentGeoCoding using a PixelForward and a PixelQuadTreeInverse coding using the Bands passed in and the given ground resolution.static BandcreateSubset(Band sourceBand, Scene targetScene, ProductSubsetDef subsetDef) static doubleinterpolateLon(double wx, double wy, double d00, double d10, double d01, double d11)
-
Constructor Details
-
GeoCodingFactory
public GeoCodingFactory()
-
-
Method Details
-
createPixelGeoCoding
public static ComponentGeoCoding createPixelGeoCoding(Band latBand, Band lonBand, double rasterResolutionInKm) throws IOException Creates a ComponentGeoCoding using a PixelForward and a PixelQuadTreeInverse coding using the Bands passed in and the given ground resolution. The ComponeneGeoDoding is returned is initialized and ready to use.- Parameters:
latBand- the Band containing the latitude datalonBand- the Band containing the longitude datarasterResolutionInKm- the ground resolution in km- Returns:
- a ready to use GeoCoding
- Throws:
IOException- on disk IO errors
-
createPixelGeoCoding
public static ComponentGeoCoding createPixelGeoCoding(Band latBand, Band lonBand) throws IOException Creates a ComponentGeoCoding using a PixelForward and a PixelQuadTreeInverse coding using the Bands passed in. The ground resolution is estimatesd from the geolocation data. The ComponeneGeoDoding is returned is initialized and ready to use.- Parameters:
latBand- the Band containing the latitude datalonBand- the Band containing the longitude data- Returns:
- a ready to use GeoCoding
- Throws:
IOException- on disk IO errors
-
createSubset
-
interpolateLon
public static double interpolateLon(double wx, double wy, double d00, double d10, double d01, double d11)
-