source:
issm/trunk-jpl/src/m/regional/plotbasins.m
| Last change on this file was 13010, checked in by , 13 years ago | |
|---|---|
| File size: 355 bytes | |
| Rev | Line | |
|---|---|---|
| [2890] | 1 | %display all the domain outlines in a directory |
| 2 | ||
| 3 | basins=listfiles; | |
| 4 | ||
| 5 | hold on | |
| 6 | for i=1:length(basins), | |
| 7 | %check whether this is a .exp file | |
| 8 | basin=basins{i}; | |
| 9 | if strcmpi(basin(end-3:end),'.exp'), | |
| 10 | ||
| 11 | contour=expread(basin,0); | |
| 12 | x=contour(1).x; | |
| 13 | y=contour(1).y; | |
| 14 | x0=mean(x); y0=mean(y); | |
| 15 | text(x0,y0,basin(1:end-4),'Fontsize',14); | |
| 16 | expdisp(basin); | |
| 17 | end | |
| 18 | end |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)