Skip to content

Commit a0ae6f2

Browse files
committed
Fix fingerprint plot 30min time shift
* Changed start/end time for data * This should cure 30min time shift in fingerprints * This was making it difficult to diagnose/shift datalogger time shifts
1 parent fc6b3c5 commit a0ae6f2

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

plot_fingerprint.m

+5-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@
100100
% -----
101101
tstamp = datenum( 2004, 1, 0 ) + dtime;
102102
% Data will be plotted for an entire year
103-
t_min = datenum( 2004, 1, 1 );
104-
t_max = datenum( 2004, 12, 31, 23, 59, 59 );
103+
% Note that data timestamps denote end of 30min averaging period,
104+
% so first meas of year is at 30min, last is at midnight
105+
t_min = datenum( 2004, 1, 1, 0, 30, 0 );
106+
t_max = datenum( 2005, 1, 1 );
107+
105108
tstamp = datenum_2_round30min( tstamp, 10, t_min );
106109
temp_data = array2table( [ tstamp, data ], ...
107110
'VariableNames', {'timestamp', 'data'});

plot_fixed_datalogger_timestamps.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function plot_fixed_datalogger_timestamps( sitecode, year, ...
9696
h_fig1 = figure( 'Name', ...
9797
sprintf('%s %d datalogger time-shift diagnostics 1/2', ...
9898
get_site_name( sitecode ), year ), ...
99-
'Position', [230 230 1570 750], 'Visible', 'on' );
99+
'Position', [50 50 1370 700], 'Visible', 'on' );
100100
% Arrays of data and labels
101101
tableList = { dataOrig, dataShifted };
102102
titleStrings = { 'before', 'after' };
@@ -155,7 +155,7 @@ function plot_fixed_datalogger_timestamps( sitecode, year, ...
155155
h_fig2 = figure( 'Name', ...
156156
sprintf('%s %d datalogger time-shift diagnostics 2/2', ...
157157
get_site_name( sitecode ), year ), ...
158-
'Position', [230 100 1250 950], 'Visible', 'on' );
158+
'Position', [50 50 1050 750], 'Visible', 'on' );
159159
% Arrays of data and labels
160160
xLabelList = { 'January', 'February', 'March', 'April', 'May', 'June', ...
161161
'July', 'August', 'September', 'October', 'November', 'December' };

0 commit comments

Comments
 (0)