Learn R Programming

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

oce (version 0.8-9)

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

10,616

Version

0.8-9

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

May 25th, 2012

Functions in oce (0.8-9)

a03

WOCE section a03
oce.write.table

Write the data portion of object to a file
read.sealevel

Read a sea-level data file
subset.oce

Subset an oce object
header

Return the header for an Oce data object
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
tidem-class

Class to store tidal-constituent models
makeFilter

Make a digital filter
drifter

ARGO drifter dataset
ctdUpdateHeader

Update a CTD header
coastlineHalifax

Coastline data set, showing Halifax Harbour
abbreviateTimeLabels

Abbreviate a list of times by removing commonalities (e.g. year)
ctd-class

Class to store hydrographic data
findBottom

Find the ocean bottom in an echosounder object
angleRemap

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

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

Format a latitude-longitude pair
plot.lobo

Plot lobo data
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
airRho

Air density
beamName

Name an acoustic-doppler beam.
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
grad

Gradient of a matrix
as.tdr

Create a TDR object
beamUnattenuateAdp

Unattenuate ADP beam signal strength
coastlineWorld

World coastline
drawPalette

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

Plot an inset diagram
cm-class

Class to store current meter data
head

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

Add a column to an oce object
as.met

Coerce data into met dataset
as.echosounder

Coerce data into echosounder dataset
echosounder

echosounder dataset
as.lobo

Coerce data into lobo dataset
julianDay

Convert a POSIXt time to a Julian day
as.sealevel

Coerce data into sea-level dataset
ctdRaw

Seawater CTD profile, without trimming of extraneous data
decimate

Smooth and decimate an oce object
byteToBinary

Format bytes as binary
despike

Remove spikes from a time series
as.windrose

Create a windrose object
fullFilename

full name of file, including path
as.topo

Coerce data into topo dataset
as.ctd

Coerce data into ctd dataset
echosounder-class

Class to store echosounder data
ctdAddColumn

Add a column to a CTD file
enuToOtherAdv

Convert ADV from east-north-up coordinates to other coordinates
drifter-class

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

GEOSECS station 235 data
fillGap

Fill a gap in an oce object
adp

ADP (acoustic-doppler profiler) dataset
met-class

Class to store meteorological data
cm

Current-meter record
coastline-class

Class to store coastline data
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
met

Sample meteorological object
plot.drifter

Plot drifter data
loggerToc

Decode table-of-contents file from a datalogger
prettyPosition

Round a geographical positions in degrees, minutes, and seconds
matrixSmooth

Smooth a matrix.
ctdDecimate

Decimate a CTD profile
oceBisect

Find the root of a function by bisection
coriolis

Coriolis parameter on rotating earth
applyMagneticDeclination

Earth magnetic declination
binAverage

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

Use trapezoidal integration
extract

Extract data from an oce object
bcdToInteger

Decode BCD to integer
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
plot.coastline

Plot a coastline
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
lonFormat

Format a longitude
drawDirectionField

Draw a direction field
plot.sealevel

Plot sealevel data
oce-class

base class of oce package
beamToXyz

Convert ADV or ADP data between various coordinate systems
read.adv

Read an ADV data file
oceSpectrum

Wrapper to give normalized spectrum
read.met

Read a meteorological data file
munk

Munk's (1966) temperature profile
oce.as.POSIXlt

More general form of as.POSIXlt
matchBytes

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

Filter a time-series, possibly recursively
summary.met

Summarize a met object
read.lobo

Read a lobo data file
plot.windrose

Plot a wind rose diagram
ctdTrim

Trim start/end portions of a CTD cast
sectionGrid

Grid a section
sunAngle

Solar angle as function of space and time.
processingLog

Add an item to object processingLog
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
moonAngle

Lunar angle as function of space and time.
read.cm

Read a current-meter data file
stickplot

Draw a stick-plot diagram
magneticDeclination

Earth magneticDeclination
section

Seawater CTD section
showMetadataItem

Show metadata item
swBeta

Seawater haline contraction coefficient
read.tdr

Read an TDR temperature-depth recorder data file
sectionSmooth

Smooth a section (preliminary version that may change)
resizableLabel

Provide axis names in adjustable sizes
plot.adv

Plot ADV data
oce.plot.sticks

Draw a stick-plot diagram
plotTS

Plot temperature-salinity diagram for seawater (CTD) data
swSigma

Seawater density anomaly
swSTrho

Seawater salinity from temperature and density
pwelch

Welch periodogram
summary.coastline

Summarize a coastline data object
read.echosounder

Read an echosounder data file
swTSrho

Seawater temperature from salinity and density
tidemVuf

Do ephemeris calculations for tidem
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
siderealTime

Convert a POSIXt time to a sidereal time
plot.ctd

Plot seawater CTD data
swAbsoluteSalinity

Seawater absolute salinity, as defined in TEOS-10.
plot.cm

Plot cm (current meter) data
read.adp

Read an ADP data file
swSigmaTheta

Seawater potential density anomaly
swSpice

Seawater spiciness
summary.echosounder

Summarize an echosounder object
summary.topo

Summarize a topography data object
redfieldPlankton

Redfield's (1934) Table II
redfieldNC

Redfield's (1934) NO3 and total CO2 data
tidemAstron

Do ephemeris calculations for tidem
rescale

Rescale values to lie in a given range
tdr-class

Class to store temperature-depth recorder data
tdrTrim

Trim start/end portions of a tdr cast
swTFreeze

Seawater freezing temperature
sectionSort

Sort a section
plotProfile

Plot a CTD profile of various quantities
swRho

Seawater density
summary.adv

Summarize an ADV object
sealevelHalifax

Sea-level data set, from Halifax Harbour
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
swSoundSpeed

Seawater sound speed
tdrPatm

Estimate atmospheric pressure in tdr record
time.oce

Extract time from an oce object
swTheta

Seawater potential temperature
swDynamicHeight

Dynamic height of seawater profile
wind

Wind dataset
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
summary.drifter

Summarize a drifter object
summary.tidem

Summarize a tide-model object
teos

Interface to TEOS-10 library
threenum

Calculate min, mean, and max values
webtide

Get a tidal prediction from a WebTide database
velocityStatistics

Report statistics of ADP or ADV velocities.
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
teosSetLibrary

Set location of TEOS-10 library
read.ctd

Read a CTD data file
swSigmaT

Seawater quasi-potential density anomaly
read.coastline

Scan a coastline data file
tdr

tdr (temperature-data recorder) dataset
topoMaritimes

Topographic dataset, showing Maritime region of Canada
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
topoWorld

Global topographic dataset at half-degree resolution
unabbreviateYear

Determine year from various abbreviations
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
vectorShow

Show some values from a vector
wilson

Wilson's (1963) table of seafloor spreading
GMTOffsetFromTz

Determine time offset from timezone
as.coastline

Coerce data into coastline dataset
is.beam

Determine coordinate system for acoustic-doppler device
oceApprox

Interpolate with Reiniger-Ross algorithm
gravity

Acceleration due to earth gravity
read.drifter

Read a drifter data file
summary.windrose

Summarize a windrose data object
swConductivity

Seawater thermal conductivity
summary.tdr

Summarize a tdr object
summary.ctd

Summarize a CTD object
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
section-class

Class to store hydrographic section data
write.ctd

Write a CTD data object as a .csv file
RRprofile

Seawater profile used by Reiniger and Ross (1968)
adv-class

Class to store acoustic Doppler velocimeter data
accessors

Access or modify part of an Oce object
adp-class

Class to store acoustic Doppler profiler data
ctd

Seawater CTD profile
enuToOtherAdp

Convert ADP from east-north-up coordinates to other coordinates
oceDebug

Print a debugging message
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
oce.plot.ts

Plot a time-series, obeying the timezone
detrend

Detrend a set of observations
formatCI

Format a confidence interval in parenthetic notation
tidedata

Tidal constituent information
ctimeToSeconds

Interpret a character string as a time interval
interpBarnes

Grid data using Barnes algorithm
oceColors

Create a palette of colours
drag

Wind drag coefficient
integerToAscii

Decode integer to corresponding ASCII code
geodDist

Geodesic distance on earth
plot.tdr

Plot tdr (temperature-depth recorder) data
sealevel-class

Class to store sealevel data
plotScan

Plot seawater data in a low-level fashion
findInOrdered

Find indices of tiems in an ordered vector
magic

Find the type of an oceanographic data file
read.topo

Read an topography file
imagep

Plot an image with a colour palette
numberAsPOSIXct

Convert a numeric time to a POSIXct time
lobo-class

Class to store LOBO data
summary.cm

Summarize a cm (current meter) object
oce.axis.POSIXct

Modified version of axis.POSIXct
adv

ADV (acoustic-doppler velocimeter) dataset
secondsToCtime

Convert a time interval to a colon-separated string
parseLatLon

Parse a latitude or longitude string
coastlineSLE

Coastline of St Lawrence Estuary
as.drifter

Coerce data into drifter dataset
plot.echosounder

Plot echosounder data
swDepth

Water depth
plot.section

Plot a CTD section
oceEdit

Edit an oce object
plot.adp

Plot ADP data
redfieldNP

Redfield's (1934) NO3 and PO4 data
schmitt

Schmitt's (1981) NACW temperature-salinity data
geodXy

Convert lat/lon to x/y on earth
latFormat

Format a latitude
plot.met

Plot meteorological data
rangeLimit

Substitute NA for data outside a range
oceSmooth

Smooth an oce object
swAlpha

Seawater thermal expansion coefficient
windrose-class

Class to store windrose data
makeSection

Bind CTD profiles together into a cross section
lobo

lobo dataset
undriftTime

Correct for drift in instrument clock
summary.adp

Summarize an ADP object
summary.section

Summarize a CTD section
topoInterpolate

Interpolate within a topography dataset
read.oce

Read an oceanographic data file
julianCenturyAnomaly

Convert a Julian-Day number to a time in julian centuries since noon on January 1, 1900.
plot.topo

Plot topography data
plot.tidem

Plot a tidal fit
predict.tidem

Predict a time series from a tidal model
read.section

Read a section containing multiple CTD profiles
swViscosity

Seawater viscosity
riley

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

Fit a tidal model to a timeseries
window.oce

Window an oce object by time or distance
retime

Adjust the time within Oce object
soi

Southern Oscillation Index
summary.sealevel

Summarize a sealevel object
summary.lobo

Summarize a lobo data object
swConservativeTemperature

Seawater conservative temperature, as defined in TEOS-10.
swLapseRate

Seawater lapse rate
swSpecificHeat

Seawater specific heat
swN2

Squared buoyancy frequency for seawater
topo-class

Class to store topographic data
useHeading

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

Convert ADP to enu coordinates, from any other coordinates