/[MITgcm]/MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/ncload.m
ViewVC logotype

Diff of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/ncload.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by roquet, Mon Apr 11 20:48:54 2011 UTC revision 1.3 by roquet, Thu Apr 14 23:35:42 2011 UTC
# Line 6  function theResult = ncload(fileIn, vara Line 6  function theResult = ncload(fileIn, vara
6  %   workspace of the "caller" of this routine.  If no names  %   workspace of the "caller" of this routine.  If no names
7  %   are given, all variables are loaded.  %   are given, all variables are loaded.
8    
9  global useNativeMatlabNetcdf; if isempty(useNativeMatlabNetcdf); useNativeMatlabNetcdf = ~isempty(which('netcdf.open')); end;  global useNativeMatlabNetcdf;
10    if isempty(useNativeMatlabNetcdf); useNativeMatlabNetcdf = ~isempty(which('netcdf.open')); end;
11    
12  f = ncopen(fileIn, 'nowrite');  f = ncopen(fileIn, 'nowrite');
13  if isempty(f), return, end  if isempty(f), return, end

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22