Learn R Programming

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

oce (version 0.9-17)

Analysis of Oceanographic Data

Description

Supports the analysis of Oceanographic data, including ADCP measurements, CTD measurements, sectional data, sea-level time series, coastline files, etc. Handles dozens of specialized functions for calculating seawater properties such as potential temperature and density, as well as derived properties such as buoyancy frequency and dynamic height. Map projections are calculated using PROJ.4 functions included within the oce.

Copy Link

Version

Install

install.packages('oce')

Monthly Downloads

2,573

Version

0.9-17

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

May 22nd, 2015

Functions in oce (0.9-17)

T90fromT68

Convert between temperature scales
cm

Current-meter record
addColumn

Add a column to an oce object
grad

Gradient of a matrix
binmapAdp

Bin-map an ADP object
as.coastline

Coerce data into coastline dataset
drifter-class

Class for drifter data
imagep

Plot an image with a color palette
echosounder-class

Class to store echosounder data
mapArrows

Plot arrows on a existing map
julianDay

Convert a POSIXt time to a Julian day
lookWithin

Look within the first element of a list, replacing other elements from its contents.
read.coastline

Scan a coastline data file
fullFilename

full name of file, including path
read.adv

Read an ADV data file
summary.gps

Summarize a gps object
binMean

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

Class to store coastline data
ctdAddColumn

Add a column to a CTD file
summary.lobo

Summarize a lobo data object
swAbsoluteSalinity

Seawater absolute salinity, in GSW formulation
lisst-class

Class to store LISST data
logger-class

Class to store logger data
beamName

Name an acoustic-doppler beam.
adp

ADP (acoustic-doppler profiler) dataset
oce-class

base class of oce package
time.oce

Extract time from an oce object
met

Sample meteorological object
magneticField

Earth magnetic declination, inclination, and intensity
bcdToInteger

Decode BCD to integer
lobo

lobo dataset
landsatAdd

Add a band to a landsat image
makeSection

Bind CTD profiles together into a cross section
section

Hydrographic section
subset.oce

Subset an oce object
as.section

Coerce ctd data into section dataset
oce.as.raw

Version of as.raw() that clips data
mapText

Plot text on a existing map
plot.windrose

Plot a wind rose diagram
vectorShow

Show some values from a vector
undriftTime

Correct for drift in instrument clock
plot.landsat

Plot landsat data
drawIsopycnals

Add isopycnal curves to TS plot
beamToXyzAdp

Change ADP coordinate system
plotPolar

Draw a polar plot.
read.lisst

Read a LISST data file
ctd-class

Class to store hydrographic data
numberAsHMS

Convert a numeric time to hour, minute, and second
findInOrdered

Find indices of tiems in an ordered vector
coastlineWorld

World coastline
summary.windrose

Summarize a windrose data object
unabbreviateYear

Determine year from various abbreviations
plot.ctd

Plot seawater CTD data
ctimeToSeconds

Interpret a character string as a time interval
plotTaylor

Plot a model-data comparison diagram.
prettyPosition

Pretty lat/lon in deg, min, sec
findBottom

Find the ocean bottom in an echosounder object
landsatTrim

Trim a landsat image to a lat-lon box
pwelch

Welch periodogram
mapZones

Plot zones on an existing map [DEPRECATED]
formatCI

Confidence interval in parenthetic notation
lonlat2utm

Convert from longitude and latitude to UTM
abbreviateTimeLabels

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

Air density
adp-class

Class to store acoustic Doppler profiler data
angleRemap

Convert angles from 0:360 to -180:180
subset.echosounder

Subset an echosounder object
as.lisst

Coerce data into a lisst object
GMTOffsetFromTz

Determine time offset from timezone
predict.tidem

Predict a time series from a tidal model
as.drifter

Coerce data into drifter dataset
subset.logger

Subset a logger object
integrateTrapezoid

Use trapezoidal integration
approx3d

Trilinear interpolation in a 3D array
odf-class

Class to store ODF data
read.ctd

Read a CTD data file
drifter

ARGO drifter dataset
plot.adv

Plot ADV data
accessors

Access or modify part of an Oce object
integerToAscii

Decode integer to corresponding ASCII code
mapContour

Plot contours on a existing map
section-class

Class to store hydrographic section data
as.echosounder

Coerce data into echosounder dataset
subset.topo

Subset a topo object
as.sealevel

Coerce data into sea-level dataset
beamUnspreadAdp

Adjust ADP signal for spherical spreading
read.gps

Scan a gps data file
swRho

Seawater density
as.ctd

Coerce data into ctd dataset
subset.lisst

Subset a lisst object
is.beam

Determine coordinate system
oce.plot.ts

Plot a time-series, obeying the timezone
colormap

Calculate color map
cm-class

Class to store current meter data
as.met

Coerce data into met dataset
byteToBinary

Format bytes as binary
mapImage

Plot an image on a existing map
curl

Curl of 2D vector field
mapAxis

Plot axis labels on an existing map
extract

Extract data from an oce object
ctdFindProfiles

Find profiles within a towyow CTD record
oce.write.table

Write the data portion of object to a file
ctdTrim

Trim start/end portions of a CTD cast
summary.ctd

Summarize a CTD object
enuToOtherAdv

Convert east-north-up to other coordinate
summary.tidem

Summarize a tide-model object
equatorialToLocalHorizontal

Convert equatorial to local horizontal coordinate
as.topo

Coerce data into topo dataset
detrend

Detrend a set of observations
gravity

Acceleration due to earth gravity
mapLongitudeLatitudeXY

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

Summarize a met object
read.landsat

Read a landsat data file
read.section

Read a section containing multiple CTD profiles
swConservativeTemperature

Seawater conservative temperature, in GSW formulation
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
swN2

Squared buoyancy frequency for seawater
swAlpha

Seawater thermal expansion coefficient
read.oce

Read an oceanographic data file
swRrho

Density ratio
oce.spectrum

Wrapper to give normalized spectrum
decodeTime

Decode a time, similar to as.POSIXct()
subset.drifter

Subset a drifter object
read.observatory

Read observatory data file
numberAsPOSIXct

Convert a numeric time to a POSIXct time
plotSticks

Draw a stick-plot diagram
loggerPatm

Estimate atmospheric pressure in logger record
subset.sealevel

Subset a sealevel object
header

Return the header for an Oce data object
swSpice

Seawater spiciness
swBeta

Seawater haline contraction coefficient
errorbars

Draw error bars on an existing xy diagram
latlonFormat

Format a latitude-longitude pair
secondsToCtime

Time interval as colon-separated string
threenum

Calculate min, mean, and max values
interpBarnes

Grid data using Barnes algorithm
fillGap

Fill a gap in an oce object
mapScalebar

Draw a scalebar on an existing map
plot.echosounder

Plot echosounder data
tidem

Fit a tidal model to a timeseries
adv-class

Class to store acoustic Doppler velocimeter data
julianCenturyAnomaly

Julian-Day number to Julian century
swTheta

Seawater potential temperature
plotProfile

Plot a CTD profile of various quantities
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
applyMagneticDeclination

Earth magnetic declination
topoWorld

Global topographic dataset at half-degree resolution
as.gps

Coerce data into a GPS dataset
swSigma

Seawater density anomaly
latFormat

Format a latitude
swThermalConductivity

Seawater thermal conductivity
sectionAddStation

Add CTD profile to section
window.oce

Window an oce object by time or distance
mapDirectionField

Plot a direction field on a existing map
as.windrose

Create a windrose object
geodGc

Great-circle segments between points on earth
geodDist

Geodesic distance on earth
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
lisst

LISST dataset
tidemVuf

Do ephemeris calculations for tidem
mapPolygon

Plot a polygon on a existing map
makeFilter

Make a digital filter
mapPoints

Plot points on a existing map
mapTissot

Plot Tissot indicatrices
lonlat2map

Convert from longitude and latitude to x-y coordinates
matrixSmooth

Smooth a matrix.
ctdRaw

Seawater CTD profile, without trimming of extraneous data
as.lobo

Coerce data into lobo dataset
summary.adp

Summarize an ADP object
oce.axis.POSIXct

Modified version of axis.POSIXct
oce.colors

Create a palette of colours
showMetadataItem

Show metadata item
plot.drifter

Plot drifter data
gps-class

Class to store gps data
summary.drifter

Summarize a drifter object
beamToXyz

Change ADV or ADP coordinate systems
subset.section

Subset a section object
tidedata

Tidal constituent information
coriolis

Coriolis parameter on rotating earth
swViscosity

Seawater viscosity
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
plot.gps

Plot a gps object
oce.filter

Filter a time-series, possibly recursively
oce.contour

Contour with ability to flip x and y
oce.debug

Print a debugging message
ctdUpdateHeader

Update a CTD header
ctd

A CTD profile in Halifax Harbour
swSoundSpeed

Seawater sound speed
binApply

Apply a function to binned matrix data
summary.odf

Summarize an odf object
drawDirectionField

Draw a direction field
read.cm

Read a current-meter data file
mapPlot

Plot a map
read.met

Read a meteorological data file
enuToOtherAdp

Convert east-north-up to other coordinate
plot.cm

Plot cm (current meter) data
read.odf

Read an ODF file
landsat

Landsat-8 dataset
plot.lisst

Plot LISST data
plot.logger

Plot logger data
subset.ctd

Subset a ctd object
xyzToEnuAdp

Convert XYZ to ENU coordinates
oce.grid

Add a grid to an existing plot, with special abilities for those created by oce
plotScan

Plot seawater data in a low-level fashion
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
summary.sealevel

Summarize a sealevel object
summary.coastline

Summarize a coastline data object
sealevel

Sea-level data set, from Halifax Harbour
coastlineBest

Find the name of the best coastline file
toEnuAdv

Convert from ENU coordinates
despike

Remove spikes from a time series
plot.sealevel

Plot sealevel data
sectionGrid

Grid a section
plot.tidem

Plot a tidal fit
swSoundAbsorption

Seawater sound absorption in dB/m
formatPosition

Geographical position in degrees and minutes
drawPalette

Draw palette on RHS of plot device
lobo-class

Class to store LOBO data
sectionSort

Sort a section
plot.topo

Plot topography data
read.drifter

Read a drifter data file
eclipticalToEquatorial

Convert ecliptical to equatorial coordinate
retime

Adjust the time within Oce object
landsat-class

Class to store Landsat data
runlm

Calculate running linear models
loggerToc

Decode table-of-contents file from a datalogger
rangeExtended

Calculate range, extended a little
argShow

Show an argument to a function, e.g. for debugging
mapMeridians

Plot meridians on an existing map [DEPRECATED]
as.logger

Create a logger object
loggerTrim

Trim start/end portions of a logger cast
useHeading

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

A logger dataset, of the temperature-data recorder variety
subset.coastline

Subset a coastline object
binAverage

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

Convert from x-y to longitude and latitude
subset.met

Subset a met object
rangeLimit

Substitute NA for data outside a range
plot.coastline

Plot a coastline
swSCTp

Salinity from electrical conductivity, temperature and pressure
echosounder

echosounder dataset
summary.lisst

Summarize a LISST object
mapLines

Plot lines on a existing map
mapGrid

Plot longitude and latitude grid on an existing map
oce.pmatch

Partial matching of strings or numbers
oce.approx

Interpolate 1D data with Unesco or Reiniger-Ross algorithm
plot.section

Plot a CTD section
oce.smooth

Smooth an oce object
read.logger

Read a logger file
sectionSmooth

Smooth a section
swSigma0

Seawater potential density anomaly reference to standardized pressures
toEnuAdp

Convert from ENU coordinates
matchBytes

Locate byte sequences in a raw vector
summary.topo

Summarize a topography data object
read.sealevel

Read a sea-level data file
read.topo

Read an topography file
velocityStatistics

Report statistics of ADP or ADV velocities.
swTSrho

Seawater temperature from salinity and density
siderealTime

Convert a POSIXt time to a sidereal time
read.echosounder

Read an echosounder data file
met-class

Class to store meteorological data
swTFreeze

Seawater freezing temperature
sealevel-class

Class to store sealevel data
plot.met

Plot meteorological data
summary.cm

Summarize a cm (current meter) object
tidemAstron

Do ephemeris calculations for tidem
subset.adv

Subset an adv object
read.index

Read a NOAA ocean index file
parseLatLon

Parse a latitude or longitude string
decodeHeader

Decode a Nortek header
plot.lobo

Plot lobo data
swCSTp

Electrical conductivity from salinity, temperature and pressure
plotInset

Plot an inset diagram
summary.adv

Summarize an ADV object
summary.landsat

Summarize a landsat object
read.lobo

Read a lobo data file
summary.section

Summarize a CTD section
swSigmaT

Seawater quasi-potential density anomaly
swDepth

Water depth
swSTrho

Seawater salinity from temperature and density
swSigmaTheta

Seawater potential density anomaly
sunAngle

Solar angle as function of space and time.
tidem-class

Class to store tidal-constituent models
swSpecificHeat

Seawater specific heat
ungrid

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

Standard oceanographic depths
xyzToEnuAdv

Convert XYZ to ENU coordinates
swDynamicHeight

Dynamic height of seawater profile
swLapseRate

Seawater lapse rate
oce.convolve

Convolve two time series
utm2lonlat

Convert from UTM to longitude and latitude
windrose-class

Class to store windrose data
ctdDecimate

Decimate a CTD profile
decimate

Smooth and decimate an oce object
moonAngle

Lunar angle as function of space and time.
oceMagic

Find the type of an oceanographic data file
oce.as.POSIXlt

More general form of as.POSIXlt
write.ctd

Write a CTD data object as a .csv file
adv

ADV (acoustic-doppler velocimeter) dataset
drifterGrid

Grid a drifter
geodXy

Convert lon/lat to x/y on earth
mapLocator

Locate points on a existing map
oce.edit

Edit an oce object
plot.adp

Plot ADP data
read.adp

Read an ADP data file
resizableLabel

Provide axis names in adjustable sizes
subset.adp

Subset an adp object
subset.cm

Subset a cm object
head

Ends of oce objects.
plot.odf

Plot an ODF object
processingLog

Add an item to object processingLog
lonFormat

Format a longitude
webtide

Get a tidal prediction from a WebTide database
rescale

Rescale values to lie in a given range
plotTS

Plot temperature-salinity diagram
summary.logger

Summarize a logger object
swPressure

Water pressure
summary.echosounder

Summarize an echosounder object
topoInterpolate

Interpolate within a topography dataset
wind

Wind dataset
topo-class

Class to store topographic data