Skip to content

Commit

Permalink
Minor update to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory E. Maurer committed Jun 30, 2016
1 parent 40f63cc commit 5283cdf
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
12 changes: 7 additions & 5 deletions scripts/script_make_ameriflux.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
% UNM_sites.SLand, UNM_sites.GLand, UNM_sites.PPine};
sitelist={UNM_sites.GLand};
% Years to create files for
yearlist = 2015;
yearlist = 2007;
% Partitioned data source
partmethod = 'eddyproc'; %'Reddyproc'
partmethod = 'Reddyproc'; %'eddyproc'
% Make daily files? All AF files should be in $FLUXROOT$/Ameriflux_files
make_daily = false;
write_files = false;
write_files = true;
process_soil = false;

for i = 1:length(sitelist);
Expand All @@ -30,9 +30,11 @@
'process_soil_data', process_soil );

elseif strcmp(partmethod, 'Reddyproc');
error( ' not implemented yet ' );
%error( ' not implemented yet ' );
UNM_Ameriflux_File_Maker(sitecode, year,...
'write_daily_file', make_daily);
'write_daily_file', make_daily, ...
'process_soil_data', process_soil, ...
'gf_part_source', 'Reddyproc');

end

Expand Down
6 changes: 3 additions & 3 deletions scripts/script_make_fluxall.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
sitelist = {UNM_sites.MCon, UNM_sites.SLand, UNM_sites.JSav, ...
UNM_sites.GLand, UNM_sites.PPine, UNM_sites.PJ_girdle, UNM_sites.PJ, ...
UNM_sites.PJ_girdle};
sitelist = {UNM_sites.JSav};
yearlist = 2013;%2013:2014;% 2009:2013;
proc_10hz = false;
sitelist = {UNM_sites.GLand};
yearlist = 2016;%2013:2014;% 2009:2013;
proc_10hz = true;
count = 1;
for i = 1:length(sitelist);
for j = 1:length(yearlist)
Expand Down
15 changes: 8 additions & 7 deletions scripts/script_make_qc_gf.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
%close all;
%clear all;
sitelist = {UNM_sites.GLand, UNM_sites.SLand, UNM_sites.JSav, UNM_sites.New_GLand,...
UNM_sites.PJ, UNM_sites.PJ_girdle, UNM_sites.PPine, UNM_sites.MCon };
%sitelist = {UNM_sites.MCon};
yearlist = 2015;
%sitelist = { UNM_sites.GLand, UNM_sites.SLand, UNM_sites.JSav, UNM_sites.New_GLand,...
% UNM_sites.PJ, UNM_sites.PJ_girdle, UNM_sites.PPine, UNM_sites.MCon };
sitelist = {UNM_sites.MCon};
yearlist = 2008;

write_qc = false;
write_gf = false;
% True, overwrite files; False; do not overwrite
write_qc = true;
write_gf = true;
old_fluxall = false;

for i = 1:length(sitelist);
Expand All @@ -31,7 +32,7 @@
'old_fluxall', old_fluxall);

% Fill in gaps using the REddyProc package
% UNM_run_gapfiller(sitecode, year);
UNM_run_gapfiller(site, year);
%
% Otherwise, send the resulting for_gapfilling files to
% the MPI eddyproc web service.
Expand Down
4 changes: 2 additions & 2 deletions scripts/script_make_soilmet_qc.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
sitelist = {UNM_sites.GLand, UNM_sites.SLand, ...
UNM_sites.JSav, UNM_sites.PJ, UNM_sites.PPine, ...
UNM_sites.MCon};
sitelist = { UNM_sites.PJ_girdle };%, ...
sitelist = { UNM_sites.PPine };%, ...
%UNM_sites.SLand};
yearlist = 2009:2014;%2013:2014;% 2009:2013;
yearlist = 2015;%2013:2014;% 2009:2013;
write_qc = true;
write_rbd = true;

Expand Down
2 changes: 1 addition & 1 deletion scripts/script_process_data_from_disk.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


sitecode = UNM_sites.JSav;
sitecode = UNM_sites.New_GLand;

cardPath = uigetdir( fullfile( get_site_directory( sitecode ), ...
'Raw_data_from_cards' ), 'Pick a directory to process.' );
Expand Down

0 comments on commit 5283cdf

Please sign in to comment.