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

Contents of /MITgcm_contrib/gael/profilesMatlabProcessing/profiles_misc/ncclose.m

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


Revision 1.1 - (show annotations) (download)
Mon Apr 11 20:48:54 2011 UTC (14 years, 3 months ago) by roquet
Branch: MAIN
CVS Tags: checkpoint65r, checkpoint65p, checkpoint65q
interface for old/new Matlab netcdf toolbox

1 function [] = ncclose(ncid);
2 % close a netcdf file.
3
4 global useNativeMatlabNetcdf;
5 if isempty(useNativeMatlabNetcdf); useNativeMatlabNetcdf = ~isempty(which('netcdf.open')); end;
6
7
8 if useNativeMatlabNetcdf;
9 netcdf.close(ncid);
10 else;%try to use old mex stuff
11 close(ncid);
12 end;
13
14
15

  ViewVC Help
Powered by ViewVC 1.1.22