View source: R/ifcb_download_dashboard_data.R
ifcb_download_dashboard_data | R Documentation |
This function downloads specified IFCB data files from a given IFCB Dashboard URL. It supports optional filename conversion and ADC file adjustments from the old IFCB file format.
ifcb_download_dashboard_data(
dashboard_url,
samples,
file_types,
dest_dir,
convert_filenames = FALSE,
convert_adc = FALSE,
parallel_downloads = 5,
sleep_time = 2,
multi_timeout = 120,
max_retries = 3,
quiet = FALSE
)
This function can download several files in parallel if the server allows it. The download parameters can be adjusted using the parallel_downloads
, sleep_time
and multi_timeout
arguments.
If convert_filenames = TRUE
, filenames in the
"IFCBxxx_YYYY_DDD_HHMMSS"
format (used by IFCB1-6)
will be converted to IYYYYMMDDTHHMMSS_IFCBXXX
, ensuring compatibility with blob extraction in ifcb-analysis
(Sosik & Olson, 2007), which identified the old .adc
format by the first letter of the filename.
If convert_adc = TRUE
and
convert_filenames = TRUE
, the
"IFCBxxx_YYYY_DDD_HHMMSS"
format will instead be converted to
DYYYYMMDDTHHMMSS_IFCBXXX
. Additionally, .adc
files will be modified to include four empty columns
(PMT-A peak, PMT-B peak, PMT-C peak, and PMT-D peak), aligning them with the structure of modern .adc
files
for full compatibility with ifcb-analysis
.
This function does not return a value. It performs the following actions:
Downloads the requested files into dest_dir
.
If convert_adc = TRUE
, modifies ADC files in place by inserting four empty columns after column 7.
Displays messages indicating the download status.
Sosik, H. M. and Olson, R. J. (2007), Automated taxonomic classification of phytoplankton sampled with imaging-in-flow cytometry. Limnol. Oceanogr: Methods 5, 204–216.
## Not run:
ifcb_download_dashboard_data(
dashboard_url = "https://ifcb-data.whoi.edu/mvco/",
samples = "IFCB1_2014_188_222013",
file_types = c("blobs", "autoclass"),
dest_dir = "data",
convert_filenames = FALSE,
convert_adc = FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.