Learn R Programming

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

oce (version 0.3-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,596

Version

0.3-1

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

June 22nd, 2011

Functions in oce (0.3-1)

as.topo

Coerce data into topo dataset
GMTOffsetFromTz

Determine time offset from timezone
coastlineHalifax

Coastline data set, showing Halifax Harbour
lonFormat

Format a longitude
beamUnattenuateAdp

Unattenuate ADP beam signal strength
ctd

Seawater CTD profile
magneticDeclination

Earth magneticDeclination
fullFilename

full name of file, including path
heading

Return the header for an Oce data object
RRprofile

Seawater profile used by Reiniger and Ross (1968)
ctdUpdateHeader

Update a CTD header
drawIsopycnals

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

Plot a coastline
coastlineSLE

Coastline of St Lawrence Estuary
binAverage

Bin-average a vector y, based on x values
plot.adv

Plot ADV data
applyMagneticDeclination

Earth magnetic declination
coriolis

Coriolis parameter on rotating earth
beamToXyz

Convert ADV or ADP data between various coordinate systems
interpBarnes

Grid data using Barnes algorithm
a03

WOCE section a03
as.pt

Create an TDR temperature-depth recorder data file
byteToBinary

Format bytes as binary
enuToOtherAdv

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

Make a digital filter
as.ctd

Coerce data into ctd dataset
angleRemap

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

Format a latitude-longitude pair
oceDebug

Print a debugging message
coastlineWorld

World coastline
fillGap

Fill a gap in an oce object
read.adv

Read an ADV data file
drawPalette

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

Decode integer to corresponding ASCII code
stickplot

Draw a stick-plot diagram
oceBisect

Find the root of a function by bisection
geodXy

Convert lat/lon to x/y on earth
matchBytes

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

Coerce data into coastline dataset
detrend

Detrend a set of observations
latFormat

Format a latitude
pwelch

Welch periodogram
ctdTrim

Trim start/end portions of a CTD cast
airHalifax

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

Seawater CTD profile, without trimming of extraneous data
decimate

Decimate an oce object
oce.plot.ts

Plot a time-series, obeying the timezone
airRho

Air density
loggerToc

Decode table-of-contents file from a datalogger
ctdAddColumn

Add a column to a CTD file
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
enuToOtherAdp

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

Returns the first or last parts of an oce object.
as.sealevel

Coerce data into sea-level dataset
processingLog

Add an item to object processingLog
despike

Remove spikes from a time series
swConductivity

Seawater conductivity
plot.pt

Plot pt (pressure-temperature) recorder data
oceFilter

Filter a time-series, possibly recursively
sectionSort

Sort a section
ctimeToSeconds

Interpret a character string as a time interval
read.pt

Read an TDR temperature-depth recorder data file
gravity

Acceleration due to earth gravity
makeSection

Bind CTD profiles together into a cross section
bcdToInteger

Decode BCD to integer
plot.topo

Plot topography data
plot.ctd.scan

Plot seawater data in a low-level fashion
oceColors

Create a palette of colours
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
header

Return the header for an Oce data object
plot.ctd

Plot seawater CTD data
magic

Find the type of an oceanographic data file
findInOrdered

Find indices of tiems in an ordered vector
oce.write.table

Write the data portion of object to a file
matrixSmooth

Smooth a matrix.
parseLatLon

Parse a latitude or longitude string
oceSpectrum

Wrapper to give normalized spectrum
geodDist

Geodesic distance on earth
redfieldNP

Redfield's (1934) NO3 and PO4 data
formatCI

Format a confidence interval in parenthetic notation
tidem

Fit a tidal model to a timeseries
as.windrose

Create a windrose object
extract

Extract data from an oce object
pressure

Extract pressure, salinity, or temperature from an oce object
plot.TS

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

More general form of as.POSIXlt
predict.tidem

Predict a time series from a tidal model
section

Seawater CTD section
plot.tidem

Plot a tidal fit
is.beam

Determine coordinate system for acoustic-doppler device
numberAsPOSIXct

Convert a numeric time to a POSIXct time
plot.cm

Plot cm (current meter) data
summary.processingLog

Summarize the processingLog of an Oce object
sectionSmooth

Smooth a section (preliminary version that may change)
summary.ctd

Summarize a CTD object
read.ctd

Read a CTD data file
swTheta

Seawater potential temperature
swN2

Squared buoyancy frequency for seawater
summary.cm

Summarize a cm (current meter) object
secondsToCtime

Convert a time interval to a colon-separated string
swAlpha

Seawater thermal expansion coefficient
redfieldNC

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

Tidal constituent information
swDynamicHeight

Dynamic height of seawater profile
read.cm

Read a current-meter data file
summary.section

Summarize a CTD section
summary.coastline

Summarize a coastline data object
oce.axis.POSIXct

Modified version of axis.POSIXct
munk

Munk's (1966) temperature profile
oceSmooth

Smooth an oce object
swSigmaTheta

Seawater potential density anomaly
plot.lobo

Plot lobo data
subset.oce

Subset an oce object
ptPatm

Estimate atmospheric pressure in pt record
sectionGrid

Grid a section
plot.windrose

Plot a wind rose diagram
summary.windrose

Summarize a windrose data object
swSpecificHeat

Seawater specific heat
tidemAstron

Do ephemeris calculations for tidem
summary.topo

Summarize a topography data object
summary.adp

Summarize an ADP object
plot.section

Plot a CTD section
ptTrim

Trim start/end portions of a pt cast
swDepth

Water depth
swBeta

Seawater haline contraction coefficient
swLapseRate

Seawater lapse rate
retime

Adjust the time within Oce object
read.adp

Read an ADP data file
swAlphaOverBeta

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

Scan a coastline data file
write.ctd

Write a CTD data object as a .csv file
vectorShow

Show some values from a vector
topoMaritimes

Topographic dataset, showing Maritime region of Canada
swTFreeze

Seawater freezing temperature
read.sealevel

Read a sea-level data file
sealevelHalifax

Sea-level data set, from Halifax Harbour
velocityStatistics

Report statistics of ADP or ADV velocities.
ptr

ptr (pressure-temperature) dataset
threenum

Calculate min, mean, and max values
summary.tidem

Summarize a tide-model object
riley

Riley's (1946) observation and theory of phytoplankton concentration
read.oce

Read an oceanographic data file
swTSrho

Seawater temperature from salinity and density
rangeLimit

Substitute NA for data outside a range
velocity

Extract velocity from an oce object
unabbreviateYear

Determine year from various abbreviations
tidemVuf

Do ephemeris calculations for tidem
resizableLabel

Provide axis names in adjustable sizes
read.lobo

Read a lobo data file
showThrees

Show min, mean, and max values
swSTrho

Seawater salinity from temperature and density
swSpice

Seawater spiciness
time.oce

Extract time from an oce object
swSigma

Seawater density anomaly
swRho

Seawater density
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
swViscosity

Seawater viscosity
summary.lobo

Summarize a lobo data object
read.section

Read a section containing multiple CTD profiles
swSoundSpeed

Seawater sound speed
sunAngle

Solar angle as function of space and time.
addColumn

Add a column to an oce object
window.oce

Window an oce object by time or distance
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
swSigmaT

Seawater quasi-potential density anomaly
adp

ADP (acoustic-doppler profiler) dataset
xyzToEnuAdp

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

Summarize a sealevel object
useHeading

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

Wind dataset
beamName

Name an acoustic-doppler beam.
topoInterpolate

Interpolate within a topography dataset
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
read.topo

Read an topography file
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
ctdDecimate

Decimate a CTD profile
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
wilson

Wilson's (1963) table of seafloor spreading
lobo

lobo dataset
imagep

Plot an image with a colour palette
plot.adp

Plot ADP data
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
oce.plot.sticks

Draw a stick-plot diagram
oceEdit

Edit an oce object
oceApprox

Interpolate with Reiniger-Ross algorithm
plot.profile

Plot a CTD profile of various quantities
plot.sealevel

Plot sealevel data
redfieldPlankton

Redfield's (1934) Table II
summary.adv

Summarize an ADV object
rescale

Rescale values to lie in a given range
summary.pt

Summarize a pt object
undriftTime

Correct for drift in instrument clock
topoWorld

Global topographic dataset at half-degree resolution