Changeset 27786


Ignore:
Timestamp:
06/09/23 14:12:25 (22 months ago)
Author:
jdquinn
Message:

BUG: Remove -Ve option when calling gmtselect when working with GMT 6.0.0

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

Legend:

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

    r27752 r27786  
    4747        [status,result]=system(['gmt select ./' filename_all ' ' gmt_select_options ' > ./' filename_oce]);
    4848        if status~=0,
     49                %assume we are working with GMT 6.0.0
     50                gmt_select_options='-h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s';
    4951                [status,result] = system(['gmtselect ./' filename_all ' ' gmt_select_options ' > ./' filename_oce]);
    5052                if status~=0,
  • issm/trunk-jpl/src/m/coordsystems/gmtmask.py

    r27752 r27786  
    5353    outs, errs = subproc.communicate()
    5454    if errs != '':
     55        # Assume we are working with GMT 6.0.0
     56        gmt_select_options = '-h0 -Df -R0/360/-90/90 -A0 -JQ180/200 -Nk/s/s/k/s'
    5557        subproc_cmd = 'gmtselect ./all_vertices.txt ' + gmt_select_options + ' > ./oce_vertices.txt'
    5658        subproc = subprocess.Popen(subproc_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
Note: See TracChangeset for help on using the changeset viewer.