Learn R Programming

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

oce (version 0.9-12)

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

Version

0.9-12

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

July 5th, 2013

Functions in oce (0.9-12)

as.drifter

Coerce data into drifter dataset
byteToBinary

Format bytes as binary
echosounder-class

Class to store echosounder data
fillGap

Fill a gap in an oce object
lisst

LISST dataset
summary.lobo

Summarize a lobo data object
swAbsoluteSalinity

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

Sea-level data set acquired in 1975 at Tuktoyaktuk
read.section

Read a section containing multiple CTD profiles
as.lobo

Coerce data into lobo dataset
beamName

Name an acoustic-doppler beam.
adp-class

Class to store acoustic Doppler profiler data
extract

Extract data from an oce object
as.windrose

Create a windrose object
as.section

Coerce ctd data into section dataset
cm

Current-meter record
plotTS

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

Read an oceanographic data file
drawPalette

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

Seawater CTD profile, without trimming of extraneous data
ctdUpdateHeader

Update a CTD header
coastline-class

Class to store coastline data
subset.oce

Subset an oce object
map2lonlat

Find lon-lat coordinates of a point on a map
adv-class

Class to store acoustic Doppler velocimeter data
enuToOtherAdp

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

Determine time offset from timezone
as.sealevel

Coerce data into sea-level dataset
beamToXyz

Convert ADV or ADP data between various coordinate systems
lonFormat

Format a longitude
as.met

Coerce data into met dataset
RRprofile

Seawater profile used by Reiniger and Ross (1968)
as.echosounder

Coerce data into echosounder dataset
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
coriolis

Coriolis parameter on rotating earth
drifter-class

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

Decode BCD to integer
binAverage

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

Compensate ADP signal strength for spherical spreading
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
as.lisst

Coerce data into a lisst object
mapImage

Plot an image on a existing map
drifter

ARGO drifter dataset
giss

Time series of NASA/GISS land-ocean temperature index
adv

ADV (acoustic-doppler velocimeter) dataset
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
decimate

Smooth and decimate an oce object
coastlineHalifax

Coastline data set, showing Halifax Harbour
geodGc

Find great-circle segments between two points on earth
errorbars

Draw error bars on an existing xy diagram
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
latFormat

Format a latitude
echosounder

echosounder dataset
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
prettyPosition

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

Geodesic distance on earth
mapPoints

Plot points on a existing map
matrixSmooth

Smooth a matrix.
addColumn

Add a column to an oce object
makeFilter

Make a digital filter
lobo-class

Class to store LOBO data
plot.tidem

Plot a tidal fit
mapZones

Plot zones on an existing map
summary.coastline

Summarize a coastline data object
oceans

Geometries of the five world oceans.
oce.axis.POSIXct

Modified version of axis.POSIXct
swBeta

Seawater haline contraction coefficient
endeavour

Cook's Endeavour cruise track
coastlineSLE

Coastline of St Lawrence Estuary
fullFilename

full name of file, including path
tidem-class

Class to store tidal-constituent models
formatCI

Format a confidence interval in parenthetic notation
adp

ADP (acoustic-doppler profiler) dataset
swRho

Seawater density
section-class

Class to store hydrographic section data
oceColors

Create a palette of colours
rescale

Rescale values to lie in a given range
redfieldNC

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

Plot lobo data
met-class

Class to store meteorological data
imagep

Plot an image with a colour palette
geodXy

Convert lat/lon to x/y on earth
integrateTrapezoid

Use trapezoidal integration
velocityStatistics

Report statistics of ADP or ADV velocities.
findBottom

Find the ocean bottom in an echosounder object
findInOrdered

Find indices of tiems in an ordered vector
plot.cm

Plot cm (current meter) data
integerToAscii

Decode integer to corresponding ASCII code
plot.adp

Plot ADP data
grad

Gradient of a matrix
mapLocator

Locate points on a existing map
plotProfile

Plot a CTD profile of various quantities
levitus

Sea-surface temperature and salinity
is.beam

Determine coordinate system for acoustic-doppler device
oce-class

base class of oce package
gravity

Acceleration due to earth gravity
ocePmatch

Partial matching of character strings or numbers
mapPlot

Plot a map
matchBytes

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

Draw a polar plot.
plot.coastline

Plot a coastline
oceContour

Contour with ability to flip x and y
oce.as.raw

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

Lunar angle as function of space and time.
plot.topo

Plot topography data
oce.as.POSIXlt

More general form of as.POSIXlt
papa

OWS Papa hydrographic record during 2010
plot.ctd

Plot seawater CTD data
parseLatLon

Parse a latitude or longitude string
read.sealevel

Read a sea-level data file
oceSmooth

Smooth an oce object
plot.section

Plot a CTD section
oceBisect

Find the root of a function by bisection
oceConvolve

Convolve two time series
oce.write.table

Write the data portion of object to a file
oceFilter

Filter a time-series, possibly recursively
oce.plot.ts

Plot a time-series, obeying the timezone
wind

Wind dataset
oceMagic

Find the type of an oceanographic data file
summary.drifter

Summarize a drifter object
read.lobo

Read a lobo data file
plot.windrose

Plot a wind rose diagram
plot.met

Plot meteorological data
read.topo

Read an topography file
plot.lisst

Plot LISST data
read.met

Read a meteorological data file
sealevelHalifax

Sea-level data set, from Halifax Harbour
summary.adp

Summarize an ADP object
angleRemap

Convert an angle from the 0:360 range to -180:180
summary.adv

Summarize an ADV object
topoInterpolate

Interpolate within a topography dataset
unwrapAngle

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

Summarize a topography data object
summary.sealevel

Summarize a sealevel object
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
as.coastline

Coerce data into coastline dataset
plotInset

Plot an inset diagram
siderealTime

Convert a POSIXt time to a sidereal time
plotTaylor

Plot a model-data comparison diagram.
summary.tdr

Summarize a tdr object
plotSticks

Draw a stick-plot diagram
read.tdr

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

Summarize a cm (current meter) object
summary.section

Summarize a CTD section
swSoundAbsorption

Seawater sound absorption in dB/m
swAlpha

Seawater thermal expansion coefficient
swViscosity

Seawater viscosity
swSoundSpeed

Seawater sound speed
swLapseRate

Seawater lapse rate
swConductivity

Seawater thermal conductivity
swSCTp

Seawater salinity from electrical conductivity, temperature and pressure
binmapAdp

Bin-map an ADP object
redfieldNP

Redfield's (1934) NO3 and PO4 data
swDepth

Water depth
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
ctd

Seawater CTD profile
swN2

Squared buoyancy frequency for seawater
resizableLabel

Provide axis names in adjustable sizes
drawDirectionField

Draw a direction field
webtide

Get a tidal prediction from a WebTide database
drag

Wind drag coefficient
toEnuAdv

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

Summarize a met object
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
tdr-class

Class to store temperature-depth recorder data
read.coastline

Scan a coastline data file
schmitt

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

Substitute NA for data outside a range
swSigmaTheta

Seawater potential density anomaly
swSigma

Seawater density anomaly
swDynamicHeight

Dynamic height of seawater profile
summary.windrose

Summarize a windrose data object
sunAngle

Solar angle as function of space and time.
topo-class

Class to store topographic data
swSpecificHeat

Seawater specific heat
threenum

Calculate min, mean, and max values
tidemVuf

Do ephemeris calculations for tidem
latlonFormat

Format a latitude-longitude pair
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
turbulence

Grant et al. (1962) turbulence data
munk

Munk's (1966) temperature profile
read.adv

Read an ADV data file
topoWorld

Global topographic dataset at half-degree resolution
write.ctd

Write a CTD data object as a .csv file
riley

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

Seawater spiciness
time.oce

Extract time from an oce object
swSigmaT

Seawater quasi-potential density anomaly
vectorShow

Show some values from a vector
useHeading

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

Air density
a03

WOCE section a03
as.ctd

Coerce data into ctd dataset
ctimeToSeconds

Interpret a character string as a time interval
detrend

Detrend a set of observations
as.topo

Coerce data into topo dataset
ctdAddColumn

Add a column to a CTD file
lobo

lobo dataset
head

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

Earth magneticDeclination
mapContour

Plot contours on a existing map
mapPolygon

Plot a polygon on a existing map
read.ctd

Read a CTD data file
lisst-class

Class to store LISST data
read.echosounder

Read an echosounder data file
oceEdit

Edit an oce object
plot.adv

Plot ADV data
processingLog

Add an item to object processingLog
read.drifter

Read a drifter data file
swSTrho

Seawater salinity from temperature and density
plot.sealevel

Plot sealevel data
ctdTrim

Trim start/end portions of a CTD cast
sectionSort

Sort a section
julianCenturyAnomaly

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

Seawater freezing temperature
tdr

tdr (temperature-data recorder) dataset
summary.echosounder

Summarize an echosounder object
summary.ctd

Summarize a CTD object
loggerToc

Decode table-of-contents file from a datalogger
mapText

Plot text on a existing map
summary.lisst

Summarize a LISST object
undriftTime

Correct for drift in instrument clock
geosecs235

GEOSECS station 235 data
plotScan

Plot seawater data in a low-level fashion
cm-class

Class to store current meter data
pwelch

Welch periodogram
read.cm

Read a current-meter data file
coastlineWorld

World coastline
secondsToCtime

Convert a time interval to a colon-separated string
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
window.oce

Window an oce object by time or distance
enuToOtherAdv

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

Grid data using Barnes algorithm
julianDay

Convert a POSIXt time to a Julian day
makeSection

Bind CTD profiles together into a cross section
redfieldPlankton

Redfield's (1934) Table II
plot.tdr

Plot tdr (temperature-depth recorder) data
topoMaritimes

Topographic dataset, showing Maritime region of Canada
sealevel-class

Class to store sealevel data
sectionSmooth

Smooth a section (preliminary version that may change)
section

Seawater CTD section
soi

Southern Oscillation Index
mapLines

Plot lines on a existing map
mapMeridians

Plot meridians on an existing map
swTSrho

Seawater temperature from salinity and density
summary.tidem

Summarize a tide-model object
met

Sample meteorological object
oceApprox

Interpolate with Reiniger-Ross algorithm
oceSpectrum

Wrapper to give normalized spectrum
plot.drifter

Plot drifter data
retime

Adjust the time within Oce object
read.adp

Read an ADP data file
teosSetLibrary

Set location of TEOS-10 library
tidem

Fit a tidal model to a timeseries
unabbreviateYear

Determine year from various abbreviations
showMetadataItem

Show metadata item
topo2

World topograph data, on a 2-degree grid.
tidemAstron

Do ephemeris calculations for tidem
sectionGrid

Grid a section
tidedata

Tidal constituent information
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
wilson

Wilson's (1963) table of seafloor spreading
accessors

Access or modify part of an Oce object
applyMagneticDeclination

Earth magnetic declination
approx3d

Trilinear interpolation in a 3D array
abbreviateTimeLabels

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

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

Create a TDR object
ctdDecimate

Decimate a CTD profile
ctd-class

Class to store hydrographic data
despike

Remove spikes from a time series
header

Return the header for an Oce data object
numberAsPOSIXct

Convert a numeric time to a POSIXct time
read.lisst

Read a LISST data file
plot.echosounder

Plot echosounder data
oceDebug

Print a debugging message
predict.tidem

Predict a time series from a tidal model
tdrPatm

Estimate atmospheric pressure in tdr record
swTheta

Seawater potential temperature
swConservativeTemperature

Seawater conservative temperature, as defined in TEOS-10.
windrose-class

Class to store windrose data
tdrTrim

Trim start/end portions of a tdr cast
teos

Interface to TEOS-10 library