Learn R Programming

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

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

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

October 7th, 2011

Functions in oce (0.7-1)

geodXy

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

Create an TDR temperature-depth recorder data file
oceBisect

Find the root of a function by bisection
a03

WOCE section a03
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
drawPalette

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

ADV (acoustic-doppler velocimeter) dataset
matchBytes

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

Add an item to object processingLog
matrixSmooth

Smooth a matrix.
airHalifax

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

Convert a numeric time to a POSIXct time
airRho

Air density
ctdUpdateHeader

Update a CTD header
summary.lobo

Summarize a lobo data object
despike

Remove spikes from a time series
sectionGrid

Grid a section
oceEdit

Edit an oce object
ctdTrim

Trim start/end portions of a CTD cast
ptr

ptr (pressure-temperature) dataset
swDepth

Water depth
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
coastlineSLE

Coastline of St Lawrence Estuary
interpBarnes

Grid data using Barnes algorithm
makeFilter

Make a digital filter
riley

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

Munk's (1966) temperature profile
plot.ctd

Plot seawater CTD data
magneticDeclination

Earth magneticDeclination
as.topo

Coerce data into topo dataset
gravity

Acceleration due to earth gravity
makeSection

Bind CTD profiles together into a cross section
plot.cm

Plot cm (current meter) data
fillGap

Fill a gap in an oce object
magic

Find the type of an oceanographic data file
oce.write.table

Write the data portion of object to a file
formatCI

Format a confidence interval in parenthetic notation
oceSpectrum

Wrapper to give normalized spectrum
drag

Wind drag coefficient
byteToBinary

Format bytes as binary
latlonFormat

Format a latitude-longitude pair
RRprofile

Seawater profile used by Reiniger and Ross (1968)
bcdToInteger

Decode BCD to integer
coastlineHalifax

Coastline data set, showing Halifax Harbour
ptPatm

Estimate atmospheric pressure in pt record
binAverage

Bin-average a vector y, based on x values
read.coastline

Scan a coastline data file
as.sealevel

Coerce data into sea-level dataset
decimate

Decimate an oce object
summary.drifter

Summarize a drifter object
plot.coastline

Plot a coastline
beamToXyz

Convert ADV or ADP data between various coordinate systems
coastlineWorld

World coastline
ctdDecimate

Decimate a CTD profile
enuToOtherAdv

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

Interpolate with Reiniger-Ross algorithm
write.ctd

Write a CTD data object as a .csv file
imagep

Plot an image with a colour palette
read.adv

Read an ADV data file
loggerToc

Decode table-of-contents file from a datalogger
latFormat

Format a latitude
section

Seawater CTD section
plot.tidem

Plot a tidal fit
plot.windrose

Plot a wind rose diagram
oce.as.POSIXlt

More general form of as.POSIXlt
parseLatLon

Parse a latitude or longitude string
vectorShow

Show some values from a vector
plot.adp

Plot ADP data
swConductivity

Seawater conductivity
read.cm

Read a current-meter data file
plotScan

Plot seawater data in a low-level fashion
read.ctd

Read a CTD data file
read.section

Read a section containing multiple CTD profiles
predict.tidem

Predict a time series from a tidal model
topoWorld

Global topographic dataset at half-degree resolution
accessors

Access or modify part of an Oce object
read.sealevel

Read a sea-level data file
addColumn

Add a column to an oce object
oce.plot.sticks

Draw a stick-plot diagram
read.topo

Read an topography file
as.coastline

Coerce data into coastline dataset
redfieldPlankton

Redfield's (1934) Table II
subset.oce

Subset an oce object
redfieldNC

Redfield's (1934) NO3 and total CO2 data
read.adp

Read an ADP data file
as.ctd

Coerce data into ctd dataset
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
fullFilename

full name of file, including path
applyMagneticDeclination

Earth magnetic declination
summary.coastline

Summarize a coastline data object
angleRemap

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

Squared buoyancy frequency for seawater
stickplot

Draw a stick-plot diagram
summary.ctd

Summarize a CTD object
resizableLabel

Provide axis names in adjustable sizes
ctimeToSeconds

Interpret a character string as a time interval
integerToAscii

Decode integer to corresponding ASCII code
summary.pt

Summarize a pt object
adp

ADP (acoustic-doppler profiler) dataset
redfieldNP

Redfield's (1934) NO3 and PO4 data
enuToOtherAdp

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

Seawater lapse rate
summary.section

Summarize a CTD section
extract

Extract data from an oce object
swSigmaTheta

Seawater potential density anomaly
plot.adv

Plot ADV data
tidedata

Tidal constituent information
ctdAddColumn

Add a column to a CTD file
oceFilter

Filter a time-series, possibly recursively
swSigmaT

Seawater quasi-potential density anomaly
is.beam

Determine coordinate system for acoustic-doppler device
plot.topo

Plot topography data
read.pt

Read an TDR temperature-depth recorder data file
tidemAstron

Do ephemeris calculations for tidem
undriftTime

Correct for drift in instrument clock
plot.section

Plot a CTD section
plotTS

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

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

Show min, mean, and max values
oceDebug

Print a debugging message
sectionSort

Sort a section
summary.tidem

Summarize a tide-model object
oce.plot.ts

Plot a time-series, obeying the timezone
schmitt

Schmitt's (1981) NACW temperature-salinity data
swDynamicHeight

Dynamic height of seawater profile
ptTrim

Trim start/end portions of a pt cast
soi

Southern Oscillation Index
oceSmooth

Smooth an oce object
wind

Wind dataset
read.lobo

Read a lobo data file
swViscosity

Seawater viscosity
plot.pt

Plot pt (pressure-temperature) recorder data
wilson

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

Summarize an ADP object
summary.processingLog

Summarize the processingLog of an Oce object
sunAngle

Solar angle as function of space and time.
summary.windrose

Summarize a windrose data object
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates
swSoundSpeed

Seawater sound speed
secondsToCtime

Convert a time interval to a colon-separated string
GMTOffsetFromTz

Determine time offset from timezone
argo

ARGO drifter dataset
beamName

Name an acoustic-doppler beam.
findInOrdered

Find indices of tiems in an ordered vector
retime

Adjust the time within Oce object
as.windrose

Create a windrose object
beamUnattenuateAdp

Unattenuate ADP beam signal strength
tidemVuf

Do ephemeris calculations for tidem
ctdRaw

Seawater CTD profile, without trimming of extraneous data
threenum

Calculate min, mean, and max values
header

Return the header for an Oce data object
geosecs235

GEOSECS station 235 data
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
summary.topo

Summarize a topography data object
swBeta

Seawater haline contraction coefficient
swSpice

Seawater spiciness
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
summary.adv

Summarize an ADV object
time.oce

Extract time from an oce object
oce.axis.POSIXct

Modified version of axis.POSIXct
ctd

Seawater CTD profile
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
detrend

Detrend a set of observations
topoInterpolate

Interpolate within a topography dataset
window.oce

Window an oce object by time or distance
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
tidem

Fit a tidal model to a timeseries
unabbreviateYear

Determine year from various abbreviations
velocityStatistics

Report statistics of ADP or ADV velocities.
plot.lobo

Plot lobo data
swSpecificHeat

Seawater specific heat
rescale

Rescale values to lie in a given range
plot.sealevel

Plot sealevel data
topoMaritimes

Topographic dataset, showing Maritime region of Canada
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
swSigma

Seawater density anomaly
geodDist

Geodesic distance on earth
swTSrho

Seawater temperature from salinity and density
pwelch

Welch periodogram
lobo

lobo dataset
rangeLimit

Substitute NA for data outside a range
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
sealevelHalifax

Sea-level data set, from Halifax Harbour
plotProfile

Plot a CTD profile of various quantities
coriolis

Coriolis parameter on rotating earth
read.oce

Read an oceanographic data file
summary.sealevel

Summarize a sealevel object
sectionSmooth

Smooth a section (preliminary version that may change)
xyzToEnuAdp

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

Summarize a cm (current meter) object
swSTrho

Seawater salinity from temperature and density
swAlpha

Seawater thermal expansion coefficient
swTFreeze

Seawater freezing temperature
lonFormat

Format a longitude
oceColors

Create a palette of colours
plot.drifter

Plot drifter data
swRho

Seawater density
useHeading

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

Seawater potential temperature
read.drifter

Read a drifter data file