source: issm/oecreview/Archive/24684-25833/ISSM-25515-25516.diff@ 25834

Last change on this file since 25834 was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 2.1 KB
  • ../trunk-jpl/src/m/modules/BamgTriangulate.py

     
    22
    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]
  • ../trunk-jpl/test/NightlyRun/test2004.m

     
    153153                        longAIS=delH{:,1};
    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;
    160161                        pos=find(long>360);
     
    262263                longGIS=delH(:,1);
    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;
    269271                pos=find(long>360);
     
    275277                longGLA=delH(:,1);
    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;
    282285                pos=find(long>360);
Note: See TracBrowser for help on using the repository browser.