Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
function [AllDataMem] = LoadAllData(FileName)
%% output function'name input
%% Section 2: Load all the model data together
Contents = ncinfo(FileName); % Store the file content information in a variable.
for idx = 1: 8
AllData(idx,:,:,:) = ncread(FileName, Contents.Variables(idx).Name);
fprintf('Loading %s\n', Contents.Variables(idx).Name); %display loading info
end
AllDataMem = whos('AllData').bytes/1000000; % or, more precisely, 1048576
fprintf('Memory used for all data: %.3f MB\n', AllDataMem)