Learn R Programming

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

oce (version 0.4-1)

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.4-1

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

July 23rd, 2011

Functions in oce (0.4-1)

as.pt

Create an TDR temperature-depth recorder data file
coastlineHalifax

Coastline data set, showing Halifax Harbour
as.windrose

Create a windrose object
integerToAscii

Decode integer to corresponding ASCII code
coastlineWorld

World coastline
munk

Munk's (1966) temperature profile
beamToXyz

Convert ADV or ADP data between various coordinate systems
applyMagneticDeclination

Earth magnetic declination
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
fullFilename

full name of file, including path
drawPalette

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

Determine time offset from timezone
ctdTrim

Trim start/end portions of a CTD cast
matrixSmooth

Smooth a matrix.
adp

ADP (acoustic-doppler profiler) dataset
oceSmooth

Smooth an oce object
read.cm

Read a current-meter data file
ctimeToSeconds

Interpret a character string as a time interval
as.ctd

Coerce data into ctd dataset
as.coastline

Coerce data into coastline dataset
plot.section

Plot a CTD section
loggerToc

Decode table-of-contents file from a datalogger
ctd

Seawater CTD profile
findInOrdered

Find indices of tiems in an ordered vector
read.topo

Read an topography file
as.sealevel

Coerce data into sea-level dataset
makeSection

Bind CTD profiles together into a cross section
ptTrim

Trim start/end portions of a pt cast
matchBytes

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

Find the root of a function by bisection
angleRemap

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

Coriolis parameter on rotating earth
oceDebug

Print a debugging message
ctdDecimate

Decimate a CTD profile
binAverage

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

ptr (pressure-temperature) dataset
plot.adp

Plot ADP data
extract

Extract data from an oce object
bcdToInteger

Decode BCD to integer
plot.cm

Plot cm (current meter) data
decimate

Decimate an oce object
as.topo

Coerce data into topo dataset
plot.tidem

Plot a tidal fit
summary.pt

Summarize a pt object
latlonFormat

Format a latitude-longitude pair
summary.topo

Summarize a topography data object
parseLatLon

Parse a latitude or longitude string
coastlineSLE

Coastline of St Lawrence Estuary
ctdAddColumn

Add a column to a CTD file
read.coastline

Scan a coastline data file
predict.tidem

Predict a time series from a tidal model
swSigmaTheta

Seawater potential density anomaly
beamUnattenuateAdp

Unattenuate ADP beam signal strength
oceEdit

Edit an oce object
plot.windrose

Plot a wind rose diagram
interpBarnes

Grid data using Barnes algorithm
airRho

Air density
geodXy

Convert lat/lon to x/y on earth
plot.ctd

Plot seawater CTD data
swRho

Seawater density
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
heading

Return the header for an Oce data object
numberAsPOSIXct

Convert a numeric time to a POSIXct time
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
oce.as.POSIXlt

More general form of as.POSIXlt
beamName

Name an acoustic-doppler beam.
secondsToCtime

Convert a time interval to a colon-separated string
ctdRaw

Seawater CTD profile, without trimming of extraneous data
is.beam

Determine coordinate system for acoustic-doppler device
byteToBinary

Format bytes as binary
enuToOtherAdp

Convert ADP from east-north-up coordinates to other coordinates
oce.plot.sticks

Draw a stick-plot diagram
magneticDeclination

Earth magneticDeclination
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
lobo

lobo dataset
ctdUpdateHeader

Update a CTD header
imagep

Plot an image with a colour palette
read.oce

Read an oceanographic data file
summary.processingLog

Summarize the processingLog of an Oce object
makeFilter

Make a digital filter
redfieldNC

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

Add a column to an oce object
retime

Adjust the time within Oce object
read.pt

Read an TDR temperature-depth recorder data file
oce.write.table

Write the data portion of object to a file
magic

Find the type of an oceanographic data file
oceApprox

Interpolate with Reiniger-Ross algorithm
oce.axis.POSIXct

Modified version of axis.POSIXct
despike

Remove spikes from a time series
resizableLabel

Provide axis names in adjustable sizes
swSpecificHeat

Seawater specific heat
oceFilter

Filter a time-series, possibly recursively
enuToOtherAdv

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

Geodesic distance on earth
swTSrho

Seawater temperature from salinity and density
read.ctd

Read a CTD data file
sealevelHalifax

Sea-level data set, from Halifax Harbour
lonFormat

Format a longitude
summary.adv

Summarize an ADV object
gravity

Acceleration due to earth gravity
soi

Southern Oscillation Index
plot.profile

Plot a CTD profile of various quantities
latFormat

Format a latitude
vectorShow

Show some values from a vector
subset.oce

Subset an oce object
summary.windrose

Summarize a windrose data object
undriftTime

Correct for drift in instrument clock
swN2

Squared buoyancy frequency for seawater
swBeta

Seawater haline contraction coefficient
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
header

Return the header for an Oce data object
swTFreeze

Seawater freezing temperature
oceColors

Create a palette of colours
tidem

Fit a tidal model to a timeseries
read.lobo

Read a lobo data file
rescale

Rescale values to lie in a given range
oce.plot.ts

Plot a time-series, obeying the timezone
velocityStatistics

Report statistics of ADP or ADV velocities.
wilson

Wilson's (1963) table of seafloor spreading
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
ptPatm

Estimate atmospheric pressure in pt record
swAlpha

Seawater thermal expansion coefficient
plot.TS

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

Welch periodogram
plot.pt

Plot pt (pressure-temperature) recorder data
plot.adv

Plot ADV data
tidemAstron

Do ephemeris calculations for tidem
read.sealevel

Read a sea-level data file
summary.tidem

Summarize a tide-model object
write.ctd

Write a CTD data object as a .csv file
redfieldNP

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

Read an ADV data file
read.adp

Read an ADP data file
window.oce

Window an oce object by time or distance
swDepth

Water depth
stickplot

Draw a stick-plot diagram
oceSpectrum

Wrapper to give normalized spectrum
swTheta

Seawater potential temperature
riley

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

Determine year from various abbreviations
head

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

Plot a coastline
pressure

Extract pressure, salinity, or temperature from an oce object
swSpice

Seawater spiciness
swViscosity

Seawater viscosity
sectionSmooth

Smooth a section (preliminary version that may change)
redfieldPlankton

Redfield's (1934) Table II
summary.cm

Summarize a cm (current meter) object
topoWorld

Global topographic dataset at half-degree resolution
sectionSort

Sort a section
time.oce

Extract time from an oce object
summary.coastline

Summarize a coastline data object
topoMaritimes

Topographic dataset, showing Maritime region of Canada
section

Seawater CTD section
sunAngle

Solar angle as function of space and time.
processingLog

Add an item to object processingLog
plot.topo

Plot topography data
summary.lobo

Summarize a lobo data object
topoInterpolate

Interpolate within a topography dataset
summary.sealevel

Summarize a sealevel object
swSTrho

Seawater salinity from temperature and density
wind

Wind dataset
sectionGrid

Grid a section
a03

WOCE section a03
showThrees

Show min, mean, and max values
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
swSigma

Seawater density anomaly
swDynamicHeight

Dynamic height of seawater profile
plot.sealevel

Plot sealevel data
swSoundSpeed

Seawater sound speed
threenum

Calculate min, mean, and max values
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
summary.section

Summarize a CTD section
detrend

Detrend a set of observations
formatCI

Format a confidence interval in parenthetic notation
fillGap

Fill a gap in an oce object
tidemVuf

Do ephemeris calculations for tidem
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
tidedata

Tidal constituent information
velocity

Extract velocity from an oce object
plot.ctd.scan

Plot seawater data in a low-level fashion
plot.lobo

Plot lobo data
read.section

Read a section containing multiple CTD profiles
swLapseRate

Seawater lapse rate
swConductivity

Seawater conductivity
RRprofile

Seawater profile used by Reiniger and Ross (1968)
airHalifax

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

Substitute NA for data outside a range
summary.ctd

Summarize a CTD object
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
summary.adp

Summarize an ADP object
swSigmaT

Seawater quasi-potential density anomaly
useHeading

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

Convert ADP to enu coordinates, from any other coordinates