source: trunk/src/test_struct2nc.m @ 140

Last change on this file since 140 was 129, checked in by sommeria, 13 years ago

new function usefull to test the writing of netcdf files

File size: 249 bytes
Line 
1% program to test struct2nc for creating netcdf files
2Data.ListVarName={'A'};
3Data.VarDimName={{'ny','nx'}};
4[x,y] = meshgrid([-2:.2:2]);
5Data.A = x.*exp(-x.^2-y.^2);
6%
7err=struct2nc('test.nc',Data)
8if isempty(err)
9    display('test.nc written')
10end
Note: See TracBrowser for help on using the repository browser.