The following programs were corrected:
Two bugs in Program kb2d.
1. The subroutine cova2 used to calculate the 2D covariance values from a given model, uses the input parameters of GSLIB 1.0, not 2.0. Consequently, the exponential and Gaussian variogram models are defined in terms of range ``parameter'', and not in terms of practical range, as is the case with program kt3d, version 2.0. Now the subroutine cova2 has been modified to follow GSLIB 2.0's convention.
2. When using ordinary kriging (OK), there is a mismatch in the estimation variance between kb2d and kt3d. This mismatch is due to the following bug in program kb2d: the augmented OK matrix contains covariance values C(0) instead of ones (for stability purposes), but the contribution of the Lagrange parameter to the OK variance has not been multiplied correspondingly by C(0).
One bug about the multiple grid search in the simulation programs(sgsim, sisim, sisim_gs, sisim_lm)
Correction of the implementation of the conditioning data search in sisim, sisim_lm and sisim_gs
GSLIB program sisim allows relocating the original data to the closest
sim ulation grid nodes in order to speed up the conditioning data search.
When two d ata are assigned to the same grid node, the previous sisim
version retains the closest one, without distinguishing hard data from
soft data.
The new sisim version gives priority to the hard datum whenever a hard and a soft datum are close to the same grid node. When data are not relocated to grid nodes, a super block search strategy is used to search the nearest conditioning data. In the previous version of sisim , sisim_lm and sisim_gs, after setting up the super block strategy, the data values do not match the data locations anymore, and the restriction of the number of conditioning soft data usually fails. Those failures are corrected in the new version of the 3 programs affected.
Description - The third angle in all GSLIB programs operates in the opposite direction than specified in the GSLIB book.
Explanation - The books says (pp27) the angle is measured clockwise when looking toward the origin (from the postive principal direction), but it should be counter-clockwise. This is a documentation error. Although rarely used, the correct specification of the third angle is critical if used. For a detailed description of the rotation angles, see a note by Zhanjun Ying.