if (FALSE) {
#' # Initialize a python session if not already set up
ifcb_py_install()
# Analyze PSD
psd <- ifcb_psd(feature_folder = 'path/to/features',
hdr_folder = 'path/to/hdr_data',
save_data = TRUE,
output_file = 'psd/svea_2021',
plot_folder = NULL,
use_marker = FALSE,
start_fit = 13,
r_sqr = 0.5,
beads = 10 ** 9,
bubbles = 150,
incomplete = c(1500, 3),
missing_cells = 0.7,
biomass = 1000,
bloom = 5,
humidity = NULL)
# Plot PSD of the first sample
plot <- ifcb_psd_plot(sample_name = "D20230316T101514",
data = psd$data,
fits = psd$fits,
start_fit = 10)
# Inspect plot
print(plot)
}
Run the code above in your browser using DataLab