Learn R Programming

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

oce (version 0.8-10)

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-10

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

June 12th, 2012

Functions in oce (0.8-10)

as.echosounder

Coerce data into echosounder dataset
ctdUpdateHeader

Update a CTD header
a03

WOCE section a03
adp-class

Class to store acoustic Doppler profiler data
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
addColumn

Add a column to an oce object
extract

Extract data from an oce object
grad

Gradient of a matrix
adv-class

Class to store acoustic Doppler velocimeter data
lobo-class

Class to store LOBO data
cm

Current-meter record
prettyPosition

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

Decode BCD to integer
ctdRaw

Seawater CTD profile, without trimming of extraneous data
as.tdr

Create a TDR object
beamName

Name an acoustic-doppler beam.
geodXy

Convert lat/lon to x/y on earth
coriolis

Coriolis parameter on rotating earth
as.windrose

Create a windrose object
as.coastline

Coerce data into coastline dataset
beamToXyz

Convert ADV or ADP data between various coordinate systems
drag

Wind drag coefficient
ctdTrim

Trim start/end portions of a CTD cast
echosounder

echosounder dataset
oce.write.table

Write the data portion of object to a file
as.topo

Coerce data into topo dataset
as.lisst

Coerce data into a lisst object
header

Return the header for an Oce data object
is.beam

Determine coordinate system for acoustic-doppler device
coastline-class

Class to store coastline data
detrend

Detrend a set of observations
coastlineHalifax

Coastline data set, showing Halifax Harbour
echosounder-class

Class to store echosounder data
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
accessors

Access or modify part of an Oce object
cm-class

Class to store current meter data
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
geosecs235

GEOSECS station 235 data
plot.sealevel

Plot sealevel data
RRprofile

Seawater profile used by Reiniger and Ross (1968)
airHalifax

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

Fill a gap in an oce object
adv

ADV (acoustic-doppler velocimeter) dataset
adp

ADP (acoustic-doppler profiler) dataset
ctdDecimate

Decimate a CTD profile
beamUnattenuateAdp

Unattenuate ADP beam signal strength
read.echosounder

Read an echosounder data file
enuToOtherAdp

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

Format geographical positions to degrees, minutes, and hemispheres
byteToBinary

Format bytes as binary
binmapAdp

Bin-map an ADP object
applyMagneticDeclination

Earth magnetic declination
head

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

Grid data using Barnes algorithm
drifter-class

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

Find the ocean bottom in an echosounder object
binAverage

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

Convert from ecliptical to equatorial coordinates
ctdAddColumn

Add a column to a CTD file
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
as.met

Coerce data into met dataset
angleRemap

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

Coastline of St Lawrence Estuary
oceApprox

Interpolate with Reiniger-Ross algorithm
lisst

LISST dataset
magneticDeclination

Earth magneticDeclination
oceColors

Create a palette of colours
oceDebug

Print a debugging message
met-class

Class to store meteorological data
drawDirectionField

Draw a direction field
integrateTrapezoid

Use trapezoidal integration
loggerToc

Decode table-of-contents file from a datalogger
oce.as.raw

A version of as.raw() that clips data to prevent warnings
drawPalette

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

Find the type of an oceanographic data file
julianCenturyAnomaly

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

Munk's (1966) temperature profile
met

Sample meteorological object
enuToOtherAdv

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

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

Read a lobo data file
oce.as.POSIXlt

More general form of as.POSIXlt
oce.axis.POSIXct

Modified version of axis.POSIXct
rescale

Rescale values to lie in a given range
integerToAscii

Decode integer to corresponding ASCII code
geodDist

Geodesic distance on earth
oce.plot.sticks

Draw a stick-plot diagram
oceBisect

Find the root of a function by bisection
lonFormat

Format a longitude
plot.ctd

Plot seawater CTD data
plotTaylor

Plot a model-data comparison diagram.
read.lisst

Read a LISST data file
oceConvolve

Convolve two time series
plot.coastline

Plot a coastline
oce-class

base class of oce package
rangeLimit

Substitute NA for data outside a range
plotInset

Plot an inset diagram
swN2

Squared buoyancy frequency for seawater
predict.tidem

Predict a time series from a tidal model
swSigma

Seawater density anomaly
window.oce

Window an oce object by time or distance
moonAngle

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

Read an ADV data file
summary.met

Summarize a met object
matchBytes

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

Sort a section
sunAngle

Solar angle as function of space and time.
summary.adv

Summarize an ADV object
parseLatLon

Parse a latitude or longitude string
julianDay

Convert a POSIXt time to a Julian day
plot.tidem

Plot a tidal fit
summary.coastline

Summarize a coastline data object
oceSmooth

Smooth an oce object
latFormat

Format a latitude
makeSection

Bind CTD profiles together into a cross section
summary.windrose

Summarize a windrose data object
swDynamicHeight

Dynamic height of seawater profile
read.oce

Read an oceanographic data file
swTFreeze

Seawater freezing temperature
read.sealevel

Read a sea-level data file
write.ctd

Write a CTD data object as a .csv file
swViscosity

Seawater viscosity
oce.plot.ts

Plot a time-series, obeying the timezone
swSoundSpeed

Seawater sound speed
plot.lisst

Plot LISST data
plot.adv

Plot ADV data
plotProfile

Plot a CTD profile of various quantities
oceFilter

Filter a time-series, possibly recursively
tidedata

Tidal constituent information
plot.section

Plot a CTD section
swSTrho

Seawater salinity from temperature and density
lobo

lobo dataset
sectionGrid

Grid a section
section-class

Class to store hydrographic section data
read.ctd

Read a CTD data file
plot.echosounder

Plot echosounder data
plot.drifter

Plot drifter data
plot.met

Plot meteorological data
latlonFormat

Format a latitude-longitude pair
topoMaritimes

Topographic dataset, showing Maritime region of Canada
swDepth

Water depth
read.tdr

Read an TDR temperature-depth recorder data file
swLapseRate

Seawater lapse rate
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
swAbsoluteSalinity

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

Read a current-meter data file
summary.tdr

Summarize a tdr object
read.section

Read a section containing multiple CTD profiles
lisst-class

Class to store LISST data
summary.lisst

Summarize a LISST object
windrose-class

Class to store windrose data
summary.cm

Summarize a cm (current meter) object
read.coastline

Scan a coastline data file
plot.windrose

Plot a wind rose diagram
oceContour

Contour with ability to flip x and y
oceEdit

Edit an oce object
as.drifter

Coerce data into drifter dataset
read.met

Read a meteorological data file
riley

Riley's (1946) observation and theory of phytoplankton concentration
summary.sealevel

Summarize a sealevel object
airRho

Air density
redfieldNC

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

Seawater quasi-potential density anomaly
siderealTime

Convert a POSIXt time to a sidereal time
matrixSmooth

Smooth a matrix.
abbreviateTimeLabels

Abbreviate a list of times by removing commonalities (e.g. year)
read.adp

Read an ADP data file
secondsToCtime

Convert a time interval to a colon-separated string
plot.tdr

Plot tdr (temperature-depth recorder) data
swConservativeTemperature

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

Seawater specific heat
resizableLabel

Provide axis names in adjustable sizes
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
ctd-class

Class to store hydrographic data
coastlineWorld

World coastline
as.sealevel

Coerce data into sea-level dataset
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
schmitt

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

Wilson's (1963) table of seafloor spreading
section

Seawater CTD section
unabbreviateYear

Determine year from various abbreviations
tdrTrim

Trim start/end portions of a tdr cast
formatCI

Format a confidence interval in parenthetic notation
read.topo

Read an topography file
read.drifter

Read a drifter data file
summary.lobo

Summarize a lobo data object
plotScan

Plot seawater data in a low-level fashion
summary.tidem

Summarize a tide-model object
threenum

Calculate min, mean, and max values
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
gravity

Acceleration due to earth gravity
swConductivity

Seawater thermal conductivity
swBeta

Seawater haline contraction coefficient
tdr

tdr (temperature-data recorder) dataset
summary.section

Summarize a CTD section
swRho

Seawater density
summary.ctd

Summarize a CTD object
tdr-class

Class to store temperature-depth recorder data
tidem

Fit a tidal model to a timeseries
swSigmaTheta

Seawater potential density anomaly
swTheta

Seawater potential temperature
teosSetLibrary

Set location of TEOS-10 library
stickplot

Draw a stick-plot diagram
summary.drifter

Summarize a drifter object
topoInterpolate

Interpolate within a topography dataset
teos

Interface to TEOS-10 library
plot.topo

Plot topography data
swAlpha

Seawater thermal expansion coefficient
tidemVuf

Do ephemeris calculations for tidem
topo-class

Class to store topographic data
swSpice

Seawater spiciness
swTSrho

Seawater temperature from salinity and density
velocityStatistics

Report statistics of ADP or ADV velocities.
subset.oce

Subset an oce object
imagep

Plot an image with a colour palette
redfieldNP

Redfield's (1934) NO3 and PO4 data
plot.lobo

Plot lobo data
plot.adp

Plot ADP data
retime

Adjust the time within Oce object
summary.echosounder

Summarize an echosounder object
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
summary.adp

Summarize an ADP object
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
webtide

Get a tidal prediction from a WebTide database
tdrPatm

Estimate atmospheric pressure in tdr record
numberAsPOSIXct

Convert a numeric time to a POSIXct time
vectorShow

Show some values from a vector
useHeading

Replace the heading for one instrument with the heading for another
tidem-class

Class to store tidal-constituent models
time.oce

Extract time from an oce object
decimate

Smooth and decimate an oce object
as.ctd

Coerce data into ctd dataset
despike

Remove spikes from a time series
as.lobo

Coerce data into lobo dataset
GMTOffsetFromTz

Determine time offset from timezone
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
drifter

ARGO drifter dataset
ctd

Seawater CTD profile
ctimeToSeconds

Interpret a character string as a time interval
fullFilename

full name of file, including path
makeFilter

Make a digital filter
sealevelHalifax

Sea-level data set, from Halifax Harbour
showMetadataItem

Show metadata item
soi

Southern Oscillation Index
sealevel-class

Class to store sealevel data
summary.topo

Summarize a topography data object
findInOrdered

Find indices of tiems in an ordered vector
oceSpectrum

Wrapper to give normalized spectrum
plot.cm

Plot cm (current meter) data
pwelch

Welch periodogram
processingLog

Add an item to object processingLog
redfieldPlankton

Redfield's (1934) Table II
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
sectionSmooth

Smooth a section (preliminary version that may change)
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
tidemAstron

Do ephemeris calculations for tidem
wind

Wind dataset
undriftTime

Correct for drift in instrument clock
topoWorld

Global topographic dataset at half-degree resolution