Ignore:
Timestamp:
08/02/12 17:13:12 (13 years ago)
Author:
cborstad
Message:

merged trunk-jpl into trunk-jpl-damage through revision 12877

Location:
issm/branches/trunk-jpl-damage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-jpl-damage

  • TabularUnified issm/branches/trunk-jpl-damage/src/modules/Kriging/Kriging.cpp

    r12258 r12878  
    2222        /*checks on arguments on the matlab side: */
    2323        if (nrhs<NRHS || nlhs>NLHS){
    24                 KrigingUsage(); _error_("Kriging usage error");
     24                KrigingUsage(); _error2_("Kriging usage error");
    2525        }
    2626
    2727        /*Fetch inputs: */
    2828        FetchData(&x,&n_obs,X);
    29         FetchData(&y,&N,Y);                       if(n_obs!=N) _error_("x and y should have the same size");
    30         FetchData(&observations,&N,OBSERVATIONS); if(n_obs!=N) _error_("x and observations should have the same size");
     29        FetchData(&y,&N,Y);                       if(n_obs!=N) _error2_("x and y should have the same size");
     30        FetchData(&observations,&N,OBSERVATIONS); if(n_obs!=N) _error2_("x and observations should have the same size");
    3131        FetchData(&x_interp,&M_interp,&N_interp,XINTERP);
    32         FetchData(&y_interp,&M,&N,YINTERP);       if(N!=N_interp || M!=M_interp) _error_("x_interp and y_interp should have the same size");
     32        FetchData(&y_interp,&M,&N,YINTERP);       if(N!=N_interp || M!=M_interp) _error2_("x_interp and y_interp should have the same size");
    3333        FetchData(&options,NRHS,nrhs,prhs);
    3434
     
    5454
    5555void KrigingUsage(void){
    56         _printf_(true,"\n");
    57         _printf_(true,"   usage: predictions=%s(x,y,observations,x_interp,y_interp);\n",__FUNCT__);
    58         _printf_(true,"\n");
     56        _pprintLine_("");
     57        _pprintLine_("   usage: predictions=" << __FUNCT__ << "(x,y,observations,x_interp,y_interp,'options');");
     58        _pprintLine_("   available options:");
     59        _pprintLine_("      -'model': Available variogram models 'gaussian' (default),'spherical','power','exponential'");
     60        _pprintLine_("         -'nugget': nugget effect (default 0.2)");
     61        _pprintLine_("         -'range':  for gaussian, spherical and exponential models (default sqrt(3))");
     62        _pprintLine_("         -'sill':   for gaussian, spherical and exponential models (default 1)");
     63        _pprintLine_("         -'slope':  for power model (default 1)");
     64        _pprintLine_("         -'power':  for power model (default 1)");
     65        _pprintLine_("      -'searchradius': search radius for each prediction (default is observations span)");
     66        _pprintLine_("      -'boxlength':    minimum length of quadtree boxes (useful to decrease the number of observations)");
     67        _pprintLine_("      -'maxdata':      minimum number of observations for a prediction (default is 50)");
     68        _pprintLine_("      -'mindata':      maximum number of observations for a prediction (default is 1)");
     69        _pprintLine_("      -'maxtrimming':  maximum trimming value (default is -1.e+21)");
     70        _pprintLine_("      -'mintrimming':  minimum trimming value (default is +1.e+21)");
     71        _pprintLine_("      -'minspacing':   minimum distance between observation (default is 0.01)");
     72        _pprintLine_("");
    5973}
Note: See TracChangeset for help on using the changeset viewer.