Skip to content

Commit 58bb22b

Browse files
committed
Updated commented descriptions.
1 parent 88f64b9 commit 58bb22b

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

complete_run.m

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ function complete_run(ssh_path, eddies_save_path, tracks_save_path, fake_eddies,
1212
% 4. Format and process saved data so that it can be viewed in Hung's
1313
% viewer that we include
1414
%
15-
% NOTE: The process of turning NetCDF file data into MATLAB data is
16-
% partially left up to the user to do. A function will be provided that
17-
% will accomplish this for the user, but the user will have to provide the
18-
% variable names for what the SSH data is called, what the Latitude data is
19-
% called, and what the Longitude data is called. Also, the user will either
20-
% have to have this function generate a dates array (that is, what day each
21-
% day of SSH data relates to) for it, or they will have to generate their
22-
% own. Code will be provided in the NetCDf to MATLAB data function to
23-
% assist with generating this dates array.
24-
% Also, this script will not open the viewer for the user, it will leave
25-
% that action up to the user. To open the viewer, all the user has to do is
26-
% run the start_track_viewer script inside the tracks_viewer directory.
15+
% NOTE: The process of turning NetCDF file data into MATLAB data is not
16+
% accomplished in this function.
17+
% The function set_up_ssh_data is provided that will accomplish this for
18+
% the user, but the user will have to provide the variable names that match
19+
% the function inputs. Refer to the comments at the top of the function
20+
% set_up_ssh_data for a description of what each of the required variables are.
21+
%
22+
% This script will not open the viewer for the user.
23+
% To open the viewer, run the start_track_viewer script inside the
24+
% tracks_viewer directory.
2725

2826
p = inputParser;
2927
defaultLat = NaN;
@@ -143,7 +141,7 @@ function complete_run(ssh_path, eddies_save_path, tracks_save_path, fake_eddies,
143141
cyclonic_tracks = vars.(s{1});
144142
eddies_save_path = modified_eddies_path;
145143
else
146-
anticyclonic_tracks = track_lnn(eddies_save_path, 'anticyc', 1); % Change this so it can be an optional argument in input parser
144+
anticyclonic_tracks = track_lnn(eddies_save_path, 'anticyc', 1); % Possibly change this so it can be an optional argument in input parser
147145
cyclonic_tracks = track_lnn(eddies_save_path, 'cyclonic', 1); % Same as above
148146
end
149147
save([tracks_save_path, 'anticyclonic_tracks.mat'], 'anticyclonic_tracks');

set_up_ssh_data.m

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
function set_up_ssh_data(NetCDF_files_path, ssh_NetCDF_name, lat_NetCDF_name, lon_NetCDF_name, ssh_save_path)
22
% Inputs:
3-
% NetCDF_files_path:
4-
% ssh_NetCDF_name:
5-
% lat_NetCDF_name:
6-
% lon_NetCDF_name:
7-
% ssh_save_path:
3+
% NetCDF_files_path: The directory path to the NetCDF files.
4+
% ssh_NetCDF_name: The name of the variable inside the NetCDF file that
5+
% corresponds to the SSH data.
6+
% lat_NetCDF_name: The name of the variable inside the NetCDF file that
7+
% corresponds to the latitude data.
8+
% lon_NetCDF_name: The name of the variable inside the NetCDF file that
9+
% corresponds to the longitude data.
10+
% ssh_save_path: The directory where you want resulting SSH, latitude,
11+
% longitude, and other .mat data that is generated by this
12+
% function saved.
13+
%
14+
% If you do not understand how to provide these inputs, please refer to the
15+
% NetCDF data files you have, and check the variable names by running
16+
% either 'ncdump -h <nc_filename>' in a terminal, or by using MATLAB's
17+
% built in 'ncdisp(<nc_filename>)' command to read about the variable
18+
% names.
19+
820
if ~strcmp(NetCDF_files_path(end), '/')
921
NetCDF_files_path = strcat(NetCDF_files_path, '/');
1022
end

0 commit comments

Comments
 (0)