Learn R Programming

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

oce (version 0.9-2)

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.9-2

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

July 29th, 2012

Functions in oce (0.9-2)

beamToXyz

Convert ADV or ADP data between various coordinate systems
as.windrose

Create a windrose object
cm

Current-meter record
ctd

Seawater CTD profile
adv

ADV (acoustic-doppler velocimeter) dataset
angleRemap

Convert an angle from the 0:360 range to -180:180
as.ctd

Coerce data into ctd dataset
as.drifter

Coerce data into drifter dataset
geosecs235

GEOSECS station 235 data
extract

Extract data from an oce object
as.sealevel

Coerce data into sea-level dataset
plotScan

Plot seawater data in a low-level fashion
plotTaylor

Plot a model-data comparison diagram.
adp

ADP (acoustic-doppler profiler) dataset
as.lisst

Coerce data into a lisst object
coastline-class

Class to store coastline data
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
as.coastline

Coerce data into coastline dataset
drawPalette

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

Coastline data set, showing Halifax Harbour
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
enuToOtherAdv

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

Draw a direction field
fullFilename

full name of file, including path
beamUnattenuateAdp

Unattenuate ADP beam signal strength
accessors

Access or modify part of an Oce object
applyMagneticDeclination

Earth magnetic declination
head

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

WOCE section a03
addColumn

Add a column to an oce object
beamName

Name an acoustic-doppler beam.
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
formatCI

Format a confidence interval in parenthetic notation
ctimeToSeconds

Interpret a character string as a time interval
geodXy

Convert lat/lon to x/y on earth
as.echosounder

Coerce data into echosounder dataset
plot.echosounder

Plot echosounder data
coastlineWorld

World coastline
ctdRaw

Seawater CTD profile, without trimming of extraneous data
integerToAscii

Decode integer to corresponding ASCII code
as.topo

Coerce data into topo dataset
echosounder

echosounder dataset
read.lisst

Read a LISST data file
makeSection

Bind CTD profiles together into a cross section
errorbars

Draw error bars on an existing xy diagram
summary.windrose

Summarize a windrose data object
interpBarnes

Grid data using Barnes algorithm
plot.topo

Plot topography data
adv-class

Class to store acoustic Doppler velocimeter data
oceColors

Create a palette of colours
soi

Southern Oscillation Index
header

Return the header for an Oce data object
swSTrho

Seawater salinity from temperature and density
bcdToInteger

Decode BCD to integer
decimate

Smooth and decimate an oce object
drag

Wind drag coefficient
plot.lisst

Plot LISST data
read.oce

Read an oceanographic data file
binmapAdp

Bin-map an ADP object
imagep

Plot an image with a colour palette
ctdDecimate

Decimate a CTD profile
grad

Gradient of a matrix
swSoundSpeed

Seawater sound speed
echosounder-class

Class to store echosounder data
latlonFormat

Format a latitude-longitude pair
oce.axis.POSIXct

Modified version of axis.POSIXct
enuToOtherAdp

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

Find indices of tiems in an ordered vector
julianCenturyAnomaly

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

Tidal constituent information
oceApprox

Interpolate with Reiniger-Ross algorithm
moonAngle

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

Plot a coastline
plot.met

Plot meteorological data
oce-class

base class of oce package
tidem-class

Class to store tidal-constituent models
plot.tidem

Plot a tidal fit
sectionGrid

Grid a section
plot.cm

Plot cm (current meter) data
julianDay

Convert a POSIXt time to a Julian day
read.ctd

Read a CTD data file
rangeLimit

Substitute NA for data outside a range
redfieldNP

Redfield's (1934) NO3 and PO4 data
lisst

LISST dataset
read.topo

Read an topography file
plotPolar

Draw a polar plot.
summary.topo

Summarize a topography data object
section

Seawater CTD section
sectionSort

Sort a section
summary.adv

Summarize an ADV object
predict.tidem

Predict a time series from a tidal model
read.sealevel

Read a sea-level data file
summary.tdr

Summarize a tdr object
read.coastline

Scan a coastline data file
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
oceConvolve

Convolve two time series
swLapseRate

Seawater lapse rate
summary.met

Summarize a met object
loggerToc

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

More general form of as.POSIXlt
swDepth

Water depth
summary.echosounder

Summarize an echosounder object
summary.coastline

Summarize a coastline data object
oce.as.raw

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

Seawater spiciness
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
munk

Munk's (1966) temperature profile
summary.lobo

Summarize a lobo data object
plot.lobo

Plot lobo data
geodDist

Geodesic distance on earth
tdrTrim

Trim start/end portions of a tdr cast
plot.adp

Plot ADP data
swBeta

Seawater haline contraction coefficient
oceContour

Contour with ability to flip x and y
sealevelHalifax

Sea-level data set, from Halifax Harbour
plot.windrose

Plot a wind rose diagram
teos

Interface to TEOS-10 library
plot.adv

Plot ADV data
processingLog

Add an item to object processingLog
swTSrho

Seawater temperature from salinity and density
topo2

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

Convert ADP to enu coordinates, from any other coordinates
schmitt

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

Read an ADP data file
read.lobo

Read a lobo data file
pwelch

Welch periodogram
swN2

Squared buoyancy frequency for seawater
rescale

Rescale values to lie in a given range
summary.lisst

Summarize a LISST object
tidem

Fit a tidal model to a timeseries
read.met

Read a meteorological data file
redfieldNC

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

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

Seawater viscosity
teosSetLibrary

Set location of TEOS-10 library
topoInterpolate

Interpolate within a topography dataset
sealevel-class

Class to store sealevel data
summary.tidem

Summarize a tide-model object
tidemVuf

Do ephemeris calculations for tidem
threenum

Calculate min, mean, and max values
topoWorld

Global topographic dataset at half-degree resolution
as.met

Coerce data into met dataset
binAverage

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

Topographic dataset, showing Maritime region of Canada
swTheta

Seawater potential temperature
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
coriolis

Coriolis parameter on rotating earth
swSpecificHeat

Seawater specific heat
wilson

Wilson's (1963) table of seafloor spreading
despike

Remove spikes from a time series
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
integrateTrapezoid

Use trapezoidal integration
lobo

lobo dataset
GMTOffsetFromTz

Determine time offset from timezone
plotProfile

Plot a CTD profile of various quantities
read.cm

Read a current-meter data file
ctd-class

Class to store hydrographic data
fillGap

Fill a gap in an oce object
section-class

Class to store hydrographic section data
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
abbreviateTimeLabels

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

Find the ocean bottom in an echosounder object
airRho

Air density
ctdAddColumn

Add a column to a CTD file
unwrapAngle

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

Class to store acoustic Doppler profiler data
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
webtide

Get a tidal prediction from a WebTide database
summary.adp

Summarize an ADP object
summary.drifter

Summarize a drifter object
coastlineSLE

Coastline of St Lawrence Estuary
detrend

Detrend a set of observations
byteToBinary

Format bytes as binary
giss

Time series of NASA/GISS land-ocean temperature index
plot.section

Plot a CTD section
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
ctdTrim

Trim start/end portions of a CTD cast
latFormat

Format a latitude
swSigmaT

Seawater quasi-potential density anomaly
met

Sample meteorological object
ctdUpdateHeader

Update a CTD header
plotSticks

Draw a stick-plot diagram
window.oce

Window an oce object by time or distance
oceMagic

Find the type of an oceanographic data file
unabbreviateYear

Determine year from various abbreviations
prettyPosition

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

Wrapper to give normalized spectrum
summary.ctd

Summarize a CTD object
cm-class

Class to store current meter data
plot.drifter

Plot drifter data
matchBytes

Find spots in a raw vector that match a given byte sequence.
windrose-class

Class to store windrose data
plot.sealevel

Plot sealevel data
gravity

Acceleration due to earth gravity
lisst-class

Class to store LISST data
read.tdr

Read an TDR temperature-depth recorder data file
lonFormat

Format a longitude
magneticDeclination

Earth magneticDeclination
redfieldPlankton

Redfield's (1934) Table II
makeFilter

Make a digital filter
oce.plot.ts

Plot a time-series, obeying the timezone
undriftTime

Correct for drift in instrument clock
airHalifax

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

Adjust the time within Oce object
resizableLabel

Provide axis names in adjustable sizes
lobo-class

Class to store LOBO data
read.section

Read a section containing multiple CTD profiles
summary.cm

Summarize a cm (current meter) object
oceEdit

Edit an oce object
as.tdr

Create a TDR object
showMetadataItem

Show metadata item
met-class

Class to store meteorological data
summary.sealevel

Summarize a sealevel object
sectionSmooth

Smooth a section (preliminary version that may change)
siderealTime

Convert a POSIXt time to a sidereal time
oce.write.table

Write the data portion of object to a file
swAlpha

Seawater thermal expansion coefficient
read.drifter

Read a drifter data file
matrixSmooth

Smooth a matrix.
oceDebug

Print a debugging message
parseLatLon

Parse a latitude or longitude string
plotTS

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

Dynamic height of seawater profile
time.oce

Extract time from an oce object
oceBisect

Find the root of a function by bisection
write.ctd

Write a CTD data object as a .csv file
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
swTFreeze

Seawater freezing temperature
plot.tdr

Plot tdr (temperature-depth recorder) data
oceFilter

Filter a time-series, possibly recursively
tdr

tdr (temperature-data recorder) dataset
secondsToCtime

Convert a time interval to a colon-separated string
read.adv

Read an ADV data file
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
topo-class

Class to store topographic data
sunAngle

Solar angle as function of space and time.
subset.oce

Subset an oce object
swConservativeTemperature

Seawater conservative temperature, as defined in TEOS-10.
plot.ctd

Plot seawater CTD data
swConductivity

Seawater thermal conductivity
swAbsoluteSalinity

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

Seawater potential density anomaly
swRho

Seawater density
tidemAstron

Do ephemeris calculations for tidem
tdr-class

Class to store temperature-depth recorder data
wind

Wind dataset
velocityStatistics

Report statistics of ADP or ADV velocities.
vectorShow

Show some values from a vector
RRprofile

Seawater profile used by Reiniger and Ross (1968)
drifter

ARGO drifter dataset
as.lobo

Coerce data into lobo dataset
drifter-class

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

Determine coordinate system for acoustic-doppler device
numberAsPOSIXct

Convert a numeric time to a POSIXct time
oceSmooth

Smooth an oce object
plotInset

Plot an inset diagram
read.echosounder

Read an echosounder data file
riley

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

Estimate atmospheric pressure in tdr record
summary.section

Summarize a CTD section
swSigma

Seawater density anomaly