Learn R Programming

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

oce (version 0.9-10)

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

Version

0.9-10

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

May 19th, 2013

Functions in oce (0.9-10)

despike

Remove spikes from a time series
ctdDecimate

Decimate a CTD profile
endeavour

Cook's Endeavour cruise track
echosounder

echosounder dataset
ctdTrim

Trim start/end portions of a CTD cast
giss

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

Bin-map an ADP object
ctdAddColumn

Add a column to a CTD file
magneticDeclination

Earth magneticDeclination
drag

Wind drag coefficient
met-class

Class to store meteorological data
loggerToc

Decode table-of-contents file from a datalogger
julianDay

Convert a POSIXt time to a Julian day
fillGap

Fill a gap in an oce object
integrateTrapezoid

Use trapezoidal integration
drifter

ARGO drifter dataset
moonAngle

Lunar angle as function of space and time.
plotTS

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

OWS Papa hydrographic record during 2010
oce.plot.ts

Plot a time-series, obeying the timezone
oce.axis.POSIXct

Modified version of axis.POSIXct
read.lisst

Read a LISST data file
head

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

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

Find indices of tiems in an ordered vector
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
mapZones

Plot zones on an existing map
ctdRaw

Seawater CTD profile, without trimming of extraneous data
julianCenturyAnomaly

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

Schmitt's (1981) NACW temperature-salinity data
plot.tdr

Plot tdr (temperature-depth recorder) data
accessors

Access or modify part of an Oce object
plot.sealevel

Plot sealevel data
beamName

Name an acoustic-doppler beam.
sectionGrid

Grid a section
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
summary.drifter

Summarize a drifter object
airHalifax

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

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

Convert ADV or ADP data between various coordinate systems
drawPalette

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

Class to store coastline data
swViscosity

Seawater viscosity
ctimeToSeconds

Interpret a character string as a time interval
interpBarnes

Grid data using Barnes algorithm
swSigma

Seawater density anomaly
matchBytes

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

Create a palette of colours
grad

Gradient of a matrix
coastlineMaritimes

Coastline data set, showing Maritime provinces of Canada
geodXy

Convert lat/lon to x/y on earth
enuToOtherAdp

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

Edit an oce object
geodDist

Geodesic distance on earth
equatorialToLocalHorizontal

Convert from equatorial coordinates to local horizontal coordinates
oce.write.table

Write the data portion of object to a file
swN2

Squared buoyancy frequency for seawater
oceConvolve

Convolve two time series
plotSticks

Draw a stick-plot diagram
plot.met

Plot meteorological data
oceans

Geometries of the five world oceans.
latFormat

Format a latitude
addColumn

Add a column to an oce object
swSigmaTheta

Seawater potential density anomaly
beamUnspreadAdp

Compensate ADP signal strength for spherical spreading
adp-class

Class to store acoustic Doppler profiler data
swSpice

Seawater spiciness
tidemAstron

Do ephemeris calculations for tidem
mapText

Plot text on a existing map
plot.echosounder

Plot echosounder data
airRho

Air density
as.ctd

Coerce data into ctd dataset
plot.adp

Plot ADP data
swDynamicHeight

Dynamic height of seawater profile
topo2

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

Trilinear interpolation in a 3D array
read.oce

Read an oceanographic data file
write.ctd

Write a CTD data object as a .csv file
eclipticalToEquatorial

Convert from ecliptical to equatorial coordinates
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
read.cm

Read a current-meter data file
mapPolygon

Plot a polygon on a existing map
formatPosition

Format geographical positions to degrees, minutes, and hemispheres
oceDebug

Print a debugging message
oceMagic

Find the type of an oceanographic data file
siderealTime

Convert a POSIXt time to a sidereal time
munk

Munk's (1966) temperature profile
byteToBinary

Format bytes as binary
plotInset

Plot an inset diagram
swConductivity

Seawater thermal conductivity
mapLocator

Locate points on a existing map
as.section

Coerce ctd data into section dataset
drifter-class

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

Seawater sound speed
geodGc

Find great-circle segments between two points on earth
sectionSmooth

Smooth a section (preliminary version that may change)
tidemVuf

Do ephemeris calculations for tidem
swSigmaT

Seawater quasi-potential density anomaly
redfieldPlankton

Redfield's (1934) Table II
makeSection

Bind CTD profiles together into a cross section
read.drifter

Read a drifter data file
lonFormat

Format a longitude
read.topo

Read an topography file
GMTOffsetFromTz

Determine time offset from timezone
mapImage

Plot an image on a existing map
swSTrho

Seawater salinity from temperature and density
pwelch

Welch periodogram
read.section

Read a section containing multiple CTD profiles
secondsToCtime

Convert a time interval to a colon-separated string
applyMagneticDeclination

Earth magnetic declination
as.met

Coerce data into met dataset
redfieldNP

Redfield's (1934) NO3 and PO4 data
sectionSort

Sort a section
coastlineSLE

Coastline of St Lawrence Estuary
plot.lobo

Plot lobo data
coastlineWorld

World coastline
summary.lisst

Summarize a LISST object
summary.met

Summarize a met object
adv

ADV (acoustic-doppler velocimeter) dataset
as.lisst

Coerce data into a lisst object
adp

ADP (acoustic-doppler profiler) dataset
showMetadataItem

Show metadata item
read.tdr

Read an TDR temperature-depth recorder data file
header

Return the header for an Oce data object
summary.adv

Summarize an ADV object
mapMeridians

Plot meridians on an existing map
swTFreeze

Seawater freezing temperature
oce-class

base class of oce package
mapPlot

Plot a map
summary.lobo

Summarize a lobo data object
swBeta

Seawater haline contraction coefficient
useHeading

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

Summarize a CTD section
oceSmooth

Smooth an oce object
summary.topo

Summarize a topography data object
levitus

Sea-surface temperature and salinity
ctd

Seawater CTD profile
swTSrho

Seawater temperature from salinity and density
echosounder-class

Class to store echosounder data
coriolis

Coriolis parameter on rotating earth
tdr

tdr (temperature-data recorder) dataset
map2lonlat

Find lon-lat coordinates of a point on a map
plot.ctd

Plot seawater CTD data
redfieldNC

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

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

Plot contours on a existing map
read.adv

Read an ADV data file
oceFilter

Filter a time-series, possibly recursively
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
formatCI

Format a confidence interval in parenthetic notation
decimate

Smooth and decimate an oce object
summary.tdr

Summarize a tdr object
plot.topo

Plot topography data
gravity

Acceleration due to earth gravity
read.ctd

Read a CTD data file
oceContour

Contour with ability to flip x and y
time.oce

Extract time from an oce object
summary.echosounder

Summarize an echosounder object
swTheta

Seawater potential temperature
plotScan

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

Plot LISST data
summary.sealevel

Summarize a sealevel object
rescale

Rescale values to lie in a given range
plotProfile

Plot a CTD profile of various quantities
wind

Wind dataset
plot.cm

Plot cm (current meter) data
sealevelHalifax

Sea-level data set, from Halifax Harbour
swAlpha

Seawater thermal expansion coefficient
soi

Southern Oscillation Index
oce.as.raw

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

Make a digital filter
met

Sample meteorological object
oceSpectrum

Wrapper to give normalized spectrum
summary.ctd

Summarize a CTD object
sunAngle

Solar angle as function of space and time.
tidedata

Tidal constituent information
fullFilename

full name of file, including path
swSCTp

Seawater salinity from electrical conductivity, temperature and pressure
swSpecificHeat

Seawater specific heat
tdr-class

Class to store temperature-depth recorder data
tdrPatm

Estimate atmospheric pressure in tdr record
parseLatLon

Parse a latitude or longitude string
summary.windrose

Summarize a windrose data object
ocePmatch

Partial matching of character strings or numbers
teosSetLibrary

Set location of TEOS-10 library
plot.windrose

Plot a wind rose diagram
windrose-class

Class to store windrose data
topo-class

Class to store topographic data
wilson

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

Summarize an ADP object
resizableLabel

Provide axis names in adjustable sizes
read.coastline

Scan a coastline data file
xyzToEnuAdp

Convert ADP or ADV from xyz coordinates to enu coordinates
swRho

Seawater density
threenum

Calculate min, mean, and max values
unabbreviateYear

Determine year from various abbreviations
webtide

Get a tidal prediction from a WebTide database
prettyPosition

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

Draw isopycnal curves on an existing temperature-salinity plot
as.sealevel

Coerce data into sea-level dataset
as.windrose

Create a windrose object
beamToXyzAdp

Convert ADP from beam coordinates to xyz coordinates
cm

Current-meter record
errorbars

Draw error bars on an existing xy diagram
extract

Extract data from an oce object
integerToAscii

Decode integer to corresponding ASCII code
plot.adv

Plot ADV data
is.beam

Determine coordinate system for acoustic-doppler device
processingLog

Add an item to object processingLog
predict.tidem

Predict a time series from a tidal model
rangeLimit

Substitute NA for data outside a range
read.sealevel

Read a sea-level data file
retime

Adjust the time within Oce object
riley

Riley's (1946) observation and theory of phytoplankton concentration
summary.tidem

Summarize a tide-model object
section

Seawater CTD section
swConservativeTemperature

Seawater conservative temperature, as defined in TEOS-10.
subset.oce

Subset an oce object
teos

Interface to TEOS-10 library
topoMaritimes

Topographic dataset, showing Maritime region of Canada
toEnuAdv

Convert ADV to enu coordinates, from any other coordinates
vectorShow

Show some values from a vector
as.echosounder

Coerce data into echosounder dataset
as.lobo

Coerce data into lobo dataset
adv-class

Class to store acoustic Doppler velocimeter data
detrend

Detrend a set of observations
drawDirectionField

Draw a direction field
RRprofile

Seawater profile used by Reiniger and Ross (1968)
window.oce

Window an oce object by time or distance
geosecs235

GEOSECS station 235 data
bcdToInteger

Decode BCD to integer
as.drifter

Coerce data into drifter dataset
velocityStatistics

Report statistics of ADP or ADV velocities.
a03

WOCE section a03
abbreviateTimeLabels

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

Create a TDR object
ctdUpdateHeader

Update a CTD header
as.coastline

Coerce data into coastline dataset
findBottom

Find the ocean bottom in an echosounder object
mapLines

Plot lines on a existing map
lisst-class

Class to store LISST data
imagep

Plot an image with a colour palette
cm-class

Class to store current meter data
as.topo

Coerce data into topo dataset
mapPoints

Plot points on a existing map
ctd-class

Class to store hydrographic data
lobo

lobo dataset
lobo-class

Class to store LOBO data
read.adp

Read an ADP data file
lisst

LISST dataset
plotPolar

Draw a polar plot.
section-class

Class to store hydrographic section data
numberAsPOSIXct

Convert a numeric time to a POSIXct time
tdrTrim

Trim start/end portions of a tdr cast
latlonFormat

Format a latitude-longitude pair
oceBisect

Find the root of a function by bisection
matrixSmooth

Smooth a matrix.
coastlineHalifax

Coastline data set, showing Halifax Harbour
toEnuAdp

Convert ADP to enu coordinates, from any other coordinates
oceApprox

Interpolate with Reiniger-Ross algorithm
plot.tidem

Plot a tidal fit
oce.as.POSIXlt

More general form of as.POSIXlt
tidem-class

Class to store tidal-constituent models
topoWorld

Global topographic dataset at half-degree resolution
plot.coastline

Plot a coastline
undriftTime

Correct for drift in instrument clock
plot.section

Plot a CTD section
plot.drifter

Plot drifter data
read.met

Read a meteorological data file
plotTaylor

Plot a model-data comparison diagram.
read.echosounder

Read an echosounder data file
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
topoInterpolate

Interpolate within a topography dataset
summary.cm

Summarize a cm (current meter) object
read.lobo

Read a lobo data file
summary.coastline

Summarize a coastline data object
sealevel-class

Class to store sealevel data
swDepth

Water depth
tidem

Fit a tidal model to a timeseries
swAbsoluteSalinity

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

Seawater lapse rate
xyzToEnuAdv

Convert ADP or ADV from xyz coordinates to enu coordinates