Changeset 25516


Ignore:
Timestamp:
09/02/20 16:11:49 (5 years ago)
Author:
jdquinn
Message:

CHG: Using BamgTriangulate instead of delaunayn.

Location:
issm/trunk-jpl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/modules/BamgTriangulate.py

    r24213 r25516  
    33
    44def BamgTriangulate(x, y):
    5     """
    6     BAMGTRIANGULATE
     5    """BAMGTRIANGULATE
    76
    87    Usage:
    98        index = BamgTriangulate(x, y)
    109
    11     index: index of the triangulation
    12     x, y: coordinates of the nodes
     10        index   : index of the triangulation
     11        x, y    : coordinates of the nodes
    1312    """
    1413
    15     # Call mex module
     14    # Call Python module
    1615    index = BamgTriangulate_python(x, y)
    17     # return
    18     return index
     16
     17    return index[0]
  • issm/trunk-jpl/test/NightlyRun/test2004.m

    r25515 r25516  
    154154                        latAIS=delH{:,2};
    155155                        delHAIS=delH{:,3};
    156                         points=[longAIS,latAIS];
    157                         index=delaunayn(points);
     156                        % points=[longAIS,latAIS];
     157                        % index=delaunayn(points);
     158                        index=BamgTriangulate(longAIS, latAIS);
    158159                        lat=md.mesh.lat;
    159160                        long=md.mesh.long+360;
     
    263264                latGIS=delH(:,2);
    264265                delHGIS=delH(:,3);
    265                 points=[longGIS,latGIS];
    266                 index=delaunayn(points);
     266                % points=[longGIS,latGIS];
     267                % index=delaunayn(points);
     268                index=BamgTriangulate(longGIS, latGIS);
    267269                lat=md.mesh.lat;
    268270                long=md.mesh.long+360;
     
    276278                latGLA=delH(:,2);
    277279                delHGLA=sum(delH(:,3:end),2);
    278                 points=[longGLA,latGLA];
    279                 index=delaunayn(points);
     280                % points=[longGLA,latGLA];
     281                % index=delaunayn(points);
     282                index=BamgTriangulate(longGLA, latGLA);
    280283                lat=md.mesh.lat;
    281284                long=md.mesh.long+360;
Note: See TracChangeset for help on using the changeset viewer.