Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 81fc6dea authored by Andres Sepulveda's avatar Andres Sepulveda
Browse files

Update get_section.m - In Octave the action on the netcdf file must be...

Update get_section.m - In Octave the action on the netcdf file must be declared. Found by Valentina Iturra (UdeC)
parent 79e7678d
No related branches found
No related tags found
1 merge request!10Draft: Resolve #48 Octave compatibility
......@@ -190,7 +190,7 @@ latdata=latdata(mask==1);
%
% Get the vertical levels
%
nc=netcdf(gname);
nc=netcdf(gname,'r');
h=nc{'h'}(:);
hmin=min(min(h));
h=h(jmin:jmax,imin:imax);
......@@ -200,7 +200,7 @@ h=h(mask==1);
%h=mean(h)+coef*(h-mean(h));
h=griddata(londata,latdata,h,lonsec,latsec,interp_type);
%
nc=netcdf(fname);
nc=netcdf(fname,'r');
%
% First reset h for morphodynamics cases
%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment