Double Gridded Geo Layer
class DoubleGriddedGeoLayer @JvmOverloads constructor(environment: Environment<*, GeoPosition>, data: GridSnapshots, timeScale: String = DEFAULT_TIME_SCALE.toIsoString(), timeOrigin: String? = null, spatialInterpolation: SpatialInterpolation = BilinearInterpolation, temporalInterpolation: TemporalInterpolation = LinearInterpolation, missingValue: Double = Double.NaN) : GriddedGeoLayer<Double>
A GriddedGeoLayer of Doubles.
Parameters
environment
the environment, whose simulation provides the time.
data
the data, such as GridsFromDirectory or CopernicusData.
time Scale
the real-world duration of a simulation time unit, as an ISO-8601 duration.
time Origin
the real-world instant of simulation time 0, as an ISO-8601 instant; the first instant of data when null.
spatial Interpolation
how to compute values between the nodes of a grid.
temporal Interpolation
how to compute values between two instants of the data.
missing Value
the value where the data is missing.
Constructors
Link copied to clipboard
constructor(environment: Environment<*, GeoPosition>, data: GridSnapshots, timeScale: String = DEFAULT_TIME_SCALE.toIsoString(), timeOrigin: String? = null, spatialInterpolation: SpatialInterpolation = BilinearInterpolation, temporalInterpolation: TemporalInterpolation = LinearInterpolation, missingValue: Double = Double.NaN)
Functions
Link copied to clipboard
The current value at position.
Link copied to clipboard
fun <T, P : Position<out P>> Layer<T, P>.toGraphQLLayerSurrogate(posMapping: (List<Number>) -> P): LayerSurrogate<T, P>
Converts a it.unibo.alchemist.model.Layer to a LayerSurrogate.
Link copied to clipboard
The value at position, following the time of the simulation, or time 0 until there is one. Reading or observing it fails with an IllegalArgumentException if position is outside the grid.