Changeset 19981


Ignore:
Timestamp:
01/22/16 09:47:38 (9 years ago)
Author:
Eric.Larour
Message:

CHG: address issue of gmtmask not accepting large input files (i.e. larger than ~50-100,000 vertices). Implement
recursive call.

File:
1 edited

Legend:

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

    r19298 r19981  
    66%
    77
    8 
     8        %Check lat and long size is not more than 50,000; If so, recursively call gmtmask:
     9        if length(lat)>50000,
     10                for i=1:50000:length(lat),
     11                        j=i+50000-1;
     12                        if j>length(lat),
     13                                j=length(lat);
     14                        end
     15                        mask(i:j)=gmtmask(lat(i:j),long(i:j));
     16                end
     17                return
     18        end
     19       
    920        %First, write our lat,long file for gmt:
    1021        nv=length(lat);
Note: See TracChangeset for help on using the changeset viewer.