Learn R Programming

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

oce (version 0.8-3)

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,573

Version

0.8-3

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

November 18th, 2011

Functions in oce (0.8-3)

as.lobo

Coerce data into lobo dataset
enuToOtherAdv

Convert ADV from east-north-up coordinates to other coordinates
geosecs235

GEOSECS station 235 data
ctd

Seawater CTD profile
as.drifter

Coerce data into drifter dataset
ctdRaw

Seawater CTD profile, without trimming of extraneous data
binAverage

Bin-average a vector y, based on x values
beamName

Name an acoustic-doppler beam.
addColumn

Add a column to an oce object
numberAsPOSIXct

Convert a numeric time to a POSIXct time
integerToAscii

Decode integer to corresponding ASCII code
adp-class

Class to store acoustic Doppler profiler data
angleRemap

Convert an angle from the 0:360 range to -180:180
bcdToInteger

Decode BCD to integer
RRprofile

Seawater profile used by Reiniger and Ross (1968)
coastlineHalifax

Coastline data set, showing Halifax Harbour
ctd-class

Class to store hydrographic data
as.topo

Coerce data into topo dataset
ctdUpdateHeader

Update a CTD header
as.windrose

Create a windrose object
fillGap

Fill a gap in an oce object
oce.write.table

Write the data portion of object to a file
beamToXyz

Convert ADV or ADP data between various coordinate systems
head

Returns the first or last parts of an oce object.
oceBisect

Find the root of a function by bisection
GMTOffsetFromTz

Determine time offset from timezone
processingLog

Add an item to object processingLog
coastline-class

Class to store coastline data
gravity

Acceleration due to earth gravity
as.sealevel

Coerce data into sea-level dataset
rescale

Rescale values to lie in a given range
drawPalette

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

Plot ADV data
ctdTrim

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

Create an TDR temperature-depth recorder data file
ctdDecimate

Decimate a CTD profile
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
as.met

Coerce data into met dataset
extract

Extract data from an oce object
matrixSmooth

Smooth a matrix.
plot.adp

Plot ADP data
plot.met

Plot meteorological data
as.ctd

Coerce data into ctd dataset
plotTS

Plot temperature-salinity diagram for seawater (CTD) data
plot.ctd

Plot seawater CTD data
adv-class

Class to store acoustic Doppler velocimeter data
swBeta

Seawater haline contraction coefficient
header

Return the header for an Oce data object
cm-class

Class to store current meter data
decimate

Decimate an oce object
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
latlonFormat

Format a latitude-longitude pair
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
findInOrdered

Find indices of tiems in an ordered vector
adv

ADV (acoustic-doppler velocimeter) dataset
beamUnattenuateAdp

Unattenuate ADP beam signal strength
read.drifter

Read a drifter data file
drag

Wind drag coefficient
geodDist

Geodesic distance on earth
lobo

lobo dataset
ctdAddColumn

Add a column to a CTD file
plot.coastline

Plot a coastline
as.coastline

Coerce data into coastline dataset
coastlineSLE

Coastline of St Lawrence Estuary
fullFilename

full name of file, including path
lobo-class

Class to store LOBO data
formatCI

Format a confidence interval in parenthetic notation
coastlineWorld

World coastline
is.beam

Determine coordinate system for acoustic-doppler device
geodXy

Convert lat/lon to x/y on earth
redfieldNC

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

Read a sea-level data file
tidemVuf

Do ephemeris calculations for tidem
parseLatLon

Parse a latitude or longitude string
makeSection

Bind CTD profiles together into a cross section
plot.drifter

Plot drifter data
oce.axis.POSIXct

Modified version of axis.POSIXct
magneticDeclination

Earth magneticDeclination
matchBytes

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

Munk's (1966) temperature profile
oceColors

Create a palette of colours
lonFormat

Format a longitude
plot.lobo

Plot lobo data
ptTrim

Trim start/end portions of a pt cast
read.adp

Read an ADP data file
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
sectionSort

Sort a section
makeFilter

Make a digital filter
plotScan

Plot seawater data in a low-level fashion
read.lobo

Read a lobo data file
section-class

Class to store hydrographic section data
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
plot.pt

Plot pt (pressure-temperature) recorder data
summary.cm

Summarize a cm (current meter) object
wilson

Wilson's (1963) table of seafloor spreading
plot.sealevel

Plot sealevel data
summary.sealevel

Summarize a sealevel object
swSigmaT

Seawater quasi-potential density anomaly
magic

Find the type of an oceanographic data file
plotProfile

Plot a CTD profile of various quantities
pt-class

Class to store pressure-temperature recorder data
redfieldNP

Redfield's (1934) NO3 and PO4 data
read.ctd

Read a CTD data file
swAlpha

Seawater thermal expansion coefficient
swSigmaTheta

Seawater potential density anomaly
sealevelHalifax

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

Predict a time series from a tidal model
coriolis

Coriolis parameter on rotating earth
tidem-class

Class to store tidal-constituent models
pwelch

Welch periodogram
swSpecificHeat

Seawater specific heat
swSCTp

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

Read an ADV data file
oce.plot.ts

Plot a time-series, obeying the timezone
soi

Southern Oscillation Index
plot.topo

Plot topography data
oceEdit

Edit an oce object
section

Seawater CTD section
ptr

ptr (pressure-temperature) dataset
unabbreviateYear

Determine year from various abbreviations
oceFilter

Filter a time-series, possibly recursively
plot.tidem

Plot a tidal fit
secondsToCtime

Convert a time interval to a colon-separated string
topoInterpolate

Interpolate within a topography dataset
read.section

Read a section containing multiple CTD profiles
summary.ctd

Summarize a CTD object
ptPatm

Estimate atmospheric pressure in pt record
oce.plot.sticks

Draw a stick-plot diagram
summary.met

Summarize a met object
read.pt

Read an TDR temperature-depth recorder data file
schmitt

Schmitt's (1981) NACW temperature-salinity data
summary.adp

Summarize an ADP object
oceDebug

Print a debugging message
swViscosity

Seawater viscosity
redfieldPlankton

Redfield's (1934) Table II
summary.drifter

Summarize a drifter object
swSpice

Seawater spiciness
oceApprox

Interpolate with Reiniger-Ross algorithm
summary.coastline

Summarize a coastline data object
swSoundSpeed

Seawater sound speed
swDynamicHeight

Dynamic height of seawater profile
sunAngle

Solar angle as function of space and time.
tidem

Fit a tidal model to a timeseries
tidedata

Tidal constituent information
write.ctd

Write a CTD data object as a .csv file
swRho

Seawater density
swSTrho

Seawater salinity from temperature and density
swTFreeze

Seawater freezing temperature
summary.lobo

Summarize a lobo data object
tidemAstron

Do ephemeris calculations for tidem
topoMaritimes

Topographic dataset, showing Maritime region of Canada
summary.pt

Summarize a pt object
vectorShow

Show some values from a vector
velocityStatistics

Report statistics of ADP or ADV velocities.
summary.section

Summarize a CTD section
summary.tidem

Summarize a tide-model object
swTheta

Seawater potential temperature
summary.topo

Summarize a topography data object
swLapseRate

Seawater lapse rate
useHeading

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

Unwrap an angle that suffers modulo-360 problems
undriftTime

Correct for drift in instrument clock
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
a03

WOCE section a03
byteToBinary

Format bytes as binary
drifter-class

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

ARGO drifter dataset
imagep

Plot an image with a colour palette
loggerToc

Decode table-of-contents file from a datalogger
met

Sample meteorological object
enuToOtherAdp

Convert ADP from east-north-up coordinates to other coordinates
plot.cm

Plot cm (current meter) data
swN2

Squared buoyancy frequency for seawater
plot.section

Plot a CTD section
swSigma

Seawater density anomaly
wind

Wind dataset
time.oce

Extract time from an oce object
airHalifax

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

Earth magnetic declination
plot.windrose

Plot a wind rose diagram
oce-class

base class of oce package
read.topo

Read an topography file
resizableLabel

Provide axis names in adjustable sizes
sectionSmooth

Smooth a section (preliminary version that may change)
subset.oce

Subset an oce object
swTSrho

Seawater temperature from salinity and density
windrose-class

Class to store windrose data
accessors

Access or modify part of an Oce object
adp

ADP (acoustic-doppler profiler) dataset
ctimeToSeconds

Interpret a character string as a time interval
detrend

Detrend a set of observations
latFormat

Format a latitude
met-class

Class to store meteorological data
oce.as.POSIXlt

More general form of as.POSIXlt
oceSpectrum

Wrapper to give normalized spectrum
read.cm

Read a current-meter data file
read.coastline

Scan a coastline data file
sealevel-class

Class to store sealevel data
showMetadataItem

Show metadata item
retime

Adjust the time within Oce object
sectionGrid

Grid a section
summary.windrose

Summarize a windrose data object
swConductivity

Seawater conductivity
window.oce

Window an oce object by time or distance
topoWorld

Global topographic dataset at half-degree resolution
airRho

Air density
interpBarnes

Grid data using Barnes algorithm
despike

Remove spikes from a time series
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
oceSmooth

Smooth an oce object
rangeLimit

Substitute NA for data outside a range
read.met

Read a meteorological data file
read.oce

Read an oceanographic data file
riley

Riley's (1946) observation and theory of phytoplankton concentration
stickplot

Draw a stick-plot diagram
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
summary.adv

Summarize an ADV object
swDepth

Water depth
threenum

Calculate min, mean, and max values
topo-class

Class to store topographic data
webtide

Get a tidal prediction from a WebTide database
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates