Skip to contents

The basics of downloading CTD data are outlined in this vignette, as a supplement to a shorter entry in the main vignette.

Basics

The function dod.ctd can download ctd data from the Bedford Basin Mooring Program (BBMP), Bermuda Atlantic Time Series (BATS), Global Temperature and Salinity Program (GTSPP) etc by calling their respective functions dod.ctd.bbmp, dod.ctd.bats or dod.ctd.gtspp.

Finding Desired ID

BBMP

In the dod.ctd.bbmp function, ID is the desired file from the index. Once the index is downloaded using the dod.ctd function, provide the file name from the index you want to download for the argument ID. eg ID= “D22667034.ODF”

GTSPP

For GTSPP, ID is 8 digits with the first two digits meaning the ocean basin initial (at, pa, in), the next four digits meaning the year of interest and the last two being the month of interest.

eg To attain data from the Atlantic in January 1985 input: ID=“at198501”.

Example: Downloading BBMP Data

This is a basic example which shows you how to download ctd index from the BBMP program in the year 2022 and download, read and plot the first item in the index using the oce package.

library(dod)
library(oce)
index <- dod.ctd("BBMP", 2022, index=TRUE, file="bbmp.txt", read=TRUE)
item <- index[1,"file"]
file <- dod.ctd(program="BBMP", year=2022, ID=item, file="bbmp.txt", read=TRUE)
plot(file)