% Purpose % writes time axis value to data file. % % Synopsis % mexeps('puttaxis',varcode,name,frmt,units,type,ax_val) % mexeps('puttaxis',varcode,name,frmt,units,type,ax_val,range) % % Description % It sets and writes out time axis value to data file. The variable % which the axis associated with is refered to by variable code, % varcode. Input argument also include axis name, format, units, % type ('even' or 'uneven') and axis value (ax_val). The last % argument, range, is optional. When it is not specified, all axis % value will be written out; when it is specified, it is a 1x2 array % contains [lower upper] limits of the axis value you want to write. % % The format of input time axis value must be in the form of % YYMMDDhhmmss.fff. For example, May 10, 1994 10:30:00 should be % 940510103000.000. The output time axis to the netCDF file is % determined by the units you specified. There two kinds output format % you can choose. (1) EPS 2-integer time format, i.e. the first number % is "True Julian Day" and the second number is "msec since 0.00 GMT. % To write this time format, you must specify input units = ' '. % (2) NetCDF Unidata udunits library syupported time representation, % e.g. attribute units = 'hour since 1994-05-30 00:00:00'. To write % this time format, you must specify input units to be the same units % attribute ('units since YYYY-MM-DD hh:mm:ss.fff). For example: % units = 'hour since 1995-05-30 00:00:00'. % % Examples % Open a data file and write out time axis values. % % mexeps('openw','pointer.file'); % open pointer file % mexeps('setnextw','datafile.ctd'); % open data file % % .... % write spacial axis values % % varcode = 20; % time = [910101000000.000; 910101010000.000; 910101020000.000]; % % write time in EPS 2-integer time format % % mexeps('puttaxis',varcode,'time',' ',' ','even',time); % % ... % write variable values. % % See Also % putvar, putaxis %