.
authorA.M. Thurnherr <athurnherr@yahoo.com>
Wed, 18 Apr 2012 07:41:27 +0000
changeset 6 71f657b20ca0
parent 4 b99280de1642
child 7 9139db7173d5
.
dec_time.m
startup.m
new file mode 100644
--- /dev/null
+++ b/dec_time.m
@@ -0,0 +1,28 @@
+%======================================================================
+%                    D E C _ T I M E . M 
+%                    doc: Thu Mar  1 18:16:50 2012
+%                    dlm: Thu Mar  1 18:18:15 2012
+%                    (c) 2012 A.M. Thurnherr
+%                    uE-Info: 15 0 NIL 0 0 72 0 2 4 NIL ofnI
+%======================================================================
+% 
+%	dt = dec_time(time[,epoch])
+%
+% 	make ATNS dn field from matlab numeric time
+%
+% HISTORY:
+%	Mar  1, 2012: - created
+
+function dt=dec_time(time,varargin)
+
+if nargin==2
+	dt = time - datenum(varargin{1},1,1) + 1;
+elseif nargin==1
+	dv = datevec(time);
+	dt = dec_time(time,dv(1));
+else
+	disp('dt=dec_time(time[,epoch])');
+	error
+end
+
+	
new file mode 100644
--- /dev/null
+++ b/startup.m
@@ -0,0 +1,11 @@
+%======================================================================
+%                    S T A R T U P . M 
+%                    doc: Tue Apr 17 14:48:48 2012
+%                    dlm: Tue Apr 17 14:49:28 2012
+%                    (c) 2012 A.M. Thurnherr
+%                    uE-Info: 9 1 NIL 0 0 72 0 2 4 NIL ofnI
+%======================================================================
+
+%addpath /Data/src/Matlab/ant
+addpath /Data/LADCP/Software/LDEO_IX/current
+addpath /Data/LADCP/Software/Thurnherr/shear_inversion/2012_NBP0901