Learn R Programming

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

oce (version 0.2-2)

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-2

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

May 9th, 2011

Functions in oce (0.2-2)

drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
addColumn

Add a column to an oce object
beamToXyz

Convert ADV or ADP data between various coordinate systems
GMTOffsetFromTz

Determine time offset from timezone
applyMagneticDeclination

Earth magnetic declination
as.pt

Create an TDR temperature-depth recorder data file
enuToOtherAdp

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

More general form of as.POSIXlt
read.section

Read a section containing multiple CTD profiles
RRprofile

Seawater profile used by Reiniger and Ross (1968)
a03

WOCE section a03
loggerToc

Decode table-of-contents file from a datalogger
as.windrose

Create a windrose object
read.sealevel

Read a sea-level data file
matrixSmooth

Smooth a matrix.
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
summary.topo

Summarize a topography data object
ctimeToSeconds

Interpret a character string as a time interval
historyItem

Create a history item.
plot.lobo

Plot lobo data
ctdTrim

Trim start/end portions of a CTD cast
oceSmooth

Smooth an oce object
coastlineWorld

World coastline
oceSpectrum

Wrapper to give normalized spectrum
beamName

Name an acoustic-doppler beam.
summary.cm

Summarize a cm (current meter) object
airHalifax

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

Sea-level data set acquited in 1975 at Tuktoyaktuk
decimate

Decimate an oce object
plot.ctd.scan

Plot seawater data in a low-level fashion
oceApprox

Interpolate with Reiniger-Ross algorithm
as.coastline

Coerce data into coastline dataset
fillGap

Fill a gap in an oce object
binAverage

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

Plot temperature-salinity diagram for seawater (CTD) data
plot.cm

Plot cm (current meter) data
angleRemap

Convert an angle from the 0:360 range to -180:180
as.sealevel

Coerce data into sea-level dataset
imagep

Plot an image with a colour palette
plot.section

Plot a CTD section
detrend

Detrend a set of observations
read.coastline

Scan a coastline data file
sealevelHalifax

Sea-level data set, from Halifax Harbour
swN2

Squared buoyancy frequency for seawater
ptPatm

Estimate atmospheric pressure in pt record
magic

Find the type of an oceanographic data file
lonFormat

Format a longitude
integerToAscii

Decode integer to corresponding ASCII code
despike

Remove spikes from a time series
adp

ADP (acoustic-doppler profiler) dataset
oceColors

Create a palette of colours
coastlineSLE

Coastline of St Lawrence Estuary
historyAdd

Add an item to object history
bcdToInteger

Decode BCD to integer
oceDebug

Print a debugging message
ctdRaw

Seawater CTD profile, without trimming of extraneous data
swDepth

Water depth
summary.pt

Summarize a pt object
is.beam

Determine coordinate system for acoustic-doppler device
historyAppend

Copy an object, but with an updated history.
ctd

Seawater CTD profile
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
plot.profile

Plot a CTD profile of various quantities
plot.tidem

Plot a tidal fit
makeSection

Bind CTD profiles together into a cross section
magneticDeclination

Earth magneticDeclination
plot.sealevel

Plot sealevel data
coriolis

Coriolis parameter on rotating earth
plot.topo

Plot topography data
rangeLimit

Substitute NA for data outside a range
oceFilter

Filter a time-series, possibly recursively
latlonFormat

Format a latitude-longitude pair
ptr

ptr (pressure-temperature) dataset
plot.adp

Plot ADP data
airRho

Air density
as.topo

Coerce data into topo dataset
ctdDecimate

Decimate a CTD profile
unabbreviateYear

Determine year from various abbreviations
oceBisect

Find the root of a function by bisection
read.cm

Read a current-meter data file
swLapseRate

Seawater lapse rate
coastlineHalifax

Coastline data set, showing Halifax Harbour
swViscosity

Seawater viscosity
byteToBinary

Format bytes as binary
header

Return the header for an Oce data object
read.ctd

Read a CTD data file
read.topo

Read an topography file
oce.plot.sticks

Draw a stick-plot diagram
read.adp

Read an ADP data file
beamUnattenuateAdp

Unattenuate ADP beam signal strength
as.ctd

Coerce data into ctd dataset
stickplot

Draw a stick-plot diagram
numberAsPOSIXct

Convert a numeric time to a POSIXct time
munk1966

Munk's (1966) temperature profile
rescale

Rescale values to lie in a given range
swConductivity

Seawater conductivity
geodDist

Geodesic distance on earth
useHeading

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

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

Summarize a sealevel object
oceEdit

Edit an oce object
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
swSigmaT

Seawater quasi-potential density anomaly
swSigmaTheta

Seawater potential density anomaly
fullFilename

full name of file, including path
sectionSort

Sort a section
predict.tidem

Predict a time series from a tidal model
ctdAddColumn

Add a column to a CTD file
retime

Adjust the time within Oce object
oce.write.table

Write the data portion of object to a file
topoMaritimes

Topographic dataset, showing Maritime region of Canada
resizableLabel

Provide axis names in adjustable sizes
lobo

lobo dataset
drawPalette

Draw a palette on the right-hand side of plot device
read.lobo

Read a lobo data file
oce.axis.POSIXct

Modified version of axis.POSIXct
parseLatLon

Parse a latitude or longitude string
xyzToEnuAdp

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

Summarize a coastline data object
summary.section

Summarize a CTD section
subset.oce

Subset an oce object
swSigma

Seawater density anomaly
swDynamicHeight

Dynamic height of seawater profile
window.oce

Window an oce object by time or distance
matchBytes

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

Read an oceanographic data file
read.adv

Read an ADV data file
makeFilter

Make a digital filter
summary.adv

Summarize an ADV object
geodXy

Convert lat/lon to x/y on earth
topoWorld

Global topographic dataset at half-degree resolution
plot.coastline

Plot a coastline
plot.pt

Plot pt (pressure-temperature) recorder data
summary.history

Summarize the history of an Oce object
formatCI

Format a confidence interval in parenthetic notation
swRho

Seawater density
topoInterpolate

Interpolate within a topography dataset
interpBarnes

Grid data using Barnes algorithm
plot.windrose

Plot a wind rose diagram
swSpice

Seawater spiciness
secondsToCtime

Convert a time interval to a colon-separated string
velocityStatistics

Report statistics of ADP or ADV velocities.
swBeta

Seawater haline contraction coefficient
tidem

Fit a tidal model to a timeseries
latFormat

Format a latitude
gravity

Acceleration due to earth gravity
swSoundSpeed

Seawater sound speed
swAlpha

Seawater thermal expansion coefficient
read.pt

Read an TDR temperature-depth recorder data file
plot.adv

Plot ADV data
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
plot.ctd

Plot seawater CTD data
sectionGrid

Grid a section
tidemVuf

Do ephemeris calculations for tidem
swSCTp

Seawater salinity from conductivity ratio, temperature and pressure
summary.ctd

Summarize a CTD object
showFives

Show summary-style fivenum stats
summary.windrose

Summarize a windrose data object
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
section

Seawater CTD section
sunAngle

Solar angle as function of space and time.
swTheta

Seawater potential temperature
vectorShow

Show some values from a vector
summary.lobo

Summarize a lobo data object
tidedata

Tidal constituent information
summary.tidem

Summarize a tide-model object
swSTrho

Seawater salinity from temperature and density
swSpecificHeat

Seawater specific heat
undriftTime

Correct for drift in instrument clock
wind

Wind dataset
swTFreeze

Seawater freezing temperature
tidemAstron

Do ephemeris calculations for tidem
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
swTSrho

Seawater temperature from salinity and density
write.ctd

Write a CTD data object as a .csv file
ctdUpdateHeader

Update a CTD header
enuToOtherAdv

Convert ADV from east-north-up coordinates to other coordinates
oce.plot.ts

Plot a time-series, obeying the timezone
pwelch

Welch periodogram
ptTrim

Trim start/end portions of a pt cast
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
summary.adp

Summarize an ADP object
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates