Changeset 25364


Ignore:
Timestamp:
08/10/20 08:42:02 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: improved error message handling

Location:
issm/trunk-jpl/src/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/modules/CoordTransform.m

    r24788 r25364  
    88%   xout, yout: output coordinates (in new projection)
    99%   projin,projout: input/output projection string (PROJ)
     10%
     11%   Example of Projections:
     12%     
     13%   lat/lon = '+init=epsg:4326'
     14%   lat/lon = '+proj=longlat +datum=WGS84'
     15%   
     16%   ll2xy default equivalent (uses with Hugues Ellispoid S)
     17%   Greenland = '+proj=stere +lat_0=90 +lat_ts=70 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.448564109 +units=m +no_defs'
     18%   Antarctica = '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378273 +b=6356889.448564109 +units=m +no_defs'
     19%   Bamber Greenland = '+proj=stere +lat_0=90 +lat_ts=71 +lon_0=-39 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
     20%
     21%   for latitude/longitude, x is longitude and y latitude and the angles are in rad
    1022%
    1123%   This function will only work of PROJ has been installed in externalpackages
  • issm/trunk-jpl/src/m/parameterization/parameterize.m

    r13646 r25364  
    3636
    3737        %rename parameter file
    38         me2.message=regexprep(me2.message,[temporaryname '.m'],parametername);
    3938        for i=1:length(me2.stack)-1,
    40                 me2.stack(i).file=regexprep(me2.stack(i).file,[temporaryname '.m'],parametername);
    41                 me2.stack(i).name=regexprep(me2.stack(i).name,[temporaryname],parametername);
     39                if strcmp(me2.stack(i).name,temporaryname)
     40                        me2.stack(i).file = strrep(me2.stack(i).file,temporaryname,parametername);
     41                        me2.stack(i).name = parametername;
     42                end
    4243                if strcmp(me2.stack(i).name,'parameterize'),
    4344                        %remove error (eval(temporaryname);) misleading
Note: See TracChangeset for help on using the changeset viewer.