Changeset 21041


Ignore:
Timestamp:
08/01/16 09:21:35 (9 years ago)
Author:
Mathieu Morlighem
Message:

BUG: wrong conversion when x y are matrices

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

Legend:

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

    r6859 r21041  
    5959x =  rho .* sgn .* sin(sgn.*longitude);
    6060
    61 [cnt1,cnt2] = find(latitude >= pi / 2.);
     61[cnt1,cnt2] = find(latitude(:) >= pi / 2.);
    6262
    6363if cnt1
    64         x(cnt1,1) = 0.0;
    65         y(cnt1,1) = 0.0;
     64        x(cnt1) = 0.0;
     65        y(cnt1) = 0.0;
    6666end
  • issm/trunk-jpl/src/m/coordsystems/xy2ll.m

    r6859 r21041  
    6262lon = sgn * lon;
    6363
    64 [res1,res2] = find(rho <= 0.1);
     64[res1,res2] = find(rho(:) <= 0.1);
    6565if res1
    66         lat(res1,1) = 90. * sgn;
    67         lon(res1,1) = 0.0;
     66        lat(res1) = 90. * sgn;
     67        lon(res1) = 0.0;
    6868end
    6969
Note: See TracChangeset for help on using the changeset viewer.