[25834] | 1 | Index: ../trunk-jpl/src/m/modules/BamgTriangulate.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/modules/BamgTriangulate.py (revision 25515)
|
---|
| 4 | +++ ../trunk-jpl/src/m/modules/BamgTriangulate.py (revision 25516)
|
---|
| 5 | @@ -2,17 +2,16 @@
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | def BamgTriangulate(x, y):
|
---|
| 9 | - """
|
---|
| 10 | - BAMGTRIANGULATE
|
---|
| 11 | + """BAMGTRIANGULATE
|
---|
| 12 |
|
---|
| 13 | Usage:
|
---|
| 14 | index = BamgTriangulate(x, y)
|
---|
| 15 |
|
---|
| 16 | - index: index of the triangulation
|
---|
| 17 | - x, y: coordinates of the nodes
|
---|
| 18 | + index : index of the triangulation
|
---|
| 19 | + x, y : coordinates of the nodes
|
---|
| 20 | """
|
---|
| 21 |
|
---|
| 22 | - # Call mex module
|
---|
| 23 | + # Call Python module
|
---|
| 24 | index = BamgTriangulate_python(x, y)
|
---|
| 25 | - # return
|
---|
| 26 | - return index
|
---|
| 27 | +
|
---|
| 28 | + return index[0]
|
---|
| 29 | Index: ../trunk-jpl/test/NightlyRun/test2004.m
|
---|
| 30 | ===================================================================
|
---|
| 31 | --- ../trunk-jpl/test/NightlyRun/test2004.m (revision 25515)
|
---|
| 32 | +++ ../trunk-jpl/test/NightlyRun/test2004.m (revision 25516)
|
---|
| 33 | @@ -153,8 +153,9 @@
|
---|
| 34 | longAIS=delH{:,1};
|
---|
| 35 | latAIS=delH{:,2};
|
---|
| 36 | delHAIS=delH{:,3};
|
---|
| 37 | - points=[longAIS,latAIS];
|
---|
| 38 | - index=delaunayn(points);
|
---|
| 39 | + % points=[longAIS,latAIS];
|
---|
| 40 | + % index=delaunayn(points);
|
---|
| 41 | + index=BamgTriangulate(longAIS, latAIS);
|
---|
| 42 | lat=md.mesh.lat;
|
---|
| 43 | long=md.mesh.long+360;
|
---|
| 44 | pos=find(long>360);
|
---|
| 45 | @@ -262,8 +263,9 @@
|
---|
| 46 | longGIS=delH(:,1);
|
---|
| 47 | latGIS=delH(:,2);
|
---|
| 48 | delHGIS=delH(:,3);
|
---|
| 49 | - points=[longGIS,latGIS];
|
---|
| 50 | - index=delaunayn(points);
|
---|
| 51 | + % points=[longGIS,latGIS];
|
---|
| 52 | + % index=delaunayn(points);
|
---|
| 53 | + index=BamgTriangulate(longGIS, latGIS);
|
---|
| 54 | lat=md.mesh.lat;
|
---|
| 55 | long=md.mesh.long+360;
|
---|
| 56 | pos=find(long>360);
|
---|
| 57 | @@ -275,8 +277,9 @@
|
---|
| 58 | longGLA=delH(:,1);
|
---|
| 59 | latGLA=delH(:,2);
|
---|
| 60 | delHGLA=sum(delH(:,3:end),2);
|
---|
| 61 | - points=[longGLA,latGLA];
|
---|
| 62 | - index=delaunayn(points);
|
---|
| 63 | + % points=[longGLA,latGLA];
|
---|
| 64 | + % index=delaunayn(points);
|
---|
| 65 | + index=BamgTriangulate(longGLA, latGLA);
|
---|
| 66 | lat=md.mesh.lat;
|
---|
| 67 | long=md.mesh.long+360;
|
---|
| 68 | pos=find(long>360);
|
---|
| 69 | Index: ../trunk-jpl/test/Archives/Archive2004.arch
|
---|
| 70 | ===================================================================
|
---|
| 71 | Cannot display: file marked as a binary type.
|
---|
| 72 | svn:mime-type = application/octet-stream
|
---|