Interface IScalarDataset
- All Known Implementing Classes:
AbstractBuiltinDataset,Climate,Climate.Precipitation,Climate.Temperature,ConfigurableDoubleTiledDataset,DoubleTiledDataset,MultiScalarDataset,Soil
public interface IScalarDataset
A dataset consisting of floating-point scalar values.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<Double> getAsync(@lombok.NonNull double[] point) getAsync(double lon, double lat) Asynchronously gets a single value at the given point.CompletableFuture<double[]> getAsync(@NonNull CornerBoundingBox2d bounds, int sizeX, int sizeZ) Asynchronously gets a bunch of values at the given coordinates.
-
Method Details
-
getAsync
default CompletableFuture<Double> getAsync(@NonNull @lombok.NonNull double[] point) throws OutOfProjectionBoundsException - Parameters:
point- the point- Throws:
OutOfProjectionBoundsException- See Also:
-
getAsync
Asynchronously gets a single value at the given point.- Parameters:
lon- the longitudelat- the latitude- Returns:
- a
CompletableFuturewhich will be completed with the value - Throws:
OutOfProjectionBoundsException
-
getAsync
CompletableFuture<double[]> getAsync(@NonNull @NonNull CornerBoundingBox2d bounds, int sizeX, int sizeZ) throws OutOfProjectionBoundsException Asynchronously gets a bunch of values at the given coordinates.- Parameters:
sizeX- the number of samples to take along the X axissizeZ- the number of samples to take along the Z axis- Returns:
- a
CompletableFuturewhich will be completed with the values - Throws:
OutOfProjectionBoundsException
-