Learn R Programming

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

oce (version 0.2-1)

Analysis of Oceanographic data

Description

Supports the analysis of Oceanographic data, including ADP measurements, CTD measurements, sectional data, sea-level timeseries, 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.2-1

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

April 28th, 2011

Functions in oce (0.2-1)

summary.cm

Summarize a cm (current meter) object
parseLatLon

Parse a latitude or longitude string
gravity

Acceleration due to earth gravity
geodXy

Convert lat/lon to x/y on earth
historyItem

Create a history item.
xyzToEnuAdv

Convert ADV from xyz coordinates to enu coordinates
summary.pt

Summarize a pt object
integer2ascii

Decode integer to corresponding ASCII code
ctd

Seawater CTD profile
swTFreeze

Seawater freezing temperature
RRprofile

Seawater profile used by Reiniger and Ross (1968)
ctdAddColumn

Add a column to a CTD file
as.ctd

Coerce data into ctd dataset
airRho

Air density
drawpalette

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

Earth magnetic declination
matrixSmooth

Smooth a matrix.
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
imagep

Plot an image with a colour palette
numberAsPOSIXct

Convert a numeric time to a POSIXct time
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
GMTOffsetFromTz

Determine time offset from timezone
coastlineSLE

Coastline of St Lawrence Estuary
as.topo

Coerce data into topo dataset
beamName

Name an acoustic-doppler beam.
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
is.beam

Determine coordinate system for acoustic-doppler device
oceColors

Create a palette of colours
detrend

Detrend a set of observations
addColumn

Add a column to an oce object
airHalifax

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

Create an TDR temperature-depth recorder data file
as.sealevel

Coerce data into sea-level dataset
oce.as.POSIXlt

More general form of as.POSIXlt
magic

Find the type of an oceanographic data file
byteToBinary

Format bytes as binary
oce.plot.ts

Plot a time-series, obeying the timezone
ctdTrim

Trim start/end portions of a CTD cast
latlonFormat

Format a latitude-longitude pair
plot.adp

Plot ADP data
a03

WOCE section a03
enuToOtherAdp

Convert ADP from east-north-up coordinates to other coordinates
as.coastline

Coerce data into coastline dataset
interpBarnes

Grid data using Barnes algorithm
ctdDecimate

Decimate a CTD profile
loggerToc

Decode table-of-contents file from a datalogger
plot.tidem

Plot a tidal fit
plot.lobo

Plot lobo data
formatci

Format a confidence interval in parenthetic notation
ctd.raw

Seawater CTD profile, without trimming of extraneous data
plot.profile

Plot a CTD profile of various quantities
fillGap

Fill a gap in an oce object
lonFormat

Format a longitude
oceSmooth

Smooth an oce object
plot.windrose

Plot a wind rose diagram
historyAdd

Add an item to object history
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
despike

Remove spikes from a time series
swConductivity

Seawater conductivity
oce.write.table

Write the data portion of object to a file
ctimeToSeconds

Interpret a character string as a time interval
summary.adv

Summarize an ADV object
oce.approx

Interpolate with Reiniger-Ross algorithm
fullFilename

full name of file, including path
read.section

Read a section containing multiple CTD profiles
ptTrim

Trim start/end portions of a pt cast
oceBisect

Find the root of a function by bisection
plot.topo

Plot topography data
swDynamicHeight

Dynamic height of seawater profile
beamAttenuateAdp

Attenuate ADP beam signal strength
enuToOtherAdv

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

Make a digital filter
sectionSmooth

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

Plot seawater data in a low-level fashion
latFormat

Format a latitude
sectionSort

Sort a section
beamToXyz

Convert ADV or ADP data between various coordinate systems
header

Return the header for an Oce data object
decimate

Decimate an oce object
rangelimit

Substitute NA for data outside a range
lobo

lobo dataset
oceDebug

Print a debugging message
magneticDeclination

Earth magneticDeclination
read.adp

Read an ADP data file
geodDist

Geodesic distance on earth
oce.plot.sticks

Draw a stick-plot diagram
coastlineHalifax

Coastline data set, showing Halifax Harbour
tidemAstron

Do ephemeris calculations for tidem
read.adv

Read an ADV data file
read.cm

Read a current-meter data file
tidedata

Tidal constituent information
section

Seawater CTD section
oceSpectrum

Wrapper to give normalized spectrum
plot.section

Plot a CTD section
summary.windrose

Summarize a windrose data object
pwelch

Welch periodogram
plot.TS

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

Seawater spiciness
swBeta

Seawater haline contraction coefficient
unabbreviateYear

Determine year from various abbreviations
ptr

ptr (pressure-temperature) dataset
binAverage

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

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

Coriolis parameter on rotating earth
xyzToEnuAdp

Convert ADP from xyz coordinates to enu coordinates
read.topo

Read an topography file
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
swLapseRate

Seawater lapse rate
read.sealevel

Read a sea-level data file
swAlpha

Seawater thermal expansion coefficient
oceFilter

Filter a time-series, possibly recursively
sealevelHalifax

Sea-level data set, from Halifax Harbour
makeSection

Bind CTD profiles together into a cross section
undriftTime

Correct for drift in instrument clock
plot.cm

Plot cm (current meter) data
secondsToCtime

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

Plot seawater CTD data
swN2

Squared buoyancy frequency for seawater
retime

Adjust the time within Oce object
summary.ctd

Summarize a CTD object
munk1966

Munk's (1966) temperature profile
read.oce

Read an oceanographic data file
bcdToInteger

Decode BCD to integer
summary.lobo

Summarize a lobo data object
plot.sealevel

Plot sealevel data
summary.coastline

Summarize a coastline data object
window.oce

Window an oce object by time or distance
ptPatm

Estimate atmospheric pressure in pt record
ctdUpdateHeader

Update a CTD header
subset.oce

Subset an oce object
swDepth

Water depth
predict.tidem

Predict a time series from a tidal model
read.ctd

Read a CTD data file
read.pt

Read an TDR temperature-depth recorder data file
historyAppend

Copy an object, but with an updated history.
oceEdit

Edit an oce object
resizableLabel

Provide axis names in adjustable sizes
summary.adp

Summarize an ADP object
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
swSpecificHeat

Seawater specific heat
rescale

Rescale values to lie in a given range
sealevelTuktoyaktuk

Sea-level data set acquited in 1975 at Tuktoyaktuk
useHeading

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

Summarize a sealevel object
swTSrho

Seawater temperature from salinity and density
swRho

Seawater density
swSigmaT

Seawater quasi-potential density anomaly
sunAngle

Solar angle as function of space and time.
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
read.coastline

Scan a coastline data file
summary.section

Summarize a CTD section
sectionGrid

Grid a section
swSigmaTheta

Seawater potential density anomaly
swSoundSpeed

Seawater sound speed
stickplot

Draw a stick-plot diagram
plot.pt

Plot pt (pressure-temperature) recorder data
swSigma

Seawater density anomaly
swSTrho

Seawater salinity from temperature and density
plot.adv

Plot ADV data
summary.topo

Summarize a topography data object
topoWorld

Global topographic dataset at half-degree resolution
plot.coastline

Plot a coastline
topoMaritimes

Topographic dataset, showing Maritime region of Canada
showFives

Show summary-style fivenum stats
write.ctd

Write a CTD data object as a .csv file
vectorShow

Show some values from a vector
summary.tidem

Summarize a tide-model object
tidemVuf

Do ephemeris calculations for tidem
coastlineWorld

World coastline
adp

ADP (acoustic-doppler profiler) dataset
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
summary.history

Summarize the history of an Oce object
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
swViscosity

Seawater viscosity
tidem

Fit a tidal model to a timeseries
as.windrose

Create a windrose object
matchBytes

Find spots in a raw vector that match a given byte sequence.
oce.axis.POSIXct

Modified version of axis.POSIXct
read.lobo

Read a lobo data file
swTheta

Seawater potential temperature
wind

Wind dataset