Learn R Programming

⚠️There's a newer version (1.8-3) of this package.Take me there.

oce (version 0.8-4)

Analysis of Oceanographic data

Description

Supports the analysis of Oceanographic data, including ADP measurements, CTD measurements, sectional data, sea-level time series, coastline files, etc. Provides functions for calculating seawater properties such as potential temperature and density, as well as derived properties such as buoyancy frequency and dynamic height.

Copy Link

Version

Install

install.packages('oce')

Monthly Downloads

2,354

Version

0.8-4

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

December 19th, 2011

Functions in oce (0.8-4)

airHalifax

Time-series of wind and temperature at Halifax, Canada.
as.windrose

Create a windrose object
as.pt

Create an TDR temperature-depth recorder data file
as.coastline

Coerce data into coastline dataset
angleRemap

Convert an angle from the 0:360 range to -180:180
as.drifter

Coerce data into drifter dataset
magic

Find the type of an oceanographic data file
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
as.echosounder

Coerce data into echosounder dataset
adv-class

Class to store acoustic Doppler velocimeter data
RRprofile

Seawater profile used by Reiniger and Ross (1968)
adp

ADP (acoustic-doppler profiler) dataset
findInOrdered

Find indices of tiems in an ordered vector
addColumn

Add a column to an oce object
accessors

Access or modify part of an Oce object
resizableLabel

Provide axis names in adjustable sizes
despike

Remove spikes from a time series
drawPalette

Draw a palette on the right-hand side of plot device
a03

WOCE section a03
beamName

Name an acoustic-doppler beam.
as.topo

Coerce data into topo dataset
fullFilename

full name of file, including path
argo

ARGO drifter dataset
stickplot

Draw a stick-plot diagram
head

Returns the first or last parts of an oce object.
oce.plot.ts

Plot a time-series, obeying the timezone
drifter-class

Class to store drifter data, e.g. from an ARGOS float
airRho

Air density
header

Return the header for an Oce data object
geodXy

Convert lat/lon to x/y on earth
ctd-class

Class to store hydrographic data
is.beam

Determine coordinate system for acoustic-doppler device
swRho

Seawater density
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
munk

Munk's (1966) temperature profile
extract

Extract data from an oce object
as.lobo

Coerce data into lobo dataset
imagep

Plot an image with a colour palette
bcdToInteger

Decode BCD to integer
detrend

Detrend a set of observations
ctimeToSeconds

Interpret a character string as a time interval
ctdTrim

Trim start/end portions of a CTD cast
as.sealevel

Coerce data into sea-level dataset
plot.coastline

Plot a coastline
oceApprox

Interpolate with Reiniger-Ross algorithm
plot.section

Plot a CTD section
oce.plot.sticks

Draw a stick-plot diagram
ctdUpdateHeader

Update a CTD header
binAverage

Bin-average a vector y, based on x values
echosounder-class

Class to store echosounder data
fillGap

Fill a gap in an oce object
met

Sample meteorological object
matchBytes

Find spots in a raw vector that match a given byte sequence.
decimate

Smooth and decimate an oce object
formatCI

Format a confidence interval in parenthetic notation
latlonFormat

Format a latitude-longitude pair
cm-class

Class to store current meter data
geosecs235

GEOSECS station 235 data
makeSection

Bind CTD profiles together into a cross section
coriolis

Coriolis parameter on rotating earth
coastlineSLE

Coastline of St Lawrence Estuary
plot.echosounder

Plot echosounder data
plot.lobo

Plot lobo data
rangeLimit

Substitute NA for data outside a range
drag

Wind drag coefficient
read.lobo

Read a lobo data file
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
oce.write.table

Write the data portion of object to a file
integerToAscii

Decode integer to corresponding ASCII code
loggerToc

Decode table-of-contents file from a datalogger
plotProfile

Plot a CTD profile of various quantities
oceBisect

Find the root of a function by bisection
oceFilter

Filter a time-series, possibly recursively
oceSpectrum

Wrapper to give normalized spectrum
oceEdit

Edit an oce object
coastlineHalifax

Coastline data set, showing Halifax Harbour
redfieldNC

Redfield's (1934) NO3 and total CO2 data
read.pt

Read an TDR temperature-depth recorder data file
plot.cm

Plot cm (current meter) data
swSigmaT

Seawater quasi-potential density anomaly
numberAsPOSIXct

Convert a numeric time to a POSIXct time
plotTS

Plot temperature-salinity diagram for seawater (CTD) data
read.adp

Read an ADP data file
plot.met

Plot meteorological data
makeFilter

Make a digital filter
read.coastline

Scan a coastline data file
sectionSort

Sort a section
topoWorld

Global topographic dataset at half-degree resolution
summary.section

Summarize a CTD section
rescale

Rescale values to lie in a given range
read.drifter

Read a drifter data file
summary.windrose

Summarize a windrose data object
oce.as.POSIXlt

More general form of as.POSIXlt
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
plot.topo

Plot topography data
swTheta

Seawater potential temperature
swSpecificHeat

Seawater specific heat
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
summary.cm

Summarize a cm (current meter) object
topoInterpolate

Interpolate within a topography dataset
topoMaritimes

Topographic dataset, showing Maritime region of Canada
oceDebug

Print a debugging message
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
undriftTime

Correct for drift in instrument clock
plot.adv

Plot ADV data
plot.ctd

Plot seawater CTD data
schmitt

Schmitt's (1981) NACW temperature-salinity data
write.ctd

Write a CTD data object as a .csv file
showMetadataItem

Show metadata item
sunAngle

Solar angle as function of space and time.
processingLog

Add an item to object processingLog
ptTrim

Trim start/end portions of a pt cast
lonFormat

Format a longitude
ctdDecimate

Decimate a CTD profile
adv

ADV (acoustic-doppler velocimeter) dataset
pt-class

Class to store pressure-temperature recorder data
as.ctd

Coerce data into ctd dataset
read.met

Read a meteorological data file
ptPatm

Estimate atmospheric pressure in pt record
retime

Adjust the time within Oce object
sectionGrid

Grid a section
met-class

Class to store meteorological data
gravity

Acceleration due to earth gravity
byteToBinary

Format bytes as binary
section

Seawater CTD section
ctdAddColumn

Add a column to a CTD file
plot.sealevel

Plot sealevel data
coastline-class

Class to store coastline data
summary.tidem

Summarize a tide-model object
geodDist

Geodesic distance on earth
ptr

ptr (pressure-temperature) dataset
enuToOtherAdp

Convert ADP from east-north-up coordinates to other coordinates
summary.adp

Summarize an ADP object
plot.pt

Plot pt (pressure-temperature) recorder data
read.ctd

Read a CTD data file
summary.echosounder

Summarize an echosounder object
GMTOffsetFromTz

Determine time offset from timezone
read.oce

Read an oceanographic data file
interpBarnes

Grid data using Barnes algorithm
plot.windrose

Plot a wind rose diagram
adp-class

Class to store acoustic Doppler profiler data
swAlpha

Seawater thermal expansion coefficient
read.adv

Read an ADV data file
read.topo

Read an topography file
applyMagneticDeclination

Earth magnetic declination
swDepth

Water depth
redfieldNP

Redfield's (1934) NO3 and PO4 data
sealevelHalifax

Sea-level data set, from Halifax Harbour
predict.tidem

Predict a time series from a tidal model
swLapseRate

Seawater lapse rate
as.met

Coerce data into met dataset
swDynamicHeight

Dynamic height of seawater profile
swSoundSpeed

Seawater sound speed
sealevel-class

Class to store sealevel data
tidemVuf

Do ephemeris calculations for tidem
sectionSmooth

Smooth a section (preliminary version that may change)
swSTrho

Seawater salinity from temperature and density
useHeading

Replace the heading for one instrument with the heading for another
coastlineWorld

World coastline
read.cm

Read a current-meter data file
summary.lobo

Summarize a lobo data object
tidem-class

Class to store tidal-constituent models
vectorShow

Show some values from a vector
subset.oce

Subset an oce object
swSpice

Seawater spiciness
summary.topo

Summarize a topography data object
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
swN2

Squared buoyancy frequency for seawater
tidemAstron

Do ephemeris calculations for tidem
summary.met

Summarize a met object
enuToOtherAdv

Convert ADV from east-north-up coordinates to other coordinates
read.echosounder

Read an echosounder data file
summary.pt

Summarize a pt object
lobo

lobo dataset
swConductivity

Seawater conductivity
ctd

Seawater CTD profile
unabbreviateYear

Determine year from various abbreviations
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
threenum

Calculate min, mean, and max values
magneticDeclination

Earth magneticDeclination
ctdRaw

Seawater CTD profile, without trimming of extraneous data
plotScan

Plot seawater data in a low-level fashion
swSigma

Seawater density anomaly
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
redfieldPlankton

Redfield's (1934) Table II
soi

Southern Oscillation Index
webtide

Get a tidal prediction from a WebTide database
swSigmaTheta

Seawater potential density anomaly
wilson

Wilson's (1963) table of seafloor spreading
read.section

Read a section containing multiple CTD profiles
velocityStatistics

Report statistics of ADP or ADV velocities.
time.oce

Extract time from an oce object
wind

Wind dataset
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
plot.tidem

Plot a tidal fit
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
findBottom

Find the ocean bottom in an echosounder object
swTFreeze

Seawater freezing temperature
swViscosity

Seawater viscosity
read.sealevel

Read a sea-level data file
riley

Riley's (1946) observation and theory of phytoplankton concentration
section-class

Class to store hydrographic section data
window.oce

Window an oce object by time or distance
oceColors

Create a palette of colours
oce.axis.POSIXct

Modified version of axis.POSIXct
pwelch

Welch periodogram
secondsToCtime

Convert a time interval to a colon-separated string
summary.coastline

Summarize a coastline data object
swBeta

Seawater haline contraction coefficient
summary.ctd

Summarize a CTD object
tidedata

Tidal constituent information
tidem

Fit a tidal model to a timeseries
beamToXyz

Convert ADV or ADP data between various coordinate systems
lobo-class

Class to store LOBO data
beamUnattenuateAdp

Unattenuate ADP beam signal strength
latFormat

Format a latitude
oce-class

base class of oce package
matrixSmooth

Smooth a matrix.
parseLatLon

Parse a latitude or longitude string
oceSmooth

Smooth an oce object
plot.drifter

Plot drifter data
plot.adp

Plot ADP data
summary.sealevel

Summarize a sealevel object
summary.drifter

Summarize a drifter object
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
summary.adv

Summarize an ADV object
swTSrho

Seawater temperature from salinity and density
windrose-class

Class to store windrose data
topo-class

Class to store topographic data