download.meds: Download MEDS data

View source: R/meds.R

download.medsR Documentation

Download MEDS data

Description

Download data hosted by Fisheries and Oceans Canada (DFO) Marine Environmental Data Section (MEDS).

Usage

download.meds(year, month, destdir = ".")

Arguments

year

Number giving the year of interest

month

Optional number indicating the month

destdir

Optional string indicating the directory in which to store downloaded files. If not supplied, "." is used, i.e. the data file is stored in the present working directory. Also, the directory will be created if not already done so.

Details

This function downloads data hosted by Fisheries and Oceans Canada (DFO) Marine Environmental Data Section (MEDS) via an ftp connection. Users have the option of supplying the year and or month. Note that the year and month specified does not necessarily mean that the data contained in those files was aquired during the year and month in question. The data file will contain all the data received by MEDS during that year and month. For each requested year and or month will download two files, a .hdr and a .prf file. Both are required when reading the data as the .hdr file contains some basic metadata, and .prf contains all of the data.

Author(s)

Chantelle Layton


clayton33/csasMarPhys documentation built on June 8, 2025, 3:10 a.m.