Learn R Programming

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

oce (version 0.9-3)

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

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

September 4th, 2012

Functions in oce (0.9-3)

decimate

Smooth and decimate an oce object
as.sealevel

Coerce data into sea-level dataset
gravity

Acceleration due to earth gravity
interpBarnes

Grid data using Barnes algorithm
geodDist

Geodesic distance on earth
accessors

Access or modify part of an Oce object
addColumn

Add a column to an oce object
lobo-class

Class to store LOBO data
drawPalette

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

WOCE section a03
as.coastline

Coerce data into coastline dataset
RRprofile

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

Class to store acoustic Doppler profiler data
as.windrose

Create a windrose object
as.ctd

Coerce data into ctd dataset
fillGap

Fill a gap in an oce object
airRho

Air density
bcdToInteger

Decode BCD to integer
applyMagneticDeclination

Earth magnetic declination
integrateTrapezoid

Use trapezoidal integration
as.met

Coerce data into met dataset
findBottom

Find the ocean bottom in an echosounder object
ctd-class

Class to store hydrographic data
ctdAddColumn

Add a column to a CTD file
julianDay

Convert a POSIXt time to a Julian day
coastlineHalifax

Coastline data set, showing Halifax Harbour
GMTOffsetFromTz

Determine time offset from timezone
drifter-class

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

Coriolis parameter on rotating earth
beamToXyz

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

Coerce data into a lisst object
plot.lobo

Plot lobo data
loggerToc

Decode table-of-contents file from a datalogger
lonFormat

Format a longitude
drifter

ARGO drifter dataset
ctimeToSeconds

Interpret a character string as a time interval
plotProfile

Plot a CTD profile of various quantities
ctdDecimate

Decimate a CTD profile
extract

Extract data from an oce object
oce.plot.ts

Plot a time-series, obeying the timezone
errorbars

Draw error bars on an existing xy diagram
pwelch

Welch periodogram
formatCI

Format a confidence interval in parenthetic notation
oceContour

Contour with ability to flip x and y
header

Return the header for an Oce data object
lisst

LISST dataset
sectionSmooth

Smooth a section (preliminary version that may change)
swViscosity

Seawater viscosity
swSigmaTheta

Seawater potential density anomaly
showMetadataItem

Show metadata item
read.lisst

Read a LISST data file
swSpice

Seawater spiciness
read.drifter

Read a drifter data file
grad

Gradient of a matrix
tdrPatm

Estimate atmospheric pressure in tdr record
abbreviateTimeLabels

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

Class to store topographic data
redfieldPlankton

Redfield's (1934) Table II
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
munk

Munk's (1966) temperature profile
tidem-class

Class to store tidal-constituent models
julianCenturyAnomaly

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

Read a section containing multiple CTD profiles
wind

Wind dataset
summary.lisst

Summarize a LISST object
siderealTime

Convert a POSIXt time to a sidereal time
summary.adp

Summarize an ADP object
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
oceSpectrum

Wrapper to give normalized spectrum
sealevel-class

Class to store sealevel data
swAlpha

Seawater thermal expansion coefficient
adv-class

Class to store acoustic Doppler velocimeter data
swLapseRate

Seawater lapse rate
oce.axis.POSIXct

Modified version of axis.POSIXct
swConductivity

Seawater thermal conductivity
integerToAscii

Decode integer to corresponding ASCII code
met-class

Class to store meteorological data
oce.write.table

Write the data portion of object to a file
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
swN2

Squared buoyancy frequency for seawater
coastlineWorld

World coastline
airHalifax

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

Coerce data into drifter dataset
oceEdit

Edit an oce object
fullFilename

full name of file, including path
plot.windrose

Plot a wind rose diagram
oceColors

Create a palette of colours
plot.topo

Plot topography data
parseLatLon

Parse a latitude or longitude string
as.tdr

Create a TDR object
numberAsPOSIXct

Convert a numeric time to a POSIXct time
swAbsoluteSalinity

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

Coastline of St Lawrence Estuary
sectionSort

Sort a section
beamName

Name an acoustic-doppler beam.
oceApprox

Interpolate with Reiniger-Ross algorithm
plot.tidem

Plot a tidal fit
summary.section

Summarize a CTD section
topoInterpolate

Interpolate within a topography dataset
summary.tidem

Summarize a tide-model object
plot.adp

Plot ADP data
drag

Wind drag coefficient
sealevelHalifax

Sea-level data set, from Halifax Harbour
binAverage

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

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

Water depth
vectorShow

Show some values from a vector
is.beam

Determine coordinate system for acoustic-doppler device
lobo

lobo dataset
unabbreviateYear

Determine year from various abbreviations
summary.topo

Summarize a topography data object
topoWorld

Global topographic dataset at half-degree resolution
swSigma

Seawater density anomaly
wilson

Wilson's (1963) table of seafloor spreading
summary.drifter

Summarize a drifter object
read.sealevel

Read a sea-level data file
read.coastline

Scan a coastline data file
plotScan

Plot seawater data in a low-level fashion
swTheta

Seawater potential temperature
teos

Interface to TEOS-10 library
swSpecificHeat

Seawater specific heat
velocityStatistics

Report statistics of ADP or ADV velocities.
redfieldNC

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

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

Provide axis names in adjustable sizes
makeSection

Bind CTD profiles together into a cross section
tdr-class

Class to store temperature-depth recorder data
windrose-class

Class to store windrose data
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
summary.adv

Summarize an ADV object
tidedata

Tidal constituent information
tidemVuf

Do ephemeris calculations for tidem
summary.coastline

Summarize a coastline data object
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
swBeta

Seawater haline contraction coefficient
oceBisect

Find the root of a function by bisection
matchBytes

Find spots in a raw vector that match a given byte sequence.
oce.as.POSIXlt

More general form of as.POSIXlt
as.lobo

Coerce data into lobo dataset
plot.drifter

Plot drifter data
adv

ADV (acoustic-doppler velocimeter) dataset
cm-class

Class to store current meter data
plotSticks

Draw a stick-plot diagram
plot.tdr

Plot tdr (temperature-depth recorder) data
ctd

Seawater CTD profile
imagep

Plot an image with a colour palette
rangeLimit

Substitute NA for data outside a range
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
prettyPosition

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

Adjust the time within Oce object
latFormat

Format a latitude
window.oce

Window an oce object by time or distance
swTFreeze

Seawater freezing temperature
read.echosounder

Read an echosounder data file
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
plotTaylor

Plot a model-data comparison diagram.
read.tdr

Read an TDR temperature-depth recorder data file
schmitt

Schmitt's (1981) NACW temperature-salinity data
summary.echosounder

Summarize an echosounder object
makeFilter

Make a digital filter
summary.windrose

Summarize a windrose data object
tdrTrim

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

Plot a CTD section
oceSmooth

Smooth an oce object
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
plot.ctd

Plot seawater CTD data
plotInset

Plot an inset diagram
processingLog

Add an item to object processingLog
rescale

Rescale values to lie in a given range
cm

Current-meter record
ctdUpdateHeader

Update a CTD header
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
findInOrdered

Find indices of tiems in an ordered vector
matrixSmooth

Smooth a matrix.
summary.ctd

Summarize a CTD object
moonAngle

Lunar angle as function of space and time.
webtide

Get a tidal prediction from a WebTide database
plot.coastline

Plot a coastline
adp

ADP (acoustic-doppler profiler) dataset
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
swSoundSpeed

Seawater sound speed
sunAngle

Solar angle as function of space and time.
teosSetLibrary

Set location of TEOS-10 library
plot.lisst

Plot LISST data
as.echosounder

Coerce data into echosounder dataset
echosounder

echosounder dataset
echosounder-class

Class to store echosounder data
latlonFormat

Format a latitude-longitude pair
detrend

Detrend a set of observations
read.topo

Read an topography file
coastline-class

Class to store coastline data
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
as.topo

Coerce data into topo dataset
tidemAstron

Do ephemeris calculations for tidem
beamUnattenuateAdp

Unattenuate ADP beam signal strength
time.oce

Extract time from an oce object
plot.echosounder

Plot echosounder data
enuToOtherAdv

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

Trim start/end portions of a CTD cast
oce.as.raw

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

Remove spikes from a time series
predict.tidem

Predict a time series from a tidal model
oceMagic

Find the type of an oceanographic data file
head

Returns the first or last parts of an oce object.
summary.met

Summarize a met object
binmapAdp

Bin-map an ADP object
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
threenum

Calculate min, mean, and max values
ctdRaw

Seawater CTD profile, without trimming of extraneous data
tdr

tdr (temperature-data recorder) dataset
topo2

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

Draw isopycnal curves on an existing temperature-salinity plot
read.adp

Read an ADP data file
write.ctd

Write a CTD data object as a .csv file
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
read.adv

Read an ADV data file
geosecs235

GEOSECS station 235 data
read.oce

Read an oceanographic data file
section

Seawater CTD section
plot.cm

Plot cm (current meter) data
swSTrho

Seawater salinity from temperature and density
magneticDeclination

Earth magneticDeclination
subset.oce

Subset an oce object
redfieldNP

Redfield's (1934) NO3 and PO4 data
read.met

Read a meteorological data file
lisst-class

Class to store LISST data
summary.lobo

Summarize a lobo data object
riley

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

Plot sealevel data
swDynamicHeight

Dynamic height of seawater profile
swConservativeTemperature

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

Seawater quasi-potential density anomaly
oce-class

base class of oce package
met

Sample meteorological object
swTSrho

Seawater temperature from salinity and density
oceConvolve

Convolve two time series
plot.met

Plot meteorological data
undriftTime

Correct for drift in instrument clock
read.ctd

Read a CTD data file
section-class

Class to store hydrographic section data
summary.sealevel

Summarize a sealevel object
summary.cm

Summarize a cm (current meter) object
soi

Southern Oscillation Index
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
topoMaritimes

Topographic dataset, showing Maritime region of Canada
angleRemap

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

Format bytes as binary
enuToOtherAdp

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

Convert from ecliptical to equatorial coordinates
geodXy

Convert lat/lon to x/y on earth
drawDirectionField

Draw a direction field
oceDebug

Print a debugging message
oceFilter

Filter a time-series, possibly recursively
plot.adv

Plot ADV data
plotPolar

Draw a polar plot.
read.lobo

Read a lobo data file
read.cm

Read a current-meter data file
secondsToCtime

Convert a time interval to a colon-separated string
swRho

Seawater density
sectionGrid

Grid a section
useHeading

Replace the heading for one instrument with the heading for another
summary.tdr

Summarize a tdr object
tidem

Fit a tidal model to a timeseries