|
10 | 10 | %
|
11 | 11 | function[] = curtain_plot_by_type(data_type, file_path, location, save_figs)
|
12 | 12 |
|
13 |
| -if ( ~exist('save_figs','var') ) |
| 13 | +if ~exist('save_figs','var') |
14 | 14 | save_figs = 0;
|
15 | 15 | end
|
16 |
| -if ( ~exist('location','var') ) |
| 16 | +if ~exist('location','var') |
17 | 17 | location = 'puddingstone';
|
18 | 18 | end
|
19 | 19 |
|
|
29 | 29 | run em_prepare_labels
|
30 | 30 |
|
31 | 31 | % Importing file into matlab cell
|
32 |
| -if ( ~exist('file_path','var') ) |
| 32 | +if ~exist('file_path','var') |
33 | 33 | [filename, pathname] = uigetfile('*.log', 'Select the data file');
|
34 | 34 | file_path = strcat(pathname, filename);
|
35 | 35 | end
|
|
77 | 77 | end
|
78 | 78 |
|
79 | 79 | % Plot the completed 3D slice/graph
|
80 |
| -hFig= figure; |
| 80 | +hFig = figure; |
81 | 81 | set(hFig, 'Position', [0 0 1000 1000])
|
82 | 82 | three_dimensional_slice = surf(lon_copies, lat_copies, -depth_copies, grid_data_values);
|
83 | 83 | shading interp
|
|
146 | 146 | end
|
147 | 147 | end
|
148 | 148 |
|
149 |
| -% % testing, trying to get map underneath |
150 |
| -% hold on; |
151 |
| -% if ( strcmp(location,'puddingstone') == 1 ) |
152 |
| -% mapfile = '~/Maps/puddingstone/puddingstone_dam_extended.tiff'; |
153 |
| -% elseif ( strcmp(location,'elsinore') == 1 ) |
154 |
| -% mapfile='~/Maps/elsinore/elsinore17_crop.tiff'; |
155 |
| -% else |
156 |
| -% disp('Error, location unknown, exiting'); |
157 |
| -% return; |
158 |
| -% end |
159 |
| -% [data_array, ref_object] = geotiffread(mapfile); |
160 |
| -% geoshow(data_array,ref_object) |
161 |
| - |
162 | 149 | end
|
163 | 150 |
|
0 commit comments