Skip to content

Commit

Permalink
Eddypro methods
Browse files Browse the repository at this point in the history
Add process 10 hz eddypro and get eddypro data method
  • Loading branch information
acmoody committed Jul 11, 2016
1 parent 03f859d commit 68e87c7
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion card_data_processor.m
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,20 @@

end % get_secondary_data

% --------------------------------------------------

function [ obj, eddypro_files ] = get_eddypro_data( obj )

eddypro_files = get_loggernet_filenames( obj.sitecode, ...
obj.date_start, obj.date_end, 'csv' );

obj.data_30min = combine_and_fill_datalogger_files( ...
obj.sitecode, 'csv', ...
'file_names', csv_files, ...
'resolve_headers', obj.flux_data_config(1).resolve_headers, ...
'datalogger_name', obj.flux_data_config(1).name );
end

% --------------------------------------------------

function obj = process_10hz_data( obj )
Expand All @@ -333,7 +347,7 @@
% If obj.data_10hz_already_processed is true, reads pre-processed data
% from .mat file (see docs for card_data_processor constructor).
%
% USAGE:
% USAGE:
% [ obj ] = process_10hz_data( obj )
% INPUTS:
% obj: card_data_processor object
Expand Down Expand Up @@ -378,6 +392,29 @@
obj.data_10hz_avg = all_data;
end % process_10hz_data

% --------------------------------------------------

function obj = process_10hz_eddypro


output_temp_dir = tempname();
mkdir(output_temp_dir);



%Construct system command to run Eddy Pro
eddypro_proj = fullfile('C:','Research_Flux_Towers',...
'SiteData','TestSite',...
'eddypro_proc',obj.sitecode,'.eddypro');
eddypro_exe = fullfile('C:', 'Program Files (x86)', 'LI-COR', ...
'EddyPro-6.1.0', 'bin', ...
'eddypro_rp');
eddypro_cmd = sprintf('%s %s', ...
eddypro_exe, ...
eddypro_proj);
system(eddypro_cmd);
end

% --------------------------------------------------

function obj = process_data( obj )
Expand Down

0 comments on commit 68e87c7

Please sign in to comment.