Learn R Programming

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

oce (version 0.8-8)

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

Version

0.8-8

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

May 23rd, 2012

Functions in oce (0.8-8)

a03

WOCE section a03
adp

ADP (acoustic-doppler profiler) dataset
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
integrateTrapezoid

Use trapezoidal integration
adp-class

Class to store acoustic Doppler profiler data
as.drifter

Coerce data into drifter dataset
fullFilename

full name of file, including path
despike

Remove spikes from a time series
binAverage

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

Decode BCD to integer
as.ctd

Coerce data into ctd dataset
ctdUpdateHeader

Update a CTD header
adv

ADV (acoustic-doppler velocimeter) dataset
drawPalette

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

Find indices of tiems in an ordered vector
accessors

Access or modify part of an Oce object
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
coastlineSLE

Coastline of St Lawrence Estuary
ctd-class

Class to store hydrographic data
matchBytes

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

Convert lat/lon to x/y on earth
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
julianDay

Convert a POSIXt time to a Julian day
munk

Munk's (1966) temperature profile
fillGap

Fill a gap in an oce object
drawDirectionField

Draw a direction field
adv-class

Class to store acoustic Doppler velocimeter data
grad

Gradient of a matrix
echosounder

echosounder dataset
plot.tidem

Plot a tidal fit
latFormat

Format a latitude
airRho

Air density
geosecs235

GEOSECS station 235 data
ctdTrim

Trim start/end portions of a CTD cast
latlonFormat

Format a latitude-longitude pair
as.sealevel

Coerce data into sea-level dataset
ctimeToSeconds

Interpret a character string as a time interval
oce.plot.sticks

Draw a stick-plot diagram
plot.adv

Plot ADV data
abbreviateTimeLabels

Abbreviate a list of times by removing commonalities (e.g. year)
as.tdr

Create a TDR object
plot.echosounder

Plot echosounder data
as.windrose

Create a windrose object
GMTOffsetFromTz

Determine time offset from timezone
ctd

Seawater CTD profile
oce.write.table

Write the data portion of object to a file
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
cm-class

Class to store current meter data
cm

Current-meter record
ctdRaw

Seawater CTD profile, without trimming of extraneous data
drifter-class

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

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

Name an acoustic-doppler beam.
as.coastline

Coerce data into coastline dataset
as.lobo

Coerce data into lobo dataset
as.echosounder

Coerce data into echosounder dataset
plot.drifter

Plot drifter data
oce.plot.ts

Plot a time-series, obeying the timezone
coastlineHalifax

Coastline data set, showing Halifax Harbour
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
oceColors

Create a palette of colours
rangeLimit

Substitute NA for data outside a range
retime

Adjust the time within Oce object
is.beam

Determine coordinate system for acoustic-doppler device
coastline-class

Class to store coastline data
summary.sealevel

Summarize a sealevel object
byteToBinary

Format bytes as binary
as.met

Coerce data into met dataset
read.adv

Read an ADV data file
magic

Find the type of an oceanographic data file
summary.met

Summarize a met object
section-class

Class to store hydrographic section data
lonFormat

Format a longitude
makeSection

Bind CTD profiles together into a cross section
summary.coastline

Summarize a coastline data object
read.oce

Read an oceanographic data file
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
plot.windrose

Plot a wind rose diagram
swAbsoluteSalinity

Seawater absolute salinity, as defined in TEOS-10.
oceEdit

Edit an oce object
plotProfile

Plot a CTD profile of various quantities
plotScan

Plot seawater data in a low-level fashion
as.topo

Coerce data into topo dataset
read.adp

Read an ADP data file
summary.adv

Summarize an ADV object
riley

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

Redfield's (1934) NO3 and PO4 data
redfieldNC

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

Sort a section
sealevel-class

Class to store sealevel data
summary.tdr

Summarize a tdr object
summary.echosounder

Summarize an echosounder object
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
drifter

ARGO drifter dataset
tidem

Fit a tidal model to a timeseries
swDynamicHeight

Dynamic height of seawater profile
sectionGrid

Grid a section
decimate

Smooth and decimate an oce object
threenum

Calculate min, mean, and max values
read.lobo

Read a lobo data file
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
header

Return the header for an Oce data object
undriftTime

Correct for drift in instrument clock
useHeading

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

Seawater salinity from temperature and density
tidemAstron

Do ephemeris calculations for tidem
interpBarnes

Grid data using Barnes algorithm
teos

Interface to TEOS-10 library
coriolis

Coriolis parameter on rotating earth
velocityStatistics

Report statistics of ADP or ADV velocities.
plot.section

Plot a CTD section
lobo

lobo dataset
swSigma

Seawater density anomaly
plot.tdr

Plot tdr (temperature-depth recorder) data
moonAngle

Lunar angle as function of space and time.
parseLatLon

Parse a latitude or longitude string
enuToOtherAdp

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

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

Convert a POSIXt time to a sidereal time
plot.adp

Plot ADP data
topoInterpolate

Interpolate within a topography dataset
plot.coastline

Plot a coastline
read.cm

Read a current-meter data file
integerToAscii

Decode integer to corresponding ASCII code
summary.drifter

Summarize a drifter object
summary.adp

Summarize an ADP object
window.oce

Window an oce object by time or distance
matrixSmooth

Smooth a matrix.
formatCI

Format a confidence interval in parenthetic notation
swViscosity

Seawater viscosity
summary.topo

Summarize a topography data object
swSpice

Seawater spiciness
swBeta

Seawater haline contraction coefficient
sectionSmooth

Smooth a section (preliminary version that may change)
summary.ctd

Summarize a CTD object
tdrTrim

Trim start/end portions of a tdr cast
numberAsPOSIXct

Convert a numeric time to a POSIXct time
swAlpha

Seawater thermal expansion coefficient
swDepth

Water depth
swRho

Seawater density
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
tdr

tdr (temperature-data recorder) dataset
plot.cm

Plot cm (current meter) data
wilson

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

Scan a coastline data file
secondsToCtime

Convert a time interval to a colon-separated string
swLapseRate

Seawater lapse rate
plot.ctd

Plot seawater CTD data
RRprofile

Seawater profile used by Reiniger and Ross (1968)
swConservativeTemperature

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

Find the ocean bottom in an echosounder object
tidedata

Tidal constituent information
ctdDecimate

Decimate a CTD profile
ctdAddColumn

Add a column to a CTD file
geodDist

Geodesic distance on earth
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
swN2

Squared buoyancy frequency for seawater
tdrPatm

Estimate atmospheric pressure in tdr record
vectorShow

Show some values from a vector
imagep

Plot an image with a colour palette
lobo-class

Class to store LOBO data
julianCenturyAnomaly

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

Seawater freezing temperature
swTheta

Seawater potential temperature
plot.met

Plot meteorological data
prettyPosition

Round a geographical positions in degrees, minutes, and seconds
met-class

Class to store meteorological data
teosSetLibrary

Set location of TEOS-10 library
time.oce

Extract time from an oce object
summary.cm

Summarize a cm (current meter) object
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
resizableLabel

Provide axis names in adjustable sizes
tidemVuf

Do ephemeris calculations for tidem
plot.lobo

Plot lobo data
topo-class

Class to store topographic data
rescale

Rescale values to lie in a given range
read.topo

Read an topography file
section

Seawater CTD section
read.ctd

Read a CTD data file
stickplot

Draw a stick-plot diagram
summary.windrose

Summarize a windrose data object
sunAngle

Solar angle as function of space and time.
swSigmaT

Seawater quasi-potential density anomaly
unabbreviateYear

Determine year from various abbreviations
write.ctd

Write a CTD data object as a .csv file
webtide

Get a tidal prediction from a WebTide database
tidem-class

Class to store tidal-constituent models
angleRemap

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

Detrend a set of observations
drag

Wind drag coefficient
oce.as.POSIXlt

More general form of as.POSIXlt
echosounder-class

Class to store echosounder data
head

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

Plot sealevel data
magneticDeclination

Earth magneticDeclination
makeFilter

Make a digital filter
soi

Southern Oscillation Index
predict.tidem

Predict a time series from a tidal model
redfieldPlankton

Redfield's (1934) Table II
swConductivity

Seawater thermal conductivity
met

Sample meteorological object
swSpecificHeat

Seawater specific heat
topoMaritimes

Topographic dataset, showing Maritime region of Canada
oce.axis.POSIXct

Modified version of axis.POSIXct
applyMagneticDeclination

Earth magnetic declination
oceDebug

Print a debugging message
plotInset

Plot an inset diagram
read.met

Read a meteorological data file
summary.tidem

Summarize a tide-model object
beamUnattenuateAdp

Unattenuate ADP beam signal strength
showMetadataItem

Show metadata item
swSigmaTheta

Seawater potential density anomaly
coastlineWorld

World coastline
beamToXyz

Convert ADV or ADP data between various coordinate systems
addColumn

Add a column to an oce object
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
gravity

Acceleration due to earth gravity
extract

Extract data from an oce object
swTSrho

Seawater temperature from salinity and density
oce-class

base class of oce package
oceApprox

Interpolate with Reiniger-Ross algorithm
tdr-class

Class to store temperature-depth recorder data
oceBisect

Find the root of a function by bisection
wind

Wind dataset
oceSpectrum

Wrapper to give normalized spectrum
loggerToc

Decode table-of-contents file from a datalogger
oceFilter

Filter a time-series, possibly recursively
oceSmooth

Smooth an oce object
plotTS

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

Welch periodogram
plot.topo

Plot topography data
read.echosounder

Read an echosounder data file
read.section

Read a section containing multiple CTD profiles
read.drifter

Read a drifter data file
read.tdr

Read an TDR temperature-depth recorder data file
read.sealevel

Read a sea-level data file
schmitt

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

Sea-level data set, from Halifax Harbour
processingLog

Add an item to object processingLog
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
subset.oce

Subset an oce object
summary.section

Summarize a CTD section
summary.lobo

Summarize a lobo data object
swSoundSpeed

Seawater sound speed
topoWorld

Global topographic dataset at half-degree resolution
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
windrose-class

Class to store windrose data