uopg: Get data from the Upper Ocean Proccesses Group (UOPG).

View source: R/uopg.R

uopgR Documentation

Get data from the Upper Ocean Proccesses Group (UOPG).

Description

Get data from the Upper Ocean Proccesses Group (UOPG).

Usage

uopg(
  dataset = "smile",
  type = "meteorology",
  path = "~/.ots/uopg",
  overwrite = TRUE
)

Arguments

dataset

A dataset code name, one of arabian_sea, asrex_91, asrex_93, biowatt, cmo, coare, coop, fasinex, lotus, mlml89, mlml91, sesmoor, smile, or subduction. Or their unique abbreviations.

type

A data type, one of meteorology, water_velocity, temperature, or salinity. Or their unique abbreviations.

path

A path to store the files, Default: ~/.ots/uopg

overwrite

(logical) To overwrite the path to store files in or not, Default: TRUE.

Details

We download NetCDF files from UOPG, using ncdf to parse the data to a data.frame.

References

http://uop.whoi.edu/archives/dataarchives.html

Examples

## Not run: 
# Smile dataaets
(met <- uopg(dataset = 'smile', type = "meteorology"))
(sal <- uopg(dataset = 'smile', type = "salinity"))
(water <- uopg(dataset = 'smile', type = "water"))
(temp <- uopg(dataset = 'smile', type = "temp"))

# biowatt dataaets
(biowatt_met <- uopg(dataset = 'biowatt', type = "meteorology"))
biowatt_met$data$`1`

# lotus datasets
(lotus_met <- uopg(dataset = 'lotus', type = "meteorology"))
lotus_met$data$lotus
lotus_met$metadata

# coare datasets
(coare_sal <- uopg(dataset = 'coare', type = "salinity"))

## End(Not run)

ropensci/ots documentation built on Sept. 12, 2022, 2:01 p.m.