-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspins_contents.m
More file actions
74 lines (68 loc) · 2.6 KB
/
spins_contents.m
File metadata and controls
74 lines (68 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
function spins_contents(category)
%% List of key SPINS files
% initialread - Script to call for initial processing of a run:
% - Process diagnostics
% - Calculate Wave Statistics
% - Plot movie of density, u, w, vorticity
% spins_params - Outputs structure of parameters passed in spins.conf
% file
%% Case Setup Scripts
% Scripts to help produce spins.conf files
%
% initial_condition_maker - Like hillreader, but also sorts out density
% and tracer fields
%
% density_profile_comparisons - Plots initial density field behind gate,
% and in main tank to compare with probes
%
%% Initial Analysis Scripts
% Scripts to produce wave metrics
% characterize_wave - Script to calculate wave characteristics
% (amplitude, wavelengths, time to hit slope,
% speed)
% plot_wave_char - Script to plot how wave characteristics from
% characterize_wave change over time
% plot_diagnos - Plot diagnostics recorded in model, including
% change of energy, max speeds and vorticities
% plot_stress - Plot stresses recorded in model.
% plot_waveform - Plot showing waveform for comparison with
% DJL/lab
%% Plotting scripts
% basic_single_plot - produces simplest single frame plot of real
% density and horizontal velocity.
% plot_waveform
% SPINS_movie_maker - Main script to plot the wave propagating over a
% fixed window
% make_movie - SPINS built movie maker, which tracks the wave,
% and can be plotted with any spins_plot2d
% compatable variable
% spins_plot2d - Plots a range of variables, including things like
% KE, Ri, , fairly complex options
%
%% Analysis
% if nargin == 0
% open SPINSContents
% return
% end
m_path = mpath;
string_chars = ' \n ';
if nargin == 0
contents = ls([m_path]);
category = '';
else
contents = ls([m_path category]);
end
fprintf(['\n ------------------------ \n ' category ' \n ------------------------ \n'])
for i = 3:size(contents, 1)
part = contents(i, :);
[~, part] = fileparts(part);
string_chars = [string_chars part];
if mod(i-1, 4) == 1
string_chars = [string_chars ' \n '];
else
string_chars = [string_chars ' \t '];
end
end
string_chars = [string_chars ' \n '];
fprintf(string_chars);
end