Learn R Programming

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

oce (version 0.1-82)

Analysis of Oceanographic data

Description

Supports the analysis of Oceanographic data, including ADP measurements, CTD measurements, sectional data, sea-level timeseries, 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,354

Version

0.1-82

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

March 21st, 2011

Functions in oce (0.1-82)

oce.bisect

Find the root of a function by bisection
latlon.format

Format a latitude-longitude pair
oce.plot.ts

Plot a time-series, obeying the timezone
processing.log.summary

Summarize the processing log of an object
sealevel.tuk

Sea-level data set, from Tuktoyaktuk (1975)
show.fives

Show summary-style fivenum stats
summary.coastline

Summarize a coastline data object
sw.N2

Squared buoyancy frequency for seawater
sw.beta

Seawater haline contraction coefficient
sw.S.T.rho

Seawater salinity from temperature and density
matrix.smooth

Smooth a matrix.
sw.rho

Seawater density
beam.to.xyz.adp

Convert ADP from beam coordinates to xyz coordinates
as.windrose

Create a windrose object
formatci

Format a confidence interval in parenthetic notation
oce.axis.POSIXct

Modified version of axis.POSIXct
is.beam

Determine coordinate system for acoustic-doppler device
oce.spectrum

Wrapper to give normalized spectrum
plot.coastline

Plot a coastline
oce.filter

Filter a time-series, possibly recursively
plot.TS

Plot temperature-salinity diagram for seawater (CTD) data
read.oce

Read an oceanographic data file
summary.ctd

Summarize a CTD object
angle.remap

Convert an angle from the 0:360 range to -180:180
air.hal

Time-series of wind and temperature at Halifax, Canada.
apply.magnetic.declination

Earth magnetic declination
summary.tidem

Summarize a tide-model object
section.grid

Grid a section
processing.log.append

Copy an object, but with an updated processing log.
beam.to.xyz.adv

Convert ADV from beam coordinates to xyz coordinates
summary.sealevel

Summarize a sealevel object
enu.to.other.adv

Convert ADV from east-north-up coordinates to other coordinates
ctime.to.seconds

Interpret a character string as a time interval
imagep

Plot an image with a colour palette
lat.format

Format a latitude
magic

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

More general form of as.POSIXlt
undrift.time

Correct for drift in instrument clock
use.heading

Replace the heading for one instrument with the heading for another
plot.ctd

Plot seawater CTD data
wind

Wind dataset
pt.patm

Estimate atmospheric pressure in pt record
read.adv

Read an ADV data file
processing.log.add

Add an item to a processing log
sealevel.hal

Sea-level data set, from Halifax Harbour
summary.adp

Summarize an ADP object
sw.sigma.theta

Seawater potential density anomaly
stickplot

Draw a stick-plot diagram
sw.alpha

Seawater thermal expansion coefficient
sw.spice

Seawater spiciness
bcd2integer

Decode BCD to integer
RRprofile

Seawater profile used by Reiniger and Ross (1968)
decimate

Decimate an oce object
oce.smooth

Smooth an oce object
oce.edit

Edit an oce object
adp

ADP (acoustic-doppler profiler) dataset
air.rho

Air density
as.sealevel

Coerce data into sea-level dataset
coastline.world

World coastline
coastline.sle

Coastline of St Lawrence Estuary
ctd.decimate

Decimate a CTD profile
ctd.raw

Seawater CTD profile, without trimming of extraneous data
ctd.add.column

Add a column to a CTD file
ctd.trim

Trim start/end portions of a CTD cast
detrend

Detrend a set of observations
enu.to.other.adp

Convert ADP from east-north-up coordinates to other coordinates
fill.gap

Fill a gap in an oce object
make.section

Bind CTD profiles together into a cross section
geod.dist

Geodesic distance on earth
geod.xy

Convert lat/lon to x/y on earth
GMT.offset.from.tz

Determine time offset from timezone
plot.sealevel

Plot sealevel data
oce.plot.sticks

Draw a stick-plot diagram
as.coastline

Coerce data into coastline dataset
ctd

Seawater CTD profile
drawpalette

Draw a palette on the right-hand side of plot device
oce.write.table

Write the data portion of object to a file
plot.cm

Plot cm (current meter) data
plot.topo

Plot topography data
processing.log.item

Create a processing-log item
plot.pt

Plot pt (pressure-temperature) recorder data
byte2binary

Format bytes as binary
draw.isopycnals

Draw isopycnal curves on an existing temperature-salinity plot
plot.adv

Plot ADV data
interp.barnes

Grid data using Barnes algorithm
read.pt

Read an TDR temperature-depth recorder data file
read.sealevel

Read a sea-level data file
read.coastline

Scan a coastline data file
read.topo

Read an topography file
integer2ascii

Decode integer to corresponding ASCII code
plot.windrose

Plot a wind rose diagram
summary.topo

Summarize a topography data object
sw.dynamic.height

Dynamic height of seawater profile
ad.beam.name

Name an acoustic-doppler beam.
summary.cm

Summarize a cm (current meter) object
make.filter

Make a digital filter
summary.section

Summarize a CTD section
matchBytes

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

Summarize an ADV object
summary.pt

Summarize a pt object
resizable.label

Provide axis names in adjustable sizes
oce.debug

Print a debugging message
sun.angle

Solar angle as function of space and time.
sw.depth

Water depth
sw.sigma.t

Seawater quasi-potential density anomaly
plot.lobo

Plot lobo data
section.sort

Sort a section
summary.lobo

Summarize a lobo data object
read.section

Read a section containing multiple CTD profiles
sw.sigma

Seawater density anomaly
sw.conductivity

Seawater conductivity
summary.windrose

Summarize a windrose data object
unwrap.angle

Unwrap an angle that suffers modulo-360 problems
topo.maritimes

Topographic dataset, showing Maritime region of Canada
to.enu.adv

Convert ADV to enu coordinates, from any other coordinates
topo.world

Global topographic dataset at half-degree resolution
unabbreviate.year

Determine year from various abbreviations
vector.show

Show some values from a vector
sw.sound.speed

Seawater sound speed
write.ctd

Write a CTD data object as a .csv file
despike

Remove spikes from a time series
coriolis

Coriolis parameter on rotating earth
header

Return the header for an Oce data object
plot.adp

Plot ADP data
magnetic.declination

Earth magnetic declination
plot.tidem

Plot a tidal fit
read.adp

Read an ADP data file
plot.ctd.scan

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

Read a CTD data file
subset.oce

Subset an oce object
sw.S.C.T.p

Seawater salinity from conductivity ratio, temperature and pressure
sw.T.freeze

Seawater freezing temperature
sw.alpha.over.beta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
sw.lapse.rate

Seawater lapse rate
sw.T.S.rho

Seawater temperature from salinity and density
sw.viscosity

Seawater viscosity
tidem.astron

Do ephemeris calculations for tidem
sw.specific.heat

Seawater specific heat
xyz.to.enu.adv

Convert ADV from xyz coordinates to enu coordinates
a03

WOCE section a03
gravity

Acceleration due to earth gravity
as.topo

Coerce data into topo dataset
as.ctd

Coerce data into ctd dataset
coastline.maritimes

Coastline data set, showing Maritime provinces of Canada
logger.toc

Decode table-of-contents file from a datalogger
oce.approx

Interpolate with Reiniger-Ross algorithm
parse.latlon

Parse a latitude or longitude string
munk1966

Munk's (1966) temperature profile
predict.tidem

Predict a time series from a tidal model
pwelch

Welch periodogram
ptr

ptr (pressure-temperature) dataset
seconds.to.ctime

Convert a time interval to a colon-separated string
pt.trim

Trim start/end portions of a pt cast
section

Seawater CTD section
tidem.vuf

Do ephemeris calculations for tidem
xyz.to.enu.adp

Convert ADP from xyz coordinates to enu coordinates
sw.theta

Seawater potential temperature
add.column

Add a column to an oce object
beam.attenuate.adp

Attenuate ADP beam signal strength
coastline.hal

Coastline data set, showing Halifax Harbour
ctd.update.header

Update a CTD header
full.filename

full name of file, including path
lon.format

Format a longitude
number.as.POSIXct

Convert a numeric time to a POSIXct time
oce.colors

Create a palette of colours
lobo

lobo dataset
plot.section

Plot a CTD section
read.lobo

Read a lobo data file
retime

Adjust the time within Oce object
section.smooth

Smooth a section (preliminary version that may change)
read.cm

Read a current-meter data file
plot.profile

Plot a CTD profile of various quantities
rangelimit

Substitute NA for data outside a range
to.enu.adp

Convert ADP to enu coordinates, from any other coordinates
tidedata

Tidal constituent information
window.oce

Window an oce object by time
tidem

Fit a tidal model to a timeseries