Ignore:
Timestamp:
02/17/23 13:41:46 (2 years ago)
Author:
jdquinn
Message:

CHG: Reverting to GMT 6.0.0 because executables under 6.4.0 do not link statically to libgmt; find gmtselect if it is available; removed test with restart from packaging scripts; cleanup

File:
1 edited

Legend:

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

    r27369 r27589  
    55%      mask.ocean = gmtmask(md.mesh.lat,md.mesh.long);
    66%
     7%       TODO: Standardize discovery of GMT bin path and whether or not we have GMT
     8%       modules (i.e. `gmt select`) between this file, gmtmask.py, and
     9%       gmtmaskparallel.m
    710
    811        %are we doing a recursive call?
     
    3134        %First, write our lat,long file for gmt:
    3235        nv=length(lat);
    33         filename_all = ['all_vertices-' num2str(feature('GetPid')) '.txt'];
    34         filename_oce = ['oce_vertices-' num2str(feature('GetPid')) '.txt'];
     36        filename_suffix=[num2str(feature('GetPid')) '.txt'];
     37        filename_all=['all_vertices-' filename_suffix];
     38        filename_oce=['oce_vertices-' filename_suffix];
    3539        dlmwrite(filename_all,[long lat (1:nv)'],'delimiter','\t','precision',10);
    3640
    3741        %figure out which vertices are on the ocean, which one on the continent:
    38         [status,result] = system(['gmt select ./' filename_all ' -h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s > ./' filename_oce]);
     42        gmt_select_options='-h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s';
     43        [status,result]=system(['gmt select ./' filename_all ' ' gmt_select_options ' > ./' filename_oce]);
    3944        if status~=0,
    40                 error(result);
     45                [status,result] = system(['gmtselect ./' filename_all ' ' gmt_select_options ' > ./' filename_oce]);
     46                if status~=0,
     47                        error(result);
     48                end
    4149        end
    4250
Note: See TracChangeset for help on using the changeset viewer.