source:
issm/oecreview/Archive/24684-25833/ISSM-25515-25516.diff@
25834
Last change on this file since 25834 was 25834, checked in by , 4 years ago | |
---|---|
File size: 2.1 KB |
-
../trunk-jpl/src/m/modules/BamgTriangulate.py
2 2 3 3 4 4 def BamgTriangulate(x, y): 5 """ 6 BAMGTRIANGULATE 5 """BAMGTRIANGULATE 7 6 8 7 Usage: 9 8 index = BamgTriangulate(x, y) 10 9 11 index: index of the triangulation12 x, y: coordinates of the nodes10 index : index of the triangulation 11 x, y : coordinates of the nodes 13 12 """ 14 13 15 # Call mexmodule14 # Call Python module 16 15 index = BamgTriangulate_python(x, y) 17 # return 18 return index 16 17 return index[0] -
../trunk-jpl/test/NightlyRun/test2004.m
153 153 longAIS=delH{:,1}; 154 154 latAIS=delH{:,2}; 155 155 delHAIS=delH{:,3}; 156 points=[longAIS,latAIS]; 157 index=delaunayn(points); 156 % points=[longAIS,latAIS]; 157 % index=delaunayn(points); 158 index=BamgTriangulate(longAIS, latAIS); 158 159 lat=md.mesh.lat; 159 160 long=md.mesh.long+360; 160 161 pos=find(long>360); … … 262 263 longGIS=delH(:,1); 263 264 latGIS=delH(:,2); 264 265 delHGIS=delH(:,3); 265 points=[longGIS,latGIS]; 266 index=delaunayn(points); 266 % points=[longGIS,latGIS]; 267 % index=delaunayn(points); 268 index=BamgTriangulate(longGIS, latGIS); 267 269 lat=md.mesh.lat; 268 270 long=md.mesh.long+360; 269 271 pos=find(long>360); … … 275 277 longGLA=delH(:,1); 276 278 latGLA=delH(:,2); 277 279 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); 280 283 lat=md.mesh.lat; 281 284 long=md.mesh.long+360; 282 285 pos=find(long>360);
Note:
See TracBrowser
for help on using the repository browser.