ErmKriging

Interpolates the temperature and the precipitation of the stations to the centroid of each sub-basin, time step by time step, with ordinary kriging. At each time step the experimental variogram of the station values is computed and a theoretical variogram is fitted to it.

Parameters

Third step of the ERM/GeoFrame water budget workflow: interpolates the temperature and precipitation measured at the meteo stations to the centroids of the sub-basins, with ordinary kriging and a variogram fitted at each time step. Negative interpolated precipitations are set to zero.

Toolbox folder: GeoFrame
Status: Certified
Keywords: ERM, GeoFrame, Kriging
Authors: Daniele Andreis
Class: org.hortonmachine.hmachine.geoframe.ermworkflow.ErmKriging

Inputs

Parameter

Type

Unit

Default

Description

inGpkg

GeoPackage file

The GeoFrame database, with the station data imported.

pStartTimestamp

String

Start of the period to interpolate. Format: yyyy-MM-dd HH:mm, in UTC.

pEndTimestamp

String

End of the period to interpolate. Format: yyyy-MM-dd HH:mm, in UTC.

doDeleteExistingData

boolean

false

If true, the temperatures and precipitations already interpolated are deleted first.

Example

import org.hortonmachine.hmachine.geoframe.ermworkflow.ErmKriging;

// the folder containing the input data: change it to yours
var workspace = "/data/COURSE_WATER/"

var ek = new ErmKriging()
ek.inGpkg = workspace + "outputs/geoframe_data.gpkg"
ek.pStartTimestamp = "2015-01-01 01:00"
ek.pEndTimestamp = "2023-12-31 01:00"
ek.doDeleteExistingData = true
ek.process()