Class GeoCodingFactory

java.lang.Object
org.esa.snap.core.dataio.geocoding.GeoCodingFactory

public class GeoCodingFactory extends Object
  • 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 data
      lonBand - the Band containing the longitude data
      rasterResolutionInKm - 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 data
      lonBand - the Band containing the longitude data
      Returns:
      a ready to use GeoCoding
      Throws:
      IOException - on disk IO errors
    • createSubset

      public static Band createSubset(Band sourceBand, Scene targetScene, ProductSubsetDef subsetDef)
    • interpolateLon

      public static double interpolateLon(double wx, double wy, double d00, double d10, double d01, double d11)