Learn R Programming

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

oce (version 0.9-14)

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

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

May 19th, 2014

Functions in oce (0.9-14)

addColumn

Add a column to an oce object
adp-class

Class to store acoustic Doppler profiler data
adp

ADP (acoustic-doppler profiler) dataset
approx3d

Trilinear interpolation in a 3D array
as.sealevel

Coerce data into sea-level dataset
beamToXyzAdp

Change ADP coordinate system
drawDirectionField

Draw a direction field
ctdUpdateHeader

Update a CTD header
as.lisst

Coerce data into a lisst object
coastline-class

Class to store coastline data
as.ctd

Coerce data into ctd dataset
bcdToInteger

Decode BCD to integer
formatCI

Confidence interval in parenthetic notation
as.windrose

Create a windrose object
as.met

Coerce data into met dataset
decodeHeader

Decode a Nortek header
ctimeToSeconds

Interpret a character string as a time interval
gps-class

Class to store gps data
as.lobo

Coerce data into lobo dataset
is.beam

Determine coordinate system
decimate

Smooth and decimate an oce object
as.coastline

Coerce data into coastline dataset
mapImage

Plot an image on a existing map
airRho

Air density
oceColors

Create a palette of colours
enuToOtherAdv

Convert east-north-up to other coordinate
julianCenturyAnomaly

Julian-Day number to Julian century
mapZones

Plot zones on an existing map
binAverage

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

Convert ecliptical to equatorial coordinate
read.gps

Scan a gps data file
mapMeridians

Plot meridians on an existing map
siderealTime

Convert a POSIXt time to a sidereal time
summary.met

Summarize a met object
mapScalebar

Draw a scalebar on an existing map
echosounder-class

Class to store echosounder data
geodGc

Great-circle segments between points on earth
geodXy

Convert lon/lat to x/y on earth
interpBarnes

Grid data using Barnes algorithm
colormap

Calculate color map
plot.cm

Plot cm (current meter) data
oceContour

Contour with ability to flip x and y
plot.sealevel

Plot sealevel data
equatorialToLocalHorizontal

Convert equatorial to local horizontal coordinate
mapPolygon

Plot a polygon on a existing map
moonAngle

Lunar angle as function of space and time.
plot.lobo

Plot lobo data
plot.tdr

Plot tdr (temperature-depth recorder) data
angleRemap

Convert angles from 0:360 to -180:180
as.gps

Coerce data into a GPS dataset
oceFilter

Filter a time-series, possibly recursively
lobo

lobo dataset
as.tdr

Create a TDR object
binMean

Bin-count or bin-average f=f(x) or f=f(x,y), based on x or (x,y) values
errorbars

Draw error bars on an existing xy diagram
imagep

Plot an image with a color palette
plotScan

Plot seawater data in a low-level fashion
plotInset

Plot an inset diagram
ctdRaw

Seawater CTD profile, without trimming of extraneous data
coastlineWorld

World coastline
drifter

ARGO drifter dataset
findInOrdered

Find indices of tiems in an ordered vector
beamUnspreadAdp

Adjust ADP signal for spherical spreading
swDepth

Water depth
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
formatPosition

Geographical position in degrees and minutes
ctd-class

Class to store hydrographic data
ocePmatch

Partial matching of strings or numbers
ctdDecimate

Decimate a CTD profile
plotTS

Plot temperature-salinity diagram
oce.as.raw

Version of as.raw() that clips data
swLapseRate

Seawater lapse rate
numberAsPOSIXct

Convert a numeric time to a POSIXct time
swSigmaTheta

Seawater potential density anomaly
oce.write.table

Write the data portion of object to a file
mapLocator

Locate points on a existing map
runlm

Calculate running linear models
rangeExtended

Calculate range, extended a little
oceSpectrum

Wrapper to give normalized spectrum
plot.lisst

Plot LISST data
detrend

Detrend a set of observations
plot.windrose

Plot a wind rose diagram
read.lisst

Read a LISST data file
prettyPosition

Pretty lat/lon in deg, min, sec
makeSection

Bind CTD profiles together into a cross section
fullFilename

full name of file, including path
met

Sample meteorological object
threenum

Calculate min, mean, and max values
read.ctd

Read a CTD data file
geodDist

Geodesic distance on earth
magneticField

Earth magnetic declination, inclination, and intensity
read.cm

Read a current-meter data file
parseLatLon

Parse a latitude or longitude string
oceMagic

Find the type of an oceanographic data file
plot.tidem

Plot a tidal fit
landsat-class

Class to store landsat data
plot.topo

Plot topography data
secondsToCtime

Time interval as colon-separated string
predict.tidem

Predict a time series from a tidal model
mapPoints

Plot points on a existing map
subset.lisst

Subset a lisst object
swConductivity

Seawater thermal conductivity
processingLog

Add an item to object processingLog
matchBytes

Locate byte sequences in a raw vector
tdrPatm

Estimate atmospheric pressure in tdr record
showMetadataItem

Show metadata item
subset.echosounder

Subset an echosounder object
read.oce

Read an oceanographic data file
plot.section

Plot a CTD section
read.topo

Read an topography file
sealevel

Sea-level data set, from Halifax Harbour
unabbreviateYear

Determine year from various abbreviations
subset.cm

Subset a cm object
sunAngle

Solar angle as function of space and time.
summary.lobo

Summarize a lobo data object
summary.tdr

Summarize a tdr object
swAbsoluteSalinity

Seawater absolute salinity, in TEOS-10
read.sealevel

Read a sea-level data file
swSpecificHeat

Seawater specific heat
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
swTFreeze

Seawater freezing temperature
numberAsHMS

Convert a numeric time to hour, minute, and second
subset.ctd

Subset a ctd object
topo-class

Class to store topographic data
section

Hydrographic section
time.oce

Extract time from an oce object
read.met

Read a meteorological data file
oce-class

base class of oce package
swAlpha

Seawater thermal expansion coefficient
summary.echosounder

Summarize an echosounder object
mapLongitudeLatitudeXY

Convert from longitude and latitude to x and y
summary.cm

Summarize a cm (current meter) object
plot.gps

Plot a gps object
matrixSmooth

Smooth a matrix.
rescale

Rescale values to lie in a given range
oceConvolve

Convolve two time series
sealevel-class

Class to store sealevel data
rangeLimit

Substitute NA for data outside a range
swSCTp

Salinity from electrical conductivity, temperature and pressure
plot.adv

Plot ADV data
subset.section

Subset a section object
read.landsat

Read a landsat data file
subset.adv

Subset an adv object
plot.drifter

Plot drifter data
read.echosounder

Read an echosounder data file
subset.sealevel

Subset a sealevel object
swRho

Seawater density
swSigma

Seawater density anomaly
summary.adp

Summarize an ADP object
plot.met

Plot meteorological data
teosSetLibrary

Set location of TEOS-10 library
section-class

Class to store hydrographic section data
accessors

Access or modify part of an Oce object
tidem

Fit a tidal model to a timeseries
summary.landsat

Summarize a landsat object
sectionSmooth

Smooth a section
swConservativeTemperature

Seawater conservative temperature, in TEOS-10.
summary.drifter

Summarize a drifter object
swSoundAbsorption

Seawater sound absorption in dB/m
despike

Remove spikes from a time series
summary.section

Summarize a CTD section
beamName

Name an acoustic-doppler beam.
swRrho

Density ratio
resizableLabel

Provide axis names in adjustable sizes
ctdFindProfiles

Find profiles within a towyow CTD record
fillGap

Fill a gap in an oce object
useHeading

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

Convert a POSIXt time to a Julian day
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
read.adv

Read an ADV data file
nao

North Atlantic Oscillation Index
swDynamicHeight

Dynamic height of seawater profile
read.observatory

Read observatory data file
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
swSoundSpeed

Seawater sound speed
swPressure

Water pressure
summary.ctd

Summarize a CTD object
summary.coastline

Summarize a coastline data object
swSigmaT

Seawater quasi-potential density anomaly
velocityStatistics

Report statistics of ADP or ADV velocities.
oce.plot.ts

Plot a time-series, obeying the timezone
tidem-class

Class to store tidal-constituent models
read.coastline

Scan a coastline data file
read.drifter

Read a drifter data file
window.oce

Window an oce object by time or distance
write.ctd

Write a CTD data object as a .csv file
subset.tdr

Subset a tdr object
webtide

Get a tidal prediction from a WebTide database
toEnuAdp

Convert from ENU coordinates
read.lobo

Read a lobo data file
topoWorld

Global topographic dataset at half-degree resolution
read.tdr

Read temperature-depth recorder file
standardDepths

Standard oceanographic depths
xyzToEnuAdv

Convert XYZ to ENU coordinates
as.drifter

Coerce data into drifter dataset
toEnuAdv

Convert from ENU coordinates
subset.adp

Subset an adp object
applyMagneticDeclination

Earth magnetic declination
subset.topo

Subset a topo object
summary.sealevel

Summarize a sealevel object
swTheta

Seawater potential temperature
summary.windrose

Summarize a windrose data object
read.adp

Read an ADP data file
tidemAstron

Do ephemeris calculations for tidem
lonFormat

Format a longitude
vectorShow

Show some values from a vector
as.section

Coerce ctd data into section dataset
byteToBinary

Format bytes as binary
oceSmooth

Smooth an oce object
decodeTime

Decode a time, similar to as.POSIXct()
swViscosity

Seawater viscosity
latFormat

Format a latitude
lobo-class

Class to store LOBO data
undriftTime

Correct for drift in instrument clock
mapContour

Plot contours on a existing map
summary.gps

Summarize a gps object
tidedata

Tidal constituent information
oceDebug

Print a debugging message
lisst

LISST dataset
oce.as.POSIXlt

More general form of as.POSIXlt
oceEdit

Edit an oce object
read.section

Read a section containing multiple CTD profiles
plot.coastline

Plot a coastline
summary.tidem

Summarize a tide-model object
teos

Interface to TEOS-10 library
tidemVuf

Do ephemeris calculations for tidem
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
windrose-class

Class to store windrose data
tdrTrim

Trim start/end portions of a tdr cast
adv-class

Class to store acoustic Doppler velocimeter data
abbreviateTimeLabels

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

Determine time offset from timezone
binmapAdp

Bin-map an ADP object
cm

Current-meter record
beamToXyz

Change ADV or ADP coordinate systems
ctdAddColumn

Add a column to a CTD file
coastlineBest

Find the name of the best coastline file
ctd

A CTD profile in Halifax Harbour
coriolis

Coriolis parameter on rotating earth
head

Ends of oce objects.
integerToAscii

Decode integer to corresponding ASCII code
findBottom

Find the ocean bottom in an echosounder object
ctdTrim

Trim start/end portions of a CTD cast
extract

Extract data from an oce object
loggerToc

Decode table-of-contents file from a datalogger
swBeta

Seawater haline contraction coefficient
xyzToEnuAdp

Convert XYZ to ENU coordinates
grad

Gradient of a matrix
ungrid

Extract (x, y, z) from (x, y, grid)
map2lonlat

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

Use trapezoidal integration
enuToOtherAdp

Convert east-north-up to other coordinate
mapPlot

Plot a map
gravity

Acceleration due to earth gravity
makeFilter

Make a digital filter
lisst-class

Class to store LISST data
plot.ctd

Plot seawater CTD data
retime

Adjust the time within Oce object
met-class

Class to store meteorological data
plot.adp

Plot ADP data
swSTrho

Seawater salinity from temperature and density
oce.axis.POSIXct

Modified version of axis.POSIXct
plotTaylor

Plot a model-data comparison diagram.
sectionSort

Sort a section
soi

Southern Oscillation Index
swN2

Squared buoyancy frequency for seawater
swTSrho

Seawater temperature from salinity and density
summary.lisst

Summarize a LISST object
summary.adv

Summarize an ADV object
summary.topo

Summarize a topography data object
tdr

tdr (temperature-data recorder) dataset
topoInterpolate

Interpolate within a topography dataset
wind

Wind dataset
as.echosounder

Coerce data into echosounder dataset
as.topo

Coerce data into topo dataset
cm-class

Class to store current meter data
plotProfile

Plot a CTD profile of various quantities
binApply

Apply a function to binned matrix data
oceApprox

Interpolate 1D data with Unesco or Reiniger-Ross algorithm
drawPalette

Draw palette on RHS of plot device
drifter-class

Class for drifter data
drawIsopycnals

Add isopycnal curves to TS plot
echosounder

echosounder dataset
tdr-class

Class to store temperature-depth recorder data
adv

ADV (acoustic-doppler velocimeter) dataset
header

Return the header for an Oce data object
landsatTrim

Trim a landsat image to a lat-lon box
latlonFormat

Format a latitude-longitude pair
mapLines

Plot lines on a existing map
mapText

Plot text on a existing map
plot.landsat

Plot landsat data
plot.echosounder

Plot echosounder data
plotPolar

Draw a polar plot.
plotSticks

Draw a stick-plot diagram
pwelch

Welch periodogram
sectionGrid

Grid a section
subset.oce

Subset an oce object
subset.coastline

Subset a coastline object
swSpice

Seawater spiciness