Changeset 93 for trunk/src/struct2nc.m


Ignore:
Timestamp:
May 27, 2010, 7:25:58 PM (14 years ago)
Author:
sommeria
Message:

FFT: improved to deal with NaN data
merge_proj: corrected to reproduce dt if unique
uvmat.fig: tooltip corrected
plot_field: bug for isocontour corrected,
im_filter: cleaning
phys_polar: spatial derivative included (still to check)
set_obeject.fig: minor correction
struct2nc: comments improved
uvmat: button NB implemented
read_civxdata: error message improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/struct2nc.m

    r55 r93  
    1 %'struct2nc': create a netcdf file from a Matlab structure
     1% 'struct2nc': create a netcdf file from a Matlab structure
    22%---------------------------------------------------------------------
    33% errormsg=struct2nc(flname,Data)
    44%
    5 %OUPUT:
    6 %errormsg=error message, =[]: default, no error
     5% OUPUT:
     6% errormsg=error message, =[]: default, no error
    77%
    8 %INPUT:
    9 %flname: name of the netcdf file to create (must end with the extension '.nc')
     8% INPUT:
     9% flname: name of the netcdf file to create (must end with the extension '.nc')
    1010%  Data: structure containing all the information of the netcdf file (or netcdf object)
    1111%           with fields:
    12 %         (optional) .ListGlobalAttribute: cell listing the names of the global attributes
    13 %                    .Att_1,Att_2... : values of the global attributes
    14 %         (requested)  .ListVarName: list of variable names to select (cell array of  char strings {'VarName1', 'VarName2',...} )
    15 %         (requested)  .VarDimName: list of dimension names for each element of .ListVarName (cell array of string cells)                         
    16 %         (requested) .Var1, .Var2....: variables (Matlab arrays) with names listed in .ListVarName
    17 %
     12%       (optional) .ListGlobalAttribute: list (cell array of character strings) of the names of the global attributes Att_1, Att_2...
     13%                  .Att_1,Att_2...: values of the global attributes
     14%      (requested) .ListVarName: list of the variable names Var_1, Var_2....(cell array of character strings).
     15%      (requested) .VarDimName: list of dimension names for each element of .ListVarName (cell array of string cells)
     16%       (optional) .VarAttribute: cell array of structures of the form .VarAttribute{ivar}.key=value, defining an attribute key name and value for the variable #ivar
     17%      (requested) .Var1, .Var2....: variables (Matlab arrays) with names listed in .ListVarName
     18
    1819%AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    1920%  Copyright Joel Sommeria, 2008, LEGI / CNRS-UJF-INPG, sommeria@coriolis-legi.org.
Note: See TracChangeset for help on using the changeset viewer.