Index: /issm/trunk/src/m/utils/DataProcessing/TracksToMatrix.m
===================================================================
--- /issm/trunk/src/m/utils/DataProcessing/TracksToMatrix.m	(revision 1093)
+++ /issm/trunk/src/m/utils/DataProcessing/TracksToMatrix.m	(revision 1094)
@@ -2,11 +2,11 @@
 %TRACKSTOMATRIX - Create a map from tracks
 %
-%   This routine creates a map from tracks using Kriging with the DACE package.
-%   xmin and ymin are two scalars are the extreme values of the data matrix one wants to create
-%   posting is a scalar giving the posting of the matrix to be created in meters
-%   trac_coord is an exp file containing the coordinates of the tracks (x and y)
-%   trav_values is a vector with the values along the track coordinates
-%   theta is a parameter of the correlation function stricly positive
-%   varagin can contain a matrix of data to constrain rhe matrix to be created
+%   This routine creates a map from tracks using a Kriging algorithm given by the package DACE.
+%   - xmin and ymin are two scalars that are the extreme values of the data matrix one wants to create
+%   - posting is a scalar giving the posting of the matrix to be created in meters
+%   - trac_coord is an Argus file containing the coordinates of the tracks (x and y)
+%   - trav_values is a vector with the values along the track coordinates
+%   - theta is a parameter of the correlation function stricly positive
+%   varagin can contain a matrix of data to constrain the matrix to be created
 %   it shoud contain indices x and y and the matrix
 %
@@ -22,6 +22,10 @@
 global ISSM_DIR
 
+%some checks
 if nargin~=8 & nargin~=11,
 	error(' TracksToMatrix error message: wrong number of arguments')
+end
+if exist([ISSM_DIR '/externalpackages/dace/install']),
+	error(['TracksToMatrix error message: DACE has not been installed yet. Go to ' ISSM_DIR  '/externalpackages/dace and install DACE (./install.sh)']);
 end
 
@@ -82,3 +86,4 @@
 MatData=reshape(VecData,ny,nx);
 
+%remove DACE path
 rmpath([ISSM_DIR '/externalpackages/dace/install']);
