Learn R Programming

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

oce (version 0.9-13)

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.9-13

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

January 29th, 2014

Functions in oce (0.9-13)

as.ctd

Coerce data into ctd dataset
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
oceSpectrum

Wrapper to give normalized spectrum
adp-class

Class to store acoustic Doppler profiler data
mapMeridians

Plot meridians on an existing map
bcdToInteger

Decode BCD to integer
as.echosounder

Coerce data into echosounder dataset
airRho

Air density
read.drifter

Read a drifter data file
drawPalette

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

Coastline data set, showing Maritime provinces of Canada
ctd-class

Class to store hydrographic data
adv

ADV (acoustic-doppler velocimeter) dataset
as.sealevel

Coerce data into sea-level dataset
moonAngle

Lunar angle as function of space and time.
binAverage

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

World coastline
geodDist

Geodesic distance on earth
coastlineHalifax

Coastline data set, showing Halifax Harbour
lobo-class

Class to store LOBO data
plot.ctd

Plot seawater CTD data
as.coastline

Coerce data into coastline dataset
mapPoints

Plot points on a existing map
abbreviateTimeLabels

Abbreviate a list of times by removing commonalities (e.g. year)
binmapAdp

Bin-map an ADP object
beamUnspreadAdp

Compensate ADP signal strength for spherical spreading
as.met

Coerce data into met dataset
beamToXyz

Convert ADV or ADP data between various coordinate systems
latFormat

Format a latitude
addColumn

Add a column to an oce object
ctd

Seawater CTD profile
fullFilename

full name of file, including path
as.tdr

Create a TDR object
angleRemap

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

Draw a stick-plot diagram
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
approx3d

Trilinear interpolation in a 3D array
head

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

Interpret a character string as a time interval
findInOrdered

Find indices of tiems in an ordered vector
as.lisst

Coerce data into a lisst object
cm-class

Class to store current meter data
echosounder-class

Class to store echosounder data
RRprofile

Seawater profile used by Reiniger and Ross (1968)
fillGap

Fill a gap in an oce object
oceApprox

Interpolate with Reiniger-Ross algorithm
ctdRaw

Seawater CTD profile, without trimming of extraneous data
oceColors

Create a palette of colours
beamName

Name an acoustic-doppler beam.
as.section

Coerce ctd data into section dataset
oce.axis.POSIXct

Modified version of axis.POSIXct
geosecs235

GEOSECS station 235 data
accessors

Access or modify part of an Oce object
decimate

Smooth and decimate an oce object
detrend

Detrend a set of observations
as.drifter

Coerce data into drifter dataset
coastline-class

Class to store coastline data
adv-class

Class to store acoustic Doppler velocimeter data
echosounder

echosounder dataset
summary.cm

Summarize a cm (current meter) object
oceConvolve

Convolve two time series
coriolis

Coriolis parameter on rotating earth
lobo

lobo dataset
enuToOtherAdp

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

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
map2lonlat

Find lon-lat coordinates of a point on a map
drifter

ARGO drifter dataset
ocePmatch

Partial matching of character strings or numbers
ctdUpdateHeader

Update a CTD header
latlonFormat

Format a latitude-longitude pair
oceDebug

Print a debugging message
integrateTrapezoid

Use trapezoidal integration
oceEdit

Edit an oce object
oce.as.raw

A version of as.raw() that clips data to prevent warnings
makeSection

Bind CTD profiles together into a cross section
julianCenturyAnomaly

Convert a Julian-Day number to a time in julian centuries since noon on January 1, 1900.
predict.tidem

Predict a time series from a tidal model
swConductivity

Seawater thermal conductivity
swSigmaTheta

Seawater potential density anomaly
oceBisect

Find the root of a function by bisection
errorbars

Draw error bars on an existing xy diagram
interpBarnes

Grid data using Barnes algorithm
swSpecificHeat

Seawater specific heat
oceSmooth

Smooth an oce object
prettyPosition

Round a geographical positions in degrees, minutes, and seconds
parseLatLon

Parse a latitude or longitude string
oce.plot.ts

Plot a time-series, obeying the timezone
imagep

Plot an image with a colour palette
plot.tidem

Plot a tidal fit
summary.lisst

Summarize a LISST object
read.tdr

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

Plot echosounder data
read.adv

Read an ADV data file
tidemVuf

Do ephemeris calculations for tidem
summary.echosounder

Summarize an echosounder object
levitus

Sea-surface temperature and salinity
sealevelHalifax

Sea-level data set, from Halifax Harbour
redfieldNP

Redfield's (1934) NO3 and PO4 data
read.sealevel

Read a sea-level data file
swTFreeze

Seawater freezing temperature
summary.adp

Summarize an ADP object
section-class

Class to store hydrographic section data
summary.adv

Summarize an ADV object
gravity

Acceleration due to earth gravity
plotTaylor

Plot a model-data comparison diagram.
sealevel-class

Class to store sealevel data
swTheta

Seawater potential temperature
mapPlot

Plot a map
plot.topo

Plot topography data
makeFilter

Make a digital filter
numberAsPOSIXct

Convert a numeric time to a POSIXct time
mapLines

Plot lines on a existing map
met

Sample meteorological object
summary.section

Summarize a CTD section
swConservativeTemperature

Seawater conservative temperature, as defined in TEOS-10.
swDynamicHeight

Dynamic height of seawater profile
tdr-class

Class to store temperature-depth recorder data
oceContour

Contour with ability to flip x and y
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
tidem-class

Class to store tidal-constituent models
plot.adp

Plot ADP data
toEnuAdp

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

Summarize a tdr object
munk

Munk's (1966) temperature profile
swSigma

Seawater density anomaly
mapZones

Plot zones on an existing map
plot.lobo

Plot lobo data
vectorShow

Show some values from a vector
met-class

Class to store meteorological data
oceFilter

Filter a time-series, possibly recursively
plotInset

Plot an inset diagram
section

Seawater CTD section
secondsToCtime

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

Plot a coastline
processingLog

Add an item to object processingLog
sectionSort

Sort a section
read.lisst

Read a LISST data file
useHeading

Replace the heading for one instrument with the heading for another
window.oce

Window an oce object by time or distance
tidem

Fit a tidal model to a timeseries
redfieldPlankton

Redfield's (1934) Table II
resizableLabel

Provide axis names in adjustable sizes
wilson

Wilson's (1963) table of seafloor spreading
webtide

Get a tidal prediction from a WebTide database
schmitt

Schmitt's (1981) NACW temperature-salinity data
topo-class

Class to store topographic data
plot.cm

Plot cm (current meter) data
unabbreviateYear

Determine year from various abbreviations
swSTrho

Seawater salinity from temperature and density
read.section

Read a section containing multiple CTD profiles
adp

ADP (acoustic-doppler profiler) dataset
subset.oce

Subset an oce object
write.ctd

Write a CTD data object as a .csv file
GMTOffsetFromTz

Determine time offset from timezone
summary.drifter

Summarize a drifter object
drag

Wind drag coefficient
swN2

Squared buoyancy frequency for seawater
despike

Remove spikes from a time series
read.lobo

Read a lobo data file
plot.drifter

Plot drifter data
swRho

Seawater density
read.coastline

Scan a coastline data file
swSigmaT

Seawater quasi-potential density anomaly
rangeLimit

Substitute NA for data outside a range
soi

Southern Oscillation Index
drawDirectionField

Draw a direction field
swSpice

Seawater spiciness
tdr

tdr (temperature-data recorder) dataset
topoInterpolate

Interpolate within a topography dataset
ctdTrim

Trim start/end portions of a CTD cast
swDepth

Water depth
summary.lobo

Summarize a lobo data object
topoMaritimes

Topographic dataset, showing Maritime region of Canada
swSoundAbsorption

Seawater sound absorption in dB/m
rescale

Rescale values to lie in a given range
swViscosity

Seawater viscosity
read.cm

Read a current-meter data file
swAlpha

Seawater thermal expansion coefficient
teosSetLibrary

Set location of TEOS-10 library
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
summary.tidem

Summarize a tide-model object
tidedata

Tidal constituent information
tidemAstron

Do ephemeris calculations for tidem
time.oce

Extract time from an oce object
retime

Adjust the time within Oce object
summary.sealevel

Summarize a sealevel object
summary.ctd

Summarize a CTD object
as.lobo

Coerce data into lobo dataset
endeavour

Cook's Endeavour cruise track
velocityStatistics

Report statistics of ADP or ADV velocities.
sunAngle

Solar angle as function of space and time.
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
undriftTime

Correct for drift in instrument clock
windrose-class

Class to store windrose data
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
extract

Extract data from an oce object
grad

Gradient of a matrix
magneticDeclination

Earth magneticDeclination
applyMagneticDeclination

Earth magnetic declination
as.windrose

Create a windrose object
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
matrixSmooth

Smooth a matrix.
mapContour

Plot contours on a existing map
findBottom

Find the ocean bottom in an echosounder object
oce.write.table

Write the data portion of object to a file
giss

Time series of NASA/GISS land-ocean temperature index
julianDay

Convert a POSIXt time to a Julian day
geodGc

Find great-circle segments between two points on earth
plot.lisst

Plot LISST data
is.beam

Determine coordinate system for acoustic-doppler device
mapImage

Plot an image on a existing map
mapLocator

Locate points on a existing map
oceMagic

Find the type of an oceanographic data file
plot.section

Plot a CTD section
plot.tdr

Plot tdr (temperature-depth recorder) data
plot.windrose

Plot a wind rose diagram
read.oce

Read an oceanographic data file
plotScan

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

Read a meteorological data file
riley

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

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

Read an topography file
summary.met

Summarize a met object
summary.topo

Summarize a topography data object
tdrPatm

Estimate atmospheric pressure in tdr record
swAbsoluteSalinity

Seawater absolute salinity, as defined in TEOS-10.
xyzToEnuAdv

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

Summarize a windrose data object
threenum

Calculate min, mean, and max values
topoWorld

Global topographic dataset at half-degree resolution
wind

Wind dataset
a03

WOCE section a03
as.topo

Coerce data into topo dataset
coastlineSLE

Coastline of St Lawrence Estuary
ctdDecimate

Decimate a CTD profile
cm

Current-meter record
airHalifax

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

Format a confidence interval in parenthetic notation
lisst

LISST dataset
byteToBinary

Format bytes as binary
lonFormat

Format a longitude
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
geodXy

Convert lat/lon to x/y on earth
drifter-class

Class to store drifter data, e.g. from an ARGOS float
loggerToc

Decode table-of-contents file from a datalogger
matchBytes

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

More general form of as.POSIXlt
mapText

Plot text on a existing map
oce-class

base class of oce package
papa

OWS Papa hydrographic record during 2010
plot.met

Plot meteorological data
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
oceans

Geometries of the five world oceans.
plot.sealevel

Plot sealevel data
plotPolar

Draw a polar plot.
swBeta

Seawater haline contraction coefficient
swSCTp

Seawater salinity from electrical conductivity, temperature and pressure
swTSrho

Seawater temperature from salinity and density
pwelch

Welch periodogram
read.ctd

Read a CTD data file
read.adp

Read an ADP data file
sectionGrid

Grid a section
turbulence

Grant et al. (1962) turbulence data
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
topo2

World topograph data, on a 2-degree grid.
sectionSmooth

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

Summarize a coastline data object
enuToOtherAdv

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

Add a column to a CTD file
header

Return the header for an Oce data object
lisst-class

Class to store LISST data
mapPolygon

Plot a polygon on a existing map
integerToAscii

Decode integer to corresponding ASCII code
plot.adv

Plot ADV data
plotTS

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

Plot a CTD profile of various quantities
read.echosounder

Read an echosounder data file
showMetadataItem

Show metadata item
siderealTime

Convert a POSIXt time to a sidereal time
swLapseRate

Seawater lapse rate
swSoundSpeed

Seawater sound speed
tdrTrim

Trim start/end portions of a tdr cast
teos

Interface to TEOS-10 library