Rank: 143 based on 393 downloads (last 30 days) and 14 files submitted
photo

Wolfgang Schwanghart

E-mail
Company/University
University of Postdam

Personal Profile:
Professional Interests:
GIS, Physical Geography, Hydrology

 

Watch this Author's files

 

Files Posted by Wolfgang View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Jan 2013 Screenshot Experimental (Semi-) Variogram calculate the isotropic and anisotropic experimental (semi-) variogram Author: Wolfgang Schwanghart kriging, geostatistics, variogram, dimensions, spatial modelling, earth science 88 24
  • 4.90909
4.9 | 13 ratings
14 Oct 2010 Screenshot Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart kriging, geostatistics, variogram 90 10
  • 3.875
3.9 | 8 ratings
14 Oct 2010 Screenshot variogramfit fits different theoretical variograms to an experimental variogram Author: Wolfgang Schwanghart ipdm, kriging, geostatistics, spatial statistics, variogram, optimization 78 14
  • 5.0
5.0 | 6 ratings
13 Jul 2010 Screenshot Line Simplification Recursive Douglas-Peucker Polyline Simplification (Iterative Endpoint Fit) Author: Wolfgang Schwanghart approximations, interpolation, polyline, vertex reduction, mathematics, approximation 52 10
  • 5.0
5.0 | 3 ratings
21 Sep 2009 Screenshot cropmat crop arrays with axis-aligned minimum bounding box Author: Wolfgang Schwanghart matrix manipulation, matrix, image processing 12 0
  • 2.0
2.0 | 1 rating
Comments and Ratings by Wolfgang View all
Updated File Comments Rating
03 Apr 2013 Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart

@Sébastien: Thanks for pointing at the error when using a nugget variogram.

I am currently abroad, so I probably won't find much time to update the function. So, in the meantime please adopt the changes proposed by Sébastien.

The problem with the gaussian variogram is most likely due to negative weights (see http://dx.doi.org/10.1016/0098-3004(96)00005-2 ). I will try to implement the procedure suggested by Deutsch (1996) in a future update.

15 Feb 2013 Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart

@Imran Zafar: Fig. 4 shows the kriging variance which quantifies the uncertainty of the kriging estimates. You will note, that the kriging variance increases with increasing distance from observations.

24 Jan 2013 Custom GINPUT GINPUT with customizable cursor. Author: Jiro Doke

Jiro, thanks for the quick reply and fix!

23 Jan 2013 Custom GINPUT GINPUT with customizable cursor. Author: Jiro Doke

Great tool! Yet, there seems to be a bug which I cannot resolve. I called ginputc with

[x,y,button] = ginputc(1,'color','r','LineStyle','--')

in a function mytool. Despite the LineStyle should be valid, I receive following error message.

Error using mytool>ginputc (line 135)
Argument 'LineStyle' failed validation @(x)validatestring(x,{'-','--','-.',':'}).
Error in mytool (line 29)
[x,y,button] = ginputc(1,'color','r','LineStyle','--');

Any ideas?

07 Jan 2013 mat2im Convert 2D matrix to a 3D image matrix as used by the image processing toolbox Author: Rob Campbell

Comments and Ratings on Wolfgang's Files View all
Updated File Comment by Comments Rating
16 May 2013 neighbor indexing returns neighbors of cells in n*m matrices Author: Wolfgang Schwanghart Gonzalez, Fernando

Very useful!

24 Apr 2013 variogramfit fits different theoretical variograms to an experimental variogram Author: Wolfgang Schwanghart meo

24 Apr 2013 Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart meo

04 Apr 2013 Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart Willy

@Wolfgang: I really appreciate your interactivity and your pertinence in all your comments. I just coded the Deutsch method to solve the problem of the negative weights. Thanks to your doi link. Thus, the gaussian variogram is now well working :)

Here are the lines code to insert within the "for" loop, between the paragraphs "solve system" and "estimate zi".

However, I'm not an excellent developper. I'll let you find some better/faster way to code this.

% solve system
lambda = A*b;

% correct negative weights (Deutsch 1996)
if sum(lambda(:)<0) % if negative weigths are found
% compute the "average absolute magnitude of the negative weights"
lambdaLim=lambda(1:end-1,:);
PosInd=lambdaLim>=0;
lambdaLim(PosInd)=NaN;
lambdaLim=nanmean(abs(lambdaLim),1);
% compute the mean covariance between "negative" locations and the IX ones
bNoOnes=b(1:end-1,:);
bLim=bNoOnes;
bLim(PosInd)=NaN;
bLim=nanmean(bLim,1);
% correct the weights
lambdaC=lambda(1:end-1,:); % step 1 of Deutsch 1996
lambdaC(lambdaC<0)=0; % step 2 of Deutsch 1996
lambdaC(PosInd & bNoOnes-repmat(bLim,numobs,1)<0 & lambda(1:end-1,:)-repmat(lambdaLim,numobs,1)<0)=0; % step 3 of Deutsch 1996
% restandardization of the weights
lambda(1:end-1,:)=lambdaC./repmat(sum(lambdaC,1),numobs,1);
end

% estimate zi
zi(IX) = lambda'*z;

03 Apr 2013 Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart Schwanghart, Wolfgang

@Sébastien: Thanks for pointing at the error when using a nugget variogram.

I am currently abroad, so I probably won't find much time to update the function. So, in the meantime please adopt the changes proposed by Sébastien.

The problem with the gaussian variogram is most likely due to negative weights (see http://dx.doi.org/10.1016/0098-3004(96)00005-2 ). I will try to implement the procedure suggested by Deutsch (1996) in a future update.

Top Tags Applied by Wolfgang
geomorphology, geostatistics, hydrology, image processing, matrix manipulation
Files Tagged by Wolfgang View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 Apr 2013 Screenshot Easy 'n fast smoothing for 1-D to N-D data SMOOTHN allows automatized and robust smoothing in arbitrary dimension w/wo missing values Author: Damien Garcia image processing, signal processing, statistics, smooth 177 14
  • 4.73333
4.7 | 15 ratings
09 Jan 2013 Screenshot Experimental (Semi-) Variogram calculate the isotropic and anisotropic experimental (semi-) variogram Author: Wolfgang Schwanghart kriging, geostatistics, variogram, dimensions, spatial modelling, earth science 88 24
  • 4.90909
4.9 | 13 ratings
14 Oct 2010 Screenshot Ordinary Kriging 2D-interpolation using geostatistics Author: Wolfgang Schwanghart kriging, geostatistics, variogram 90 10
  • 3.875
3.9 | 8 ratings
14 Oct 2010 Screenshot variogramfit fits different theoretical variograms to an experimental variogram Author: Wolfgang Schwanghart ipdm, kriging, geostatistics, spatial statistics, variogram, optimization 78 14
  • 5.0
5.0 | 6 ratings
13 Jul 2010 Screenshot Line Simplification Recursive Douglas-Peucker Polyline Simplification (Iterative Endpoint Fit) Author: Wolfgang Schwanghart approximations, interpolation, polyline, vertex reduction, mathematics, approximation 52 10
  • 5.0
5.0 | 3 ratings

Contact us