Package org.esa.snap.core.util.grid.isin
Class IsinAPI
- java.lang.Object
-
- org.esa.snap.core.util.grid.isin.IsinAPI
-
public class IsinAPI extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsinAPI.Raster
-
Constructor Summary
Constructors Constructor Description IsinAPI(IsinAPI.Raster raster)
Constructs the API and initializes internal parameter according to the raster dimensions passed in.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsinPoint
getTileDimensions()
Retrieves the dimensions of a tile at the selected resolution.IsinPoint
globalMapToGeo(double x, double y)
Map the location (x/y) on the global integerized sinusoidal raster to the geo-location.IsinPoint
tileImageCoordinatesToGeo(double x, double y, int tileH, int tileV)
Map the location (x/y,tileH,tileV) on the tiled global integerized sinusoidal raster to the geo-location.IsinPoint
toGlobalMap(double lon, double lat)
Map the geo-location (lon/lat) to the global integerized sinusoidal raster.IsinPoint
toTileImageCoordinates(double lon, double lat)
Map the location (lon/lat) to the tiled global integerized sinusoidal raster.
-
-
-
Constructor Detail
-
IsinAPI
public IsinAPI(IsinAPI.Raster raster)
Constructs the API and initializes internal parameter according to the raster dimensions passed in.- Parameters:
raster
- the raster dimension
-
-
Method Detail
-
toGlobalMap
public IsinPoint toGlobalMap(double lon, double lat)
Map the geo-location (lon/lat) to the global integerized sinusoidal raster. The point returned contains the global map x and y coordinates.- Parameters:
lon
- longitudelat
- latitude- Returns:
- the mapped location
-
globalMapToGeo
public IsinPoint globalMapToGeo(double x, double y)
Map the location (x/y) on the global integerized sinusoidal raster to the geo-location. The point returned contains the longitude and latitude coordinates in decimal degrees as x and y values.- Parameters:
x
- global map x coordinatey
- global map y coordinate- Returns:
- the geo-location
-
tileImageCoordinatesToGeo
public IsinPoint tileImageCoordinatesToGeo(double x, double y, int tileH, int tileV)
Map the location (x/y,tileH,tileV) on the tiled global integerized sinusoidal raster to the geo-location. The point returned contains the longitude and latitude coordinates in decimal degrees as x and y values. This method expects zero based tile indices as input parameters.- Parameters:
x
- tile x coordinatey
- tile y coordinatetileH
- horizontal tile indextileV
- vertical tile index- Returns:
- the mapped location
-
toTileImageCoordinates
public IsinPoint toTileImageCoordinates(double lon, double lat)
Map the location (lon/lat) to the tiled global integerized sinusoidal raster. The point returned contains the map x and y coordinates within the tile and the horizontal and vertical (zero based) tile indices.- Parameters:
lon
- longitudelat
- latitude- Returns:
- the mapped location
-
getTileDimensions
public IsinPoint getTileDimensions()
Retrieves the dimensions of a tile at the selected resolution. The point returned contains the tile x and y dimensions.- Returns:
- the tile dimensions
-
-