Changeset 1094


Ignore:
Timestamp:
06/25/09 10:54:30 (16 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/DataProcessing/TracksToMatrix.m

    r1089 r1094  
    22%TRACKSTOMATRIX - Create a map from tracks
    33%
    4 %   This routine creates a map from tracks using Kriging with the DACE package.
    5 %   xmin and ymin are two scalars are the extreme values of the data matrix one wants to create
    6 %   posting is a scalar giving the posting of the matrix to be created in meters
    7 %   trac_coord is an exp file containing the coordinates of the tracks (x and y)
    8 %   trav_values is a vector with the values along the track coordinates
    9 %   theta is a parameter of the correlation function stricly positive
    10 %   varagin can contain a matrix of data to constrain rhe matrix to be created
     4%   This routine creates a map from tracks using a Kriging algorithm given by the package DACE.
     5%   - xmin and ymin are two scalars that are the extreme values of the data matrix one wants to create
     6%   - posting is a scalar giving the posting of the matrix to be created in meters
     7%   - trac_coord is an Argus file containing the coordinates of the tracks (x and y)
     8%   - trav_values is a vector with the values along the track coordinates
     9%   - theta is a parameter of the correlation function stricly positive
     10%   varagin can contain a matrix of data to constrain the matrix to be created
    1111%   it shoud contain indices x and y and the matrix
    1212%
     
    2222global ISSM_DIR
    2323
     24%some checks
    2425if nargin~=8 & nargin~=11,
    2526        error(' TracksToMatrix error message: wrong number of arguments')
     27end
     28if exist([ISSM_DIR '/externalpackages/dace/install']),
     29        error(['TracksToMatrix error message: DACE has not been installed yet. Go to ' ISSM_DIR  '/externalpackages/dace and install DACE (./install.sh)']);
    2630end
    2731
     
    8286MatData=reshape(VecData,ny,nx);
    8387
     88%remove DACE path
    8489rmpath([ISSM_DIR '/externalpackages/dace/install']);
Note: See TracChangeset for help on using the changeset viewer.