[SOLVED]Problem with collocated cokriging

Hello,
I've got some issues while trying to perform a collocated cokriging.
Here is the code I use :
And the code for a "classic" cokriging :
The classik cokriging is performed very fast, 10-20 second with acceptable outputs but the collocated cokriging is very long, more than 20 minutes and returns me aberrant values for the NO2 variable. I can't understand what I am doing wrong.
Do you have any ideas ?
Thanks a lot for your help !
Maxime Beauchamp
I've got some issues while trying to perform a collocated cokriging.
Here is the code I use :
- Code: Select all
data.db=db.locate(data.db,"NOx","z",1)
data.db=db.locate(data.db,"NO2","z",2)
grid.db=db.locate(grid.db,"NOx","z",1)
v_exp=vario.calc(data.db,lag=350,nlag=15)
v_fit=model.auto(v_exp,nvar=2,struct=c('Nugget Effect','Spherical','Exponential','Linear','Cubic'))
# krigeage sur la grille
grid.db=kriging(data.db,grid.db,v_fit,data.u.neigh,radix="CKC",calcul="block",flag.colk=T)
And the code for a "classic" cokriging :
- Code: Select all
data.db=db.locate(data.db,"NO2","z",1)
data.db=db.locate(data.db,"NOx","z",2)
v_exp=vario.calc(data.db,lag=350,nlag=15)
v_fit=model.auto(v_exp,nvar=2,struct=c('Nugget Effect','Spherical','Exponential','Linear','Cubic'))
# krigeage sur la grille
grid.db=kriging(data.db,grid.db,v_fit,data.u.neigh,radix="CK",calcul="block")
The classik cokriging is performed very fast, 10-20 second with acceptable outputs but the collocated cokriging is very long, more than 20 minutes and returns me aberrant values for the NO2 variable. I can't understand what I am doing wrong.
Do you have any ideas ?
Thanks a lot for your help !
Maxime Beauchamp