Learn R Programming

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

oce (version 0.5-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.5-1

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

July 26th, 2011

Functions in oce (0.5-1)

beamUnattenuateAdp

Unattenuate ADP beam signal strength
argo

ARGO drifter dataset
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
lobo

lobo dataset
oceApprox

Interpolate with Reiniger-Ross algorithm
beamName

Name an acoustic-doppler beam.
as.pt

Create an TDR temperature-depth recorder data file
applyMagneticDeclination

Earth magnetic declination
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
airHalifax

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

Bind CTD profiles together into a cross section
adp

ADP (acoustic-doppler profiler) dataset
beamToXyz

Convert ADV or ADP data between various coordinate systems
ctimeToSeconds

Interpret a character string as a time interval
latFormat

Format a latitude
plot.ctd

Plot seawater CTD data
oce.as.POSIXlt

More general form of as.POSIXlt
plot.pt

Plot pt (pressure-temperature) recorder data
magic

Find the type of an oceanographic data file
ctdRaw

Seawater CTD profile, without trimming of extraneous data
decimate

Decimate an oce object
enuToOtherAdp

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

Return the header for an Oce data object
read.oce

Read an oceanographic data file
plot.TS

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

Smooth a matrix.
fullFilename

full name of file, including path
ctdAddColumn

Add a column to a CTD file
ctdDecimate

Decimate a CTD profile
binAverage

Bin-average a vector y, based on x values
as.windrose

Create a windrose object
coastlineHalifax

Coastline data set, showing Halifax Harbour
makeFilter

Make a digital filter
ctd

Seawater CTD profile
section

Seawater CTD section
byteToBinary

Format bytes as binary
oceSpectrum

Wrapper to give normalized spectrum
summary.lobo

Summarize a lobo data object
oceSmooth

Smooth an oce object
predict.tidem

Predict a time series from a tidal model
oceColors

Create a palette of colours
as.coastline

Coerce data into coastline dataset
integerToAscii

Decode integer to corresponding ASCII code
read.adp

Read an ADP data file
despike

Remove spikes from a time series
drawPalette

Draw a palette on the right-hand side of plot device
oce.axis.POSIXct

Modified version of axis.POSIXct
pwelch

Welch periodogram
fillGap

Fill a gap in an oce object
plot.cm

Plot cm (current meter) data
plot.windrose

Plot a wind rose diagram
as.ctd

Coerce data into ctd dataset
ptPatm

Estimate atmospheric pressure in pt record
coastlineSLE

Coastline of St Lawrence Estuary
a03

WOCE section a03
ptr

ptr (pressure-temperature) dataset
plot.profile

Plot a CTD profile of various quantities
as.sealevel

Coerce data into sea-level dataset
extract

Extract data from an oce object
oceDebug

Print a debugging message
redfieldNP

Redfield's (1934) NO3 and PO4 data
bcdToInteger

Decode BCD to integer
matchBytes

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

Acceleration due to earth gravity
swSigma

Seawater density anomaly
plot.sealevel

Plot sealevel data
magneticDeclination

Earth magneticDeclination
plot.adv

Plot ADV data
coriolis

Coriolis parameter on rotating earth
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
findInOrdered

Find indices of tiems in an ordered vector
interpBarnes

Grid data using Barnes algorithm
loggerToc

Decode table-of-contents file from a datalogger
detrend

Detrend a set of observations
plot.coastline

Plot a coastline
summary.windrose

Summarize a windrose data object
plot.drifter

Plot drifter data
formatCI

Format a confidence interval in parenthetic notation
sunAngle

Solar angle as function of space and time.
tidemVuf

Do ephemeris calculations for tidem
GMTOffsetFromTz

Determine time offset from timezone
as.topo

Coerce data into topo dataset
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
latlonFormat

Format a latitude-longitude pair
ptTrim

Trim start/end portions of a pt cast
read.section

Read a section containing multiple CTD profiles
is.beam

Determine coordinate system for acoustic-doppler device
head

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

Trim start/end portions of a CTD cast
coastlineWorld

World coastline
riley

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

Access or modify part of an Oce object
oceEdit

Edit an oce object
summary.topo

Summarize a topography data object
soi

Southern Oscillation Index
addColumn

Add a column to an oce object
summary.drifter

Summarize a drifter object
rescale

Rescale values to lie in a given range
plot.ctd.scan

Plot seawater data in a low-level fashion
lonFormat

Format a longitude
resizableLabel

Provide axis names in adjustable sizes
time.oce

Extract time from an oce object
topoMaritimes

Topographic dataset, showing Maritime region of Canada
oce.plot.sticks

Draw a stick-plot diagram
swN2

Squared buoyancy frequency for seawater
imagep

Plot an image with a colour palette
stickplot

Draw a stick-plot diagram
rangeLimit

Substitute NA for data outside a range
swAlpha

Seawater thermal expansion coefficient
swTheta

Seawater potential temperature
oce.plot.ts

Plot a time-series, obeying the timezone
tidem

Fit a tidal model to a timeseries
swTFreeze

Seawater freezing temperature
oceFilter

Filter a time-series, possibly recursively
munk

Munk's (1966) temperature profile
redfieldNC

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

Plot topography data
velocityStatistics

Report statistics of ADP or ADV velocities.
summary.adv

Summarize an ADV object
threenum

Calculate min, mean, and max values
read.lobo

Read a lobo data file
sectionGrid

Grid a section
read.cm

Read a current-meter data file
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
sectionSmooth

Smooth a section (preliminary version that may change)
swViscosity

Seawater viscosity
summary.coastline

Summarize a coastline data object
secondsToCtime

Convert a time interval to a colon-separated string
plot.adp

Plot ADP data
sealevelHalifax

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

Summarize a sealevel object
subset.oce

Subset an oce object
showThrees

Show min, mean, and max values
xyzToEnuAdp

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

Summarize a CTD section
summary.tidem

Summarize a tide-model object
swSigmaTheta

Seawater potential density anomaly
swDepth

Water depth
summary.cm

Summarize a cm (current meter) object
swSoundSpeed

Seawater sound speed
plot.lobo

Plot lobo data
swSpice

Seawater spiciness
numberAsPOSIXct

Convert a numeric time to a POSIXct time
plot.tidem

Plot a tidal fit
toEnuAdv

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

Summarize an ADP object
topoInterpolate

Interpolate within a topography dataset
plot.section

Plot a CTD section
swLapseRate

Seawater lapse rate
swConductivity

Seawater conductivity
read.drifter

Read a drifter data file
processingLog

Add an item to object processingLog
oce.write.table

Write the data portion of object to a file
swSigmaT

Seawater quasi-potential density anomaly
read.sealevel

Read a sea-level data file
read.adv

Read an ADV data file
swSpecificHeat

Seawater specific heat
summary.processingLog

Summarize the processingLog of an Oce object
read.coastline

Scan a coastline data file
topoWorld

Global topographic dataset at half-degree resolution
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
swBeta

Seawater haline contraction coefficient
read.pt

Read an TDR temperature-depth recorder data file
sectionSort

Sort a section
summary.ctd

Summarize a CTD object
write.ctd

Write a CTD data object as a .csv file
wilson

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

Read an topography file
swRho

Seawater density
swDynamicHeight

Dynamic height of seawater profile
window.oce

Window an oce object by time or distance
summary.pt

Summarize a pt object
tidedata

Tidal constituent information
read.ctd

Read a CTD data file
swTSrho

Seawater temperature from salinity and density
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
retime

Adjust the time within Oce object
swSTrho

Seawater salinity from temperature and density
useHeading

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

Determine year from various abbreviations
airRho

Air density
redfieldPlankton

Redfield's (1934) Table II
vectorShow

Show some values from a vector
undriftTime

Correct for drift in instrument clock
wind

Wind dataset
RRprofile

Seawater profile used by Reiniger and Ross (1968)
angleRemap

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

Update a CTD header
geodXy

Convert lat/lon to x/y on earth
enuToOtherAdv

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

Geodesic distance on earth
parseLatLon

Parse a latitude or longitude string
oceBisect

Find the root of a function by bisection
tidemAstron

Do ephemeris calculations for tidem