907Resident / caldera-gases

Field research conducted between 2017 and 2019 acquired hundreds of samples of diffuse CH4 and CO2 gas emissions. This repository contains the code used for analysis of the data. The public repository for the data will be shared when available.
MIT License
0 stars 0 forks source link

Update the `kp_viz()` function #6

Closed 907Resident closed 1 year ago

907Resident commented 1 year ago

The MATLAB kp_viz() function was built to produce insight on the carbon isotopes for the data. The filename creation scheme needs to be updated to fit the new relative path scheme.

Old version:

% Save figure as .fig to working directory
fi       = sprintf("MATLAB_figs\\%s_%s_CH4_and_CO2_d13C_KP_sig_bar.fig",...
                    site_tag, ddmmmyyyy);
fig_file = working_dir+fi;

Due to the fact that the directories are now written as variables directly to the "MATLB_figs" directory, the new version needs to be:

% Save figure as .fig to working directory
fi       = sprintf("%s_%s_CH4_and_CO2_d13C_KP_sig_bar.fig",...
                    site_tag, ddmmmyyyy);
fig_file = fullfile(matlab_fig_dir,fi);

for all figures in the function.

Also, the input arguments need to be changed accordingly from:

function [fig09,fig10] = kp_viz(ChamON_data, nchams,                    ...
                                KP_Fits,                                            ...
                                KP_coeffs, KP_coeffs_ci,                ...
                                site_tag, ddmmmyyyy,                    ...
                                working_dir)

and changed to:

function [fig09,fig10] = kp_viz(ChamON_data, nchams,                    ...
                                KP_Fits,                                            ...
                                KP_coeffs, KP_coeffs_ci,                ...
                                site_tag, ddmmmyyyy,                    ...
                                matlab_fig_dir)
907Resident commented 1 year ago

Checks are complete, issue closed