Changeset 20520


Ignore:
Timestamp:
04/21/16 11:58:02 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added error message in case transformation did not work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/coordsystems/gdaltransform.m

    r20128 r20520  
    2323
    2424        [s,r]=system(['gdaltransform -s_srs ',proj_in,' -t_srs ',proj_out,'  < ' temproot '/.rand1234.txt > ' temproot '/.rand1235.txt']);
     25        if s~=0 | ~isempty(deblank(r)),
     26                error(r);
     27        end
    2528        A=textread([temproot '/.rand1235.txt']);
    2629        xout=A(:,1);
Note: See TracChangeset for help on using the changeset viewer.