Suppose your sample variogram (the estimates) are in z.sem,
then non-interactive fitting without recalculating these
estimates is obtained by the following command file:

data(zinc): dummy; 
variogram(zinc): 'z.sem' : 10000 Nug() + 140000 Sph(800);
method: semivariogram; # supress interactive mode
set fit = 1; # or whatever fit method you want

It gave me the following output (z.sem obtained from
ex01.cmd):

[edzer@pebesma cmd]$ ../src/gstat z
gstat: Linux version 2.1.1 (January 2000)
Copyright (C) 1992, 2000 Edzer J. Pebesma
data(zinc): [dummy variable]
[calculating sample variogram]
100% done
variogram(zinc): 'z.sem': 36658.9 Nug(0) + 125427 Sph(946.754);
# model: 0 type: Nug (nugget) sill: 36658.9 range: 0
# model: 1 type: Sph (spherical) sill: 125427 range: 946.754
# sum sills 162086, max 162086, min 0, flat at distance 946.754

Hope this helps,
--
Edzer

Reply via email to