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

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

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

revision 1.3 by roquet, Thu Apr 14 20:12:07 2011 UTC revision 1.4 by gforget, Sun Jun 2 16:48:20 2013 UTC
# Line 1  Line 1 
1  function [MITprof]=MITprof_struct(nProf,prof_depth,varargin);  function [MITprof]=MITprof_struct(nProf,dataset,varargin);
2  %   [MITprof]=MITprof_struct;  %   [MITprof]=MITprof_struct;
3  %   create an empty struct variable using the format MITprof  %   create an empty struct variable using the format MITprof
4  %       nProf: number of profiles  %       nProf: number of profiles
# Line 22  function [MITprof]=MITprof_struct(nProf, Line 22  function [MITprof]=MITprof_struct(nProf,
22  %       prof_S, prof_Sflag, prof_Serr, prof_Sweight, prof_Sestim  %       prof_S, prof_Sflag, prof_Serr, prof_Sweight, prof_Sestim
23  %           array size: [nProf x nLev]  %           array size: [nProf x nLev]
24    
25    prof_depth=dataset.z_std;
26    
27  list_vars={'prof_T','prof_Tweight','prof_Testim','prof_Terr','prof_Tflag',...  list_vars={'prof_T','prof_Tweight','prof_Testim','prof_Terr','prof_Tflag',...
28          'prof_S','prof_Sweight','prof_Sestim','prof_Serr','prof_Sflag'};          'prof_S','prof_Sweight','prof_Sestim','prof_Serr','prof_Sflag'};
29    if ~strcmp(dataset.coord,'depth');
30        list_vars={list_vars{:},'prof_D','prof_Destim'};
31    end;
32  if nargin>2,  if nargin>2,
33      list_vars=varargin{1};      list_vars=varargin{1};
34  end  end

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

  ViewVC Help
Powered by ViewVC 1.1.22