Compiling dk’s kriging function
20160205 Scott Havens
smrf.spatial.dk.detrended_kriging.
call_grid
Call the function krige_grid in krige.c which will iterate over the grid within the C code
- [nsta x nsta] matrix of distances between stations (ad) –
- [ngrid x nsta] matrix of distances between grid points and stations (dgrid) –
- [nsta] array of station elevations (elevations) –
weights (return) –
- number of threads to use in parallel processing (nthreads) –
weights changed in place
20160222 Scott Havens
2016-02-22 Scott Havens
Distributed forcing data over a grid using detrended kriging
smrf.spatial.dk.dk.
DK
Bases: object
object
Detrended kriging class
calculate
Calcluate the deternded kriging for the data and config
data: numpy array same length as m* config: configuration for dk
returns the distributed and calculated value
v
calculateWeights
Calculate the weights given those stations with nan values for data
detrendData
Detrend the data in val using the heights zmeas data - is the same size at mx,my flag - 1 for positive, -1 for negative, 0 for any trend imposed
retrendData
Retrend the residual values