Learn R Programming

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

oce (version 0.9-6)

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,776

Version

0.9-6

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

December 16th, 2012

Functions in oce (0.9-6)

a03

WOCE section a03
adp

ADP (acoustic-doppler profiler) dataset
angleRemap

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

Coerce data into ctd dataset
as.met

Coerce data into met dataset
despike

Remove spikes from a time series
gravity

Acceleration due to earth gravity
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
header

Return the header for an Oce data object
as.echosounder

Coerce data into echosounder dataset
findInOrdered

Find indices of tiems in an ordered vector
as.lobo

Coerce data into lobo dataset
magneticDeclination

Earth magneticDeclination
matrixSmooth

Smooth a matrix.
mapPlot

Plot a map
moonAngle

Lunar angle as function of space and time.
geodDist

Geodesic distance on earth
numberAsPOSIXct

Convert a numeric time to a POSIXct time
ctd

Seawater CTD profile
papa

OWS Papa hydrographic record during 2010
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
plot.adp

Plot ADP data
read.lisst

Read a LISST data file
enuToOtherAdp

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

Smooth an oce object
ctdTrim

Trim start/end portions of a CTD cast
imagep

Plot an image with a colour palette
oceApprox

Interpolate with Reiniger-Ross algorithm
plotInset

Plot an inset diagram
plot.tidem

Plot a tidal fit
latFormat

Format a latitude
topoInterpolate

Interpolate within a topography dataset
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
oce.write.table

Write the data portion of object to a file
mapLines

Plot lines on a existing map
plot.coastline

Plot a coastline
resizableLabel

Provide axis names in adjustable sizes
redfieldNP

Redfield's (1934) NO3 and PO4 data
tidemAstron

Do ephemeris calculations for tidem
section-class

Class to store hydrographic section data
useHeading

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

Convert a POSIXt time to a sidereal time
wind

Wind dataset
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
binAverage

Bin-average a vector y, based on x values
drifter-class

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

Read an echosounder data file
drawPalette

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

Extract data from an oce object
read.cm

Read a current-meter data file
plot.topo

Plot topography data
findBottom

Find the ocean bottom in an echosounder object
as.section

Coerce ctd data into section dataset
drag

Wind drag coefficient
plotSticks

Draw a stick-plot diagram
oceContour

Contour with ability to flip x and y
rangeLimit

Substitute NA for data outside a range
integerToAscii

Decode integer to corresponding ASCII code
subset.oce

Subset an oce object
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
swSigmaT

Seawater quasi-potential density anomaly
rescale

Rescale values to lie in a given range
read.met

Read a meteorological data file
secondsToCtime

Convert a time interval to a colon-separated string
summary.adv

Summarize an ADV object
drawIsopycnals

Draw isopycnal curves on an existing temperature-salinity plot
sectionSort

Sort a section
riley

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

Earth magnetic declination
swAbsoluteSalinity

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

Seawater temperature from salinity and density
oceFilter

Filter a time-series, possibly recursively
swSpice

Seawater spiciness
tdrPatm

Estimate atmospheric pressure in tdr record
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
swDepth

Water depth
tidem

Fit a tidal model to a timeseries
as.drifter

Coerce data into drifter dataset
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
summary.topo

Summarize a topography data object
velocityStatistics

Report statistics of ADP or ADV velocities.
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
enuToOtherAdv

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

Find lon-lat coordinator of a point on a map
beamName

Name an acoustic-doppler beam.
geodXy

Convert lat/lon to x/y on earth
pwelch

Welch periodogram
plot.lisst

Plot LISST data
cm

Current-meter record
parseLatLon

Parse a latitude or longitude string
ctdRaw

Seawater CTD profile, without trimming of extraneous data
formatCI

Format a confidence interval in parenthetic notation
read.drifter

Read a drifter data file
read.ctd

Read a CTD data file
geodGc

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

Plot meteorological data
summary.cm

Summarize a cm (current meter) object
section

Seawater CTD section
swTheta

Seawater potential temperature
summary.section

Summarize a CTD section
ctdUpdateHeader

Update a CTD header
read.topo

Read an topography file
teosSetLibrary

Set location of TEOS-10 library
swDynamicHeight

Dynamic height of seawater profile
abbreviateTimeLabels

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

Interpret a character string as a time interval
sunAngle

Solar angle as function of space and time.
tdr

tdr (temperature-data recorder) dataset
ctdAddColumn

Add a column to a CTD file
binmapAdp

Bin-map an ADP object
integrateTrapezoid

Use trapezoidal integration
coastlineSLE

Coastline of St Lawrence Estuary
coastlineHalifax

Coastline data set, showing Halifax Harbour
tidem-class

Class to store tidal-constituent models
decimate

Smooth and decimate an oce object
threenum

Calculate min, mean, and max values
geosecs235

GEOSECS station 235 data
vectorShow

Show some values from a vector
julianCenturyAnomaly

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

Draw a direction field
lobo

lobo dataset
echosounder

echosounder dataset
head

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

Gradient of a matrix
lisst

LISST dataset
topoWorld

Global topographic dataset at half-degree resolution
topo-class

Class to store topographic data
is.beam

Determine coordinate system for acoustic-doppler device
plot.windrose

Plot a wind rose diagram
swTFreeze

Seawater freezing temperature
mapText

Plot text on a existing map
windrose-class

Class to store windrose data
plotProfile

Plot a CTD profile of various quantities
soi

Southern Oscillation Index
read.tdr

Read an TDR temperature-depth recorder data file
met-class

Class to store meteorological data
makeFilter

Make a digital filter
summary.tidem

Summarize a tide-model object
oceSpectrum

Wrapper to give normalized spectrum
makeSection

Bind CTD profiles together into a cross section
mapImage

Plot an image on a existing map
oce.plot.ts

Plot a time-series, obeying the timezone
swSigma

Seawater density anomaly
oceColors

Create a palette of colours
summary.lobo

Summarize a lobo data object
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
plotTS

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

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

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

Correct for drift in instrument clock
tdrTrim

Trim start/end portions of a tdr cast
processingLog

Add an item to object processingLog
read.sealevel

Read a sea-level data file
unabbreviateYear

Determine year from various abbreviations
summary.echosounder

Summarize an echosounder object
swSCTp

Seawater salinity from electrical conductivity, temperature and pressure
summary.drifter

Summarize a drifter object
swSoundSpeed

Seawater sound speed
redfieldNC

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

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

Class to store temperature-depth recorder data
topo2

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

Convert ADP or ADV from xyz coordinates to enu coordinates
as.lisst

Coerce data into a lisst object
as.windrose

Create a windrose object
bcdToInteger

Decode BCD to integer
coastline-class

Class to store coastline data
byteToBinary

Format bytes as binary
beamUnspreadAdp

Compensate ADP signal strength for spherical spreading
adp-class

Class to store acoustic Doppler profiler data
coriolis

Coriolis parameter on rotating earth
as.tdr

Create a TDR object
lonFormat

Format a longitude
mapZones

Plot zones on an existing map
oce.as.POSIXlt

More general form of as.POSIXlt
plot.cm

Plot cm (current meter) data
predict.tidem

Predict a time series from a tidal model
cm-class

Class to store current meter data
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
read.adv

Read an ADV data file
endeavour

Cook's Endeavour cruise track
mapPolygon

Plot a polygon on a existing map
sealevel-class

Class to store sealevel data
oce.as.raw

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

Seawater density
adv-class

Class to store acoustic Doppler velocimeter data
as.coastline

Coerce data into coastline dataset
coastlineWorld

World coastline
RRprofile

Seawater profile used by Reiniger and Ross (1968)
ctdDecimate

Decimate a CTD profile
munk

Munk's (1966) temperature profile
echosounder-class

Class to store echosounder data
errorbars

Draw error bars on an existing xy diagram
accessors

Access or modify part of an Oce object
airHalifax

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

Find the type of an oceanographic data file
swSpecificHeat

Seawater specific heat
fillGap

Fill a gap in an oce object
plot.tdr

Plot tdr (temperature-depth recorder) data
teos

Interface to TEOS-10 library
giss

Time series of NASA/GISS land-ocean temperature index
window.oce

Window an oce object by time or distance
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
redfieldPlankton

Redfield's (1934) Table II
swSTrho

Seawater salinity from temperature and density
summary.coastline

Summarize a coastline data object
summary.ctd

Summarize a CTD object
airRho

Air density
ctd-class

Class to store hydrographic data
swBeta

Seawater haline contraction coefficient
beamToXyz

Convert ADV or ADP data between various coordinate systems
lobo-class

Class to store LOBO data
interpBarnes

Grid data using Barnes algorithm
summary.tdr

Summarize a tdr object
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
lisst-class

Class to store LISST data
mapMeridians

Plot meridians on an existing map
latlonFormat

Format a latitude-longitude pair
mapContour

Plot contours on a existing map
summary.windrose

Summarize a windrose data object
julianDay

Convert a POSIXt time to a Julian day
mapPoints

Plot points on a existing map
detrend

Detrend a set of observations
met

Sample meteorological object
swLapseRate

Seawater lapse rate
oceBisect

Find the root of a function by bisection
matchBytes

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

Modified version of axis.POSIXct
plot.adv

Plot ADV data
plot.drifter

Plot drifter data
wilson

Wilson's (1963) table of seafloor spreading
plotScan

Plot seawater data in a low-level fashion
plot.lobo

Plot lobo data
plot.echosounder

Plot echosounder data
retime

Adjust the time within Oce object
plot.section

Plot a CTD section
oceConvolve

Convolve two time series
oceEdit

Edit an oce object
read.oce

Read an oceanographic data file
plotPolar

Draw a polar plot.
plot.ctd

Plot seawater CTD data
sectionGrid

Grid a section
oceDebug

Print a debugging message
plotTaylor

Plot a model-data comparison diagram.
summary.met

Summarize a met object
webtide

Get a tidal prediction from a WebTide database
swN2

Squared buoyancy frequency for seawater
swConservativeTemperature

Seawater conservative temperature, as defined in TEOS-10.
read.adp

Read an ADP data file
read.lobo

Read a lobo data file
plot.sealevel

Plot sealevel data
topoMaritimes

Topographic dataset, showing Maritime region of Canada
sealevelHalifax

Sea-level data set, from Halifax Harbour
write.ctd

Write a CTD data object as a .csv file
summary.adp

Summarize an ADP object
swConductivity

Seawater thermal conductivity
swViscosity

Seawater viscosity
tidedata

Tidal constituent information
swSigmaTheta

Seawater potential density anomaly
addColumn

Add a column to an oce object
GMTOffsetFromTz

Determine time offset from timezone
as.sealevel

Coerce data into sea-level dataset
adv

ADV (acoustic-doppler velocimeter) dataset
as.topo

Coerce data into topo dataset
fullFilename

full name of file, including path
drifter

ARGO drifter dataset
loggerToc

Decode table-of-contents file from a datalogger
oce-class

base class of oce package
oceans

Geometries of the five world oceans.
read.coastline

Scan a coastline data file
showMetadataItem

Show metadata item
read.section

Read a section containing multiple CTD profiles
summary.lisst

Summarize a LISST object
sectionSmooth

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

Summarize a sealevel object
swAlpha

Seawater thermal expansion coefficient
tidemVuf

Do ephemeris calculations for tidem
time.oce

Extract time from an oce object