/[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.1 by gforget, Thu Jan 27 20:21:09 2011 UTC revision 1.2 by roquet, Wed Apr 13 20:54:19 2011 UTC
# Line 1  Line 1 
1  function [MITprof]=MITprof_struct(nProf,nLev);  function [MITprof]=MITprof_struct(nProf,depth);
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
5  %       nLev: number of vertical levels  %       depth: list of depth levels
6    
7    nLev=length(depth);
8    
9  MITprof=[];  MITprof=[];
10  MITprof.prof_depth=zeros(nLev,1);  MITprof.prof_depth=depth;
11  MITprof.prof_date=zeros(nProf,1);  MITprof.prof_date=zeros(nProf,1);
12  MITprof.prof_YYYYMMDD=zeros(nProf,1);  MITprof.prof_YYYYMMDD=zeros(nProf,1);
13  MITprof.prof_HHMMSS=zeros(nProf,1);  MITprof.prof_HHMMSS=zeros(nProf,1);
# Line 18  MITprof.prof_T=zeros(nProf,nLev); Line 20  MITprof.prof_T=zeros(nProf,nLev);
20  MITprof.prof_Tweight=zeros(nProf,nLev);  MITprof.prof_Tweight=zeros(nProf,nLev);
21  MITprof.prof_Testim=zeros(nProf,nLev);  MITprof.prof_Testim=zeros(nProf,nLev);
22  MITprof.prof_Tflag=zeros(nProf,nLev);  MITprof.prof_Tflag=zeros(nProf,nLev);
23    MITprof.prof_Terr=zeros(nProf,nLev);
24  MITprof.prof_S=zeros(nProf,nLev);  MITprof.prof_S=zeros(nProf,nLev);
25  MITprof.prof_Sweight=zeros(nProf,nLev);  MITprof.prof_Sweight=zeros(nProf,nLev);
26  MITprof.prof_Sestim=zeros(nProf,nLev);  MITprof.prof_Sestim=zeros(nProf,nLev);
27  MITprof.prof_Sflag=zeros(nProf,nLev);  MITprof.prof_Sflag=zeros(nProf,nLev);
28    MITprof.prof_Serr=zeros(nProf,nLev);
29  MITprof.np=nProf;  MITprof.np=nProf;
30  MITprof.nr=nLev;  MITprof.nr=nLev;
31  MITprof.nd=0;  MITprof.nd=0;

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

  ViewVC Help
Powered by ViewVC 1.1.22