Commit bdd8b57a authored by Loic Houpert's avatar Loic Houpert
Browse files

remove alias functions and replace their function call by calls to the orginal function

parent 9041c3bd
...@@ -43,6 +43,16 @@ ...@@ -43,6 +43,16 @@
% attribute, which did not exist. This glitch was fixed, but their could be % attribute, which did not exist. This glitch was fixed, but their could be
% others if reading non-mexec NetCDF files. % others if reading non-mexec NetCDF files.
% %
% SJones on DY120
% Removed alias files:
% nc_infoqatt.m (alias for nc_info)
% nc_infoqdim.m (alias for nc_info)
% nc_infoq.m (alias for nc_info)
% nc_attputq.m (alias for nc_attput)
% and replaced with the functions they point to. Somewhere in the Git process the links broke down and
% were replaced with unreadable text.
%
%
% Files in this library, each of which has some help comments % Files in this library, each of which has some help comments
% %
% Contents.m % Contents.m
...@@ -50,15 +60,11 @@ ...@@ -50,15 +60,11 @@
% nc_addvar.m % nc_addvar.m
% nc_attget.m % nc_attget.m
% nc_attput.m % nc_attput.m
% nc_attputq.m (alias for nc_attput)
% nc_create_empty.m % nc_create_empty.m
% nc_getdiminfo.m % nc_getdiminfo.m
% nc_getvarinfo.m % nc_getvarinfo.m
% nc_global.m % nc_global.m
% nc_info.m % nc_info.m
% nc_infoqatt.m (alias for nc_info)
% nc_infoqdim.m (alias for nc_info)
% nc_infoq.m (alias for nc_info)
% nc_padheader.m % nc_padheader.m
% nc_varget.m % nc_varget.m
% nc_varput.m % nc_varput.m
......
nc_attput.m
\ No newline at end of file
nc_info.m
\ No newline at end of file
nc_info.m
\ No newline at end of file
nc_info.m
\ No newline at end of file
...@@ -17,8 +17,8 @@ if nargin < 3 ...@@ -17,8 +17,8 @@ if nargin < 3
dims_array = {'nrows' 'ncols'}; %default dimensions of a variable dims_array = {'nrows' 'ncols'}; %default dimensions of a variable
end end
%metadata = nc_infoqdim(ncfile.name); %refresh metadata
metadata = nc_infoqdim(ncfile.name); %refresh metadata metadata = nc_info(ncfile.name); %refresh metadata
ncfile.metadata = metadata; ncfile.metadata = metadata;
dimnames = m_unpack_dimnames(ncfile); dimnames = m_unpack_dimnames(ncfile);
......
...@@ -11,7 +11,8 @@ ncfile = m_resolve_filename(ncfile); ...@@ -11,7 +11,8 @@ ncfile = m_resolve_filename(ncfile);
ncfile = m_ismstar(ncfile); % check it is an mstar file ncfile = m_ismstar(ncfile); % check it is an mstar file
metadata = nc_infoqatt(ncfile.name); %refresh metadata %metadata = nc_infoqatt(ncfile.name); %refresh metadata
metadata = nc_info(ncfile.name); %refresh metadata
ncfile.metadata = metadata; ncfile.metadata = metadata;
var_names = m_unpack_varnames(ncfile); var_names = m_unpack_varnames(ncfile);
dimnames = m_unpack_dimnames(ncfile); dimnames = m_unpack_dimnames(ncfile);
......
...@@ -26,7 +26,8 @@ end ...@@ -26,7 +26,8 @@ end
d1 = s(1); d1 = s(1);
d2 = s(2); d2 = s(2);
metadata = nc_infoqdim(ncfile.name); %refresh metadata %metadata = nc_infoqdim(ncfile.name); %refresh metadata
metadata = nc_info(ncfile.name); %refresh metadata
ncfile.metadata = metadata; ncfile.metadata = metadata;
dimnames = m_unpack_dimnames(ncfile); dimnames = m_unpack_dimnames(ncfile);
......
...@@ -48,7 +48,8 @@ end ...@@ -48,7 +48,8 @@ end
% The flename exists and has .nc extension so assume it is a NetCDF file; % The flename exists and has .nc extension so assume it is a NetCDF file;
% Now read the global attributes % Now read the global attributes
metadata = nc_infoqatt(ncfile.name); %refresh metadata metadata = nc_info(ncfile.name); %refresh metadata
%metadata = nc_infoqatt(ncfile.name); %refresh metadata
% ncfile.metadata = metadata; % ncfile.metadata = metadata;
globatt = metadata.Attribute; globatt = metadata.Attribute;
for k = 1:length(globatt); for k = 1:length(globatt);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment