Learn R Programming

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

oce (version 0.9-18)

Analysis of Oceanographic Data

Description

Supports the analysis of Oceanographic data, including 'ADCP' measurements, measurements made with 'argo' floats, 'CTD' measurements, sectional data, sea-level time series, coastline and topographic data, etc. Provides specialized functions for calculating seawater properties such as potential temperature in either the 'UNESCO' or 'TEOS-10' equation of state. Produces graphical displays that conform to the conventions of the Oceanographic literature.

Copy Link

Version

Install

install.packages('oce')

Monthly Downloads

2,573

Version

0.9-18

License

GPL (>= 2)

Maintainer

Dan Kelley

Last Published

February 12th, 2016

Functions in oce (0.9-18)

argShow

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

Create odf object from the output of ODF::read_ODF()
ctimeToSeconds

Interpret a character string as a time interval
as.ladp

Coerce data into an ladp object
byteToBinary

Format bytes as binary
colors

Data that define some colour palettes
echosounder

echosounder dataset
lobo-class

Class to store LOBO data
lonlat2utm

Convert from longitude and latitude to UTM
makeSection

Bind CTD profiles together into a cross section [DEPRECATED]
dataLabel

Try to associate data names with units, for use by summary()
formatPosition

Geographical position in degrees and minutes
mapDirectionField

Plot a direction field on a existing map
GMTOffsetFromTz

Determine time offset from timezone
ODFNames2oceNames

Translate from ODF names to oce names
abbreviateTimeLabels

Abbreviate a list of times by removing commonalities (e.g. year)
coastline-class

Class to store coastline data
angleRemap

Convert angles from 0:360 to -180:180
interpBarnes

Grid data using Barnes algorithm
amsr-class

Class to Hold amsr Data
met-class

Class to store meteorological data
binmapAdp

Bin-map an ADP object
beamToXyzAdv

Convert ADV from beam coordinates to xyz coordinates
lonFormat

Format a longitude
airRho

Air density
mapLongitudeLatitudeXY

Convert from longitude and latitude to x and y
head

Ends of oce Objects
decodeHeader

Decode a Nortek header
oce-deprecated

Deprecated functions in package oce
beamName

Name an Acoustic-Doppler Beam
latlonFormat

Format a latitude-longitude pair
numberAsHMS

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

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

Earth magnetic declination, inclination, and intensity
decodeTime

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

Detrend a set of observations
adv-class

Class to Hold adv Data
oce.grid

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

Convolve two time series
adp-class

Class to Hold adp (adcp) Data
beamUnspreadAdp

Adjust ADP signal for spherical spreading
plot.sealevel

Plot sealevel data
plot.section

Plot a CTD section
argoGrid

Grid a Argo drifter path
oce.approx

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

Substitute NA for data outside a range
cm-class

Class to store current meter data
as.oce

Coerce Something Into an oce Object
findBottom

Find the ocean bottom in an echosounder object
read.adp

Read an ADP data file
binMean

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

Create a rsk object
latFormat

Format a latitude
read.lobo

Read a lobo data file
as.windrose

Create a windrose object
echosounder-class

Class to store echosounder data
curl

Curl of 2D vector field
beamToXyzAdp

Change ADP coordinate system
gravity

Acceleration due to earth gravity
oce.as.raw

Version of as.raw() that clips data
numberAsPOSIXct

Convert a numeric time to a POSIXct time
colormap

Calculate colour map
mapLines

Plot lines on a existing map
fillGap

Fill a gap in an oce object
oce.as.POSIXlt

More general form of as.POSIXlt
equatorialToLocalHorizontal

Convert equatorial to local horizontal coordinate
lobo

lobo dataset
oce.colors

Create a palette of colours
drawPalette

Draw palette on RHS of plot device
oce.smooth

Smooth an oce object
argo

ARGO drifter dataset
plot.lisst

Plot LISST data
applyMagneticDeclination

Earth magnetic declination
integrateTrapezoid

Use trapezoidal integration
matchBytes

Locate byte sequences in a raw vector
read.netcdf

Read a netcdf file
plotScan

Plot seawater data in a low-level fashion
julianDay

Convert a POSIXt time to a Julian day
plotSticks

Draw a stick-plot diagram
sectionGrid

Grid a section
read.met

Read a meteorological data file
read.bremen

Read a Bremen data file (TEMPORARY CODE)
addColumn

Add a column to an oce object
bcdToInteger

Decode BCD to integer
beamToXyz

Change ADV or ADP coordinate systems
oce.axis.POSIXct

Modified version of axis.POSIXct
oce.plot.ts

Plot a time-series, obeying the timezone
[[<-,argo-method

Change something within an argo object
met

Sample meteorological object
mapArrows

Plot arrows on a existing map
[[,amsr-method

Extract Something From an amsr Object
read.cm

Read a current-meter data file
oce.filter

Filter a time-series, possibly recursively
plot.bremen

Plot a bremen object
mapAxis

Plot axis labels on an existing map
subset,argo-method

Subset an argo object
plot.cm

Plot cm (current meter) data
coastlineBest

Find the name of the best coastline file
swSigmaTheta

Seawater potential density anomaly
as.coastline

Coerce data into coastline dataset
errorbars

Draw error bars on an existing xy diagram
time.oce

Extract time from an oce object
ctdAddColumn

Add a column to the data slot of a ctd object
mapScalebar

Draw a scalebar on an existing map
plot.coastline

Plot a coastline
enuToOtherAdv

Convert east-north-up to other coordinate
subset.coastline

Subset a coastline object
geodXy

Convert From Geographical to Geodesic Coordinates
ladp-class

Class to store hydrographic data
plot.argo

Plot argo data
plot.ladp

Plot an ladp object
plot.ctd

Plot seawater CTD data
plot.gps

Plot a gps object
landsatTrim

Trim a landsat Image to a Geographical Region
bound125

Calculate a rounded bound, rounded up to matissa 1, 2, or 5
ctd

A CTD profile in Halifax Harbour
oce.pmatch

Partial matching of strings or numbers
despike

Remove spikes from a time series
rangeExtended

Calculate range, extended a little
ctdDecimate

Decimate a CTD profile
plot.windrose

Plot a wind rose diagram
read.amsr

Read an amsr File
coastlineCut

Cut a coastline file at specified longitude
[[<-,adp-method

Change Something Within an adp Object
read.index

Read a NOAA ocean index file
plot.rsk

Plot rsk data
plot.adp

Plot ADP data
prettyPosition

Pretty lat/lon in deg, min, sec
read.section

Read a section containing multiple CTD profiles
accessors

Access or modify part of an Oce object
rsk

Sample rsk Dataset
sectionSmooth

Smooth a section
eclipticalToEquatorial

Convert ecliptical to equatorial coordinate
sealevel-class

Class to store sealevel data
plot.lobo

Plot lobo data
shiftLongitude

Shift longitude to range -180 to 180, if any element exceeds 180
fullFilename

full name of file, including path
drawIsopycnals

Add isopycnal curves to TS plot
plotPolar

Draw a Polar Plot
integerToAscii

Decode integer to corresponding ASCII code
plot.tidem

Plot a tidal fit
landsatAdd

Add a Band to a landsat Object
formatCI

Confidence interval in parenthetic notation
read.gps

Scan a gps data file
summary.ctd

Summarize a CTD object
swViscosity

Seawater viscosity
plotTaylor

Plot a Model-data Comparison Diagram
read.adv

Read an ADV data file
swSpice

Seawater spiciness
sealevel

Sea-level data set, from Halifax Harbour
retime

Adjust the time within Oce object
unabbreviateYear

Determine year from various abbreviations
secondsToCtime

Time interval as colon-separated string
satellite-class

Class to Hold landsat Data
geodDist

Geodesic distance on earth
plot.met

Plot meteorological data
read.g1sst

Read G1SST satellite data
lisst-class

Class to store LISST data
read.odf

Read an ODF file, producing an oce object
is.beam

Determine coordinate system
grad

Gradient of a matrix
lookWithin

Look Within the First Element of a List for Replacement Values
summary.cm

Summarize a cm (current meter) object
summary.rsk

Summarize a rsk object
oceMagic

Find the type of an oceanographic data file
mapTissot

Plot Tissot indicatrices
summary.topo

Summarize a topography data object
summary.argo

Summarize an Argo object
map2lonlat

Convert from x-y to longitude and latitude
makeFilter

Make a digital filter
swPressure

Water pressure
summary.coastline

Summarize a coastline data object
summary,landsat-method

Summarize a landsat Object
oce.contour

Contour with ability to flip x and y
[[<-,oce-method

Change Something Within an oce Object
summary.odf

Summarize an odf object
sectionSort

Sort a section
mapPolygon

Plot a polygon on a existing map
swSigma0

Seawater potential density anomaly reference to standardized pressures
mapMeridians

Plot meridians on an existing map [DEPRECATED]
oce

oce: A package for Oceanographic analysis
wind

Wind dataset
summary.lisst

Summarize a LISST object
tidem-class

Class to store tidal-constituent models
summary,amsr-method

Summarize an amsr Object
read.sealevel

Read a sea-level data file
xyzToEnuAdv

Convert XYZ to ENU coordinates
resizableLabel

Provide axis names in adjustable sizes
summary.lobo

Summarize a lobo data object
write.ctd

Write a CTD data object as a .csv file
oce.spectrum

Wrapper to give normalized spectrum
swCSTp

Electrical conductivity ratio from salinity, temperature and pressure
summary.section

Summarize a CTD section
oceAddData

Access or Alter Data or Metadata Within an oce Object
mapImage

Plot an image on a existing map
swSTrho

Seawater salinity from temperature and density
approx3d

Trilinear interpolation in a 3D array
swRho

Seawater density
plot.echosounder

Plot echosounder data
summary.gps

Summarize a gps object
swSigma

Seawater density anomaly
odf-class

Class to store ODF data
sunAngle

Solar Angle as Function of Space and Time
topo-class

Class to store topographic data
rskToc

Decode table-of-contents file from a rsk file
as.echosounder

Coerce data into echosounder dataset
as.ctd

Coerce data into ctd dataset
plotProfile

Plot a profile, with decreasing pressure on the y axis
webtide

Get a tidal prediction from a WebTide database
summary.windrose

Summarize a windrose data object
as.lisst

Coerce data into a lisst object
mapPlot

Plot a map
undriftTime

Correct for drift in instrument clock
plot.odf

Plot an ODF object
swConservativeTemperature

Seawater conservative temperature, in GSW formulation
oce.write.table

Write the data portion of object to a file
bremen-class

Class for data stored in a format used at Bremen
pwelch

Welch periodogram
subset.cm

Subset a cm object
coastlineWorld

World coastline
subset.adp

Subset an adp object
coriolis

Coriolis parameter on rotating earth
swSoundSpeed

Seawater sound speed
read.oce

Read an oceanographic data file
ctdRaw

Seawater CTD profile, without trimming of extraneous data
tidem

Fit a tidal model to a timeseries
windrose-class

Class to store windrose data
subset.echosounder

Subset an echosounder object
toEnuAdp

Convert from ENU coordinates
summary.met

Summarize a met object
[[,argo-method

Extract something from an argo object
processingLog

Add an item to object processingLog
utm2lonlat

Convert from UTM to longitude and latitude
sealevelTuktoyaktuk

Sea-level data set acquired in 1975 at Tuktoyaktuk
swAlpha

Seawater thermal expansion coefficient
subset,oce-method

Subset an oce Object
swBeta

Seawater haline contraction coefficient
siderealTime

Convert a POSIXt time to a sidereal time
standardDepths

Standard oceanographic depths
summary.ladp

Summarize an ladp object
read.argo

Read an Argo data file
swAlphaOverBeta

Ratio of seawater thermal expansion coefficient to haline contraction coefficient
swDepth

Water depth
xyzToEnuAdp

Convert XYZ to ENU coordinates
ctdTrim

Trim start/end portions of a CTD cast
read.echosounder

Read an echosounder data file
summary.tidem

Summarize a tide-model object
summary.echosounder

Summarize an echosounder object
plot.adv

Plot ADV data
oceDebug

Print a debugging message
ungrid

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

Hydrographic section
swRrho

Density ratio
argo-class

Class to hold argo data
decimate

Smooth and decimate an oce object
summary,satellite-method

Summarize a satellite object
extract

Extract data from an oce object
imagep

Plot an Image with a Color Palette
subtractBottomVelocity

Subtract bottom velocity from ADP velocity
topoInterpolate

Interpolate within a topography dataset
julianCenturyAnomaly

Julian-Day number to Julian century
landsat

Sample landsat Dataset
mapText

Plot text on a existing map
as.adp

Create an adp Object
summary.bremen

Summarize a bremen object
matrixSmooth

Smooth a Matrix
summary.adp

Summarize an ADP object
swN2

Squared buoyancy frequency for seawater
tidemVuf

Do ephemeris calculations for tidem
ctd-class

Class to store hydrographic data
swSCTp

Salinity from electrical conductivity, temperature and pressure
as.sealevel

Coerce data into sea-level dataset
subset.adv

Subset an adv object
g1sst-class

Class to hold G1SST satellite-model data
moonAngle

Lunar Angle as Function of Space and Time
adp

ADP (acoustic-doppler profiler) dataset
gps-class

Class to store gps data
T90fromT68

Convert between temperature scales
plot.topo

Plot topography data
read.observatory

Read observatory data file
mapContour

Plot contours on a existing map
as.lobo

Coerce data into lobo dataset
read.rsk

Read an RBR rsk or Ruskin export file
as.topo

Coerce data into topo dataset
as.unit

Convert a String to a Unit
section-class

Class to store hydrographic section data
rskPatm

Estimate atmospheric pressure in rsk record
mapPoints

Plot points on a existing map
as.section

Create a section
findInOrdered

Find indices of tiems in an ordered vector
cm

Current-meter record
enuToOtherAdp

Convert east-north-up to other coordinate
[[,adp-method

Extract Something From an adp Object
geodXyInverse

inverse geodesic calculation
oce-class

Base Class for oce Objects
swLapseRate

Seawater lapse rate
plot,landsat-method

Plot a landsat Object
swTheta

Seawater potential temperature
[[<-,adv-method

Change Something Within an adv Object
plot,satellite-method

Plot a satellite object
velocityStatistics

Report Statistics of adp or adv Velocities
geodGc

Great-circle segments between points on earth
read.coastline

Scan a coastline data file
summary.sealevel

Summarize a sealevel object
swDynamicHeight

Dynamic height of seawater profile
topoWorld

Global topographic dataset at half-degree resolution
read.lisst

Read a LISST data file
swSigmaT

Seawater quasi-potential density anomaly
swSpecificHeat

Seawater specific heat
threenum

Calculate min, mean, and max values
tidedata

Tidal constituent information
swThermalConductivity

Seawater thermal conductivity
runlm

Calculate running linear models
rsk-class

Class to store RBR rsk data
[[,adv-method

Extract Something From an adv Object
[[,oce-method

Extract Something From an oce Object
unwrapAngle

Unwrap an angle that suffers modulo-360 problems
subset.rsk

Subset a rsk object
handleFlags

Set any flagged data to NA
lisst

LISST dataset
subset.odf

Subset an odf object
lonlat2map

Convert from longitude and latitude to x-y coordinates
matrixShiftLongitude

Rearrange areal matrix so Greenwich is near the centre
vectorShow

Show some values from a vector
plotTS

Plot temperature-salinity diagram
window.oce

Window an oce object by time or distance
predict.tidem

Predict a time series from a tidal model
subset.sealevel

Subset a sealevel object
rescale

Rescale values to lie in a given range
subset.lobo

Subset an lobo object
read.ctd

Read a CTD data file
read.topo

Read an topography file
showMetadataItem

Show metadata item
[[,landsat-method

Extract Something From a landsat Object
mapZones

Plot zones on an existing map [DEPRECATED]
subset.lisst

Subset a lisst object
summary,oce-method

Summarize an oce Object
swSoundAbsorption

Seawater sound absorption in dB/m
swTSrho

Seawater temperature from salinity and density
sectionAddStation

Add CTD profile to section
tidemAstron

Do ephemeris calculations for tidem
adv

ADV (acoustic-doppler velocimeter) dataset
as.argo

Coerce data into argo dataset
as.gps

Coerce data into a GPS dataset
as.met

Coerce data into met dataset
binApply

Apply a function to binned matrix data
ctdFindProfiles

Find profiles within a towyow CTD record
ctdUpdateHeader

Update a CTD header
drawDirectionField

Draw a direction field
decodeDataNames

Try to guess data names from hints found in file headers
header

Return the header for an Oce data object
mapGrid

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

Edit an oce object
mapLocator

Locate points on a existing map
plot,amsr-method

Plot an amsr Object
plotInset

Plot an inset diagram
parseLatLon

Parse a latitude or longitude string
read.landsat

Read a landsat File Directory
subset,ctd-method

Subset a CTD object
subset.met

Subset a met object
standardizeLongitude

Put longitude in the range from -180 to 180
subset.section

Subset a section object
summary.adv

Summarize an ADV object
swAbsoluteSalinity

Seawater absolute salinity, in GSW formulation
swTFreeze

Seawater freezing temperature
subset.topo

Subset a topo object
useHeading

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

Convert from ENU coordinates