Title: | 3D-Visualization of Geoelectric Resistivity Measurement Profiles |
---|---|
Description: | Visualizes two-dimensional geoelectric resistivity measurement profiles in three dimensions. |
Authors: | Anja Kleebaum <[email protected]> |
Maintainer: | Anja Kleebaum <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.2.2 |
Built: | 2025-02-20 03:44:35 UTC |
Source: | https://github.com/kleebaum/geoelectrics |
Adjusts the height of a single profile (adds a delta value to ALL data points). This is necessary if GPS measurement heights of two profiles differ systematically.
adjustHeight(object, delta) ## S4 method for signature 'Profile' adjustHeight(object, delta)
adjustHeight(object, delta) ## S4 method for signature 'Profile' adjustHeight(object, delta)
object |
a single Profile. |
delta |
positive or negative value. |
adjusted profile
GpsCoordinates-class
, Profile-class
p3 <- new( "Profile", title = "Profile 3", processedData = new("ProcessedData", address = system.file("extdata/processed/p3_DipolDipol_S-N.xyz", package='geoelectrics')), rawData = new("RawData", address = system.file("extdata/raw/p3_DipolDipol_S-N.dat", package='geoelectrics')), measurementType = "DipolDipol", gpsCoordinates = new("GpsCoordinates", address = system.file("extdata/gps/p3.txt", package='geoelectrics')) ) p3 <- adjustHeight(p3, -10)
p3 <- new( "Profile", title = "Profile 3", processedData = new("ProcessedData", address = system.file("extdata/processed/p3_DipolDipol_S-N.xyz", package='geoelectrics')), rawData = new("RawData", address = system.file("extdata/raw/p3_DipolDipol_S-N.dat", package='geoelectrics')), measurementType = "DipolDipol", gpsCoordinates = new("GpsCoordinates", address = system.file("extdata/gps/p3.txt", package='geoelectrics')) ) p3 <- adjustHeight(p3, -10)
Calculates relative coordinates (unity: meters) from GPS coordinates (either given in UTM or Gauss Krueger). This method is used when a profile set of many profiles is instantiated.
calcRelativeCoords(coords, minLat, minLon)
calcRelativeCoords(coords, minLat, minLon)
coords |
exact coordinates of a single Profile. |
minLat |
starting point (latititude). |
minLon |
starting point (longitude). |
data frame that contains the relative coordinates (latitude and longitude).
ProfileSet-class
, GpsCoordinates-class
This method starts a simple TclTk graphical user interface (GUI) provided by this package.
geoelectricsGui()
geoelectricsGui()
# geoelectricsGui()
# geoelectricsGui()
Returns the heights for certain distances along the profile (topography information).
getHeightInformation(object) ## S4 method for signature 'ProcessedData' getHeightInformation(object)
getHeightInformation(object) ## S4 method for signature 'ProcessedData' getHeightInformation(object)
object |
a single Profile. |
data frame containing distances and heights along the profile
GpsCoordinates-class
, Profile-class
,
ProcessedData-class
data(sinkhole) getHeightInformation(sinkhole@profiles[[1]]@processedData)
data(sinkhole) getHeightInformation(sinkhole@profiles[[1]]@processedData)
A class to handle gps coordinates.
address
address of the gps ascii file
exact
data frame that contains measured gps coordinates
relative
relative coordinates, normalized to (0,0)
lm
linear model of the measured gps coordinates
lmRelative
linear model of relative coordinates
Profile-class
, ProfileSet-class
,
adjustHeight
, calcRelativeCoords
gpsCoordinates = new('GpsCoordinates', address = system.file('extdata/gps/p1.txt', package='geoelectrics')) data(sinkhole) sinkhole@profiles[[1]]@gpsCoordinates sinkhole@profiles[[1]]@gpsCoordinates@address sinkhole@profiles[[1]]@gpsCoordinates@exact sinkhole@profiles[[1]]@gpsCoordinates@lm sinkhole@profiles[[1]]@gpsCoordinates@relative sinkhole@profiles[[1]]@gpsCoordinates@lmRelative
gpsCoordinates = new('GpsCoordinates', address = system.file('extdata/gps/p1.txt', package='geoelectrics')) data(sinkhole) sinkhole@profiles[[1]]@gpsCoordinates sinkhole@profiles[[1]]@gpsCoordinates@address sinkhole@profiles[[1]]@gpsCoordinates@exact sinkhole@profiles[[1]]@gpsCoordinates@lm sinkhole@profiles[[1]]@gpsCoordinates@relative sinkhole@profiles[[1]]@gpsCoordinates@lmRelative
Plots the interpolated resistance values of the geoelectrics data.
levelplot(x, data, ...) ## S4 method for signature 'Profile' levelplot(x, dataType = "processed", withTopo = FALSE, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) ## S4 method for signature 'ProfileSet' levelplot(x, dataType = "processed", withTopo = FALSE, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) levelplotProcessedData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) levelplotProcessedDataWithTopo(x, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) levelplotRawData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography (raw data)"), col = colors, trafo = log, aspect = "iso", ...)
levelplot(x, data, ...) ## S4 method for signature 'Profile' levelplot(x, dataType = "processed", withTopo = FALSE, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) ## S4 method for signature 'ProfileSet' levelplot(x, dataType = "processed", withTopo = FALSE, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) levelplotProcessedData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) levelplotProcessedDataWithTopo(x, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), col = colors, breaks = 18, trafo = log, backtrafo = exp, aspect = "iso", ...) levelplotRawData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography (raw data)"), col = colors, trafo = log, aspect = "iso", ...)
x |
profile object. |
data |
is always NULL |
... |
lattice levelplot arguments. |
dataType |
specify whether 'processed' (default) or 'raw' data should be plotted |
withTopo |
TRUE if topography information is plotted |
xlab |
label for x-axes. |
ylab |
label for y-axes. |
main |
title to be plotted. |
col |
vector of colors. |
breaks |
number of color breaks. |
trafo |
transformation to be done on data (default: log). |
backtrafo |
back transformation to plot correct labels (default: exp). |
aspect |
the y/x aspect ratio (default: iso). |
data(sinkhole) levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE) levelplotLegendLabel() levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) levelplotLegendLabel() levelplot(sinkhole@profiles[[1]], dataType = 'raw') levelplotLegendLabel()
data(sinkhole) levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE) levelplotLegendLabel() levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) levelplotLegendLabel() levelplot(sinkhole@profiles[[1]], dataType = 'raw') levelplotLegendLabel()
Plots the label of the levelplot.
levelplotLegendLabel(legend.lab = "Resistivity", unit = expression(paste("[", Omega, "m]")))
levelplotLegendLabel(legend.lab = "Resistivity", unit = expression(paste("[", Omega, "m]")))
legend.lab |
label (default: 'Resistivity'). |
unit |
unit (default: 'Ohm*m'). |
data(sinkhole) levelplot(sinkhole@profiles[[1]]) levelplotLegendLabel() levelplot(sinkhole@profiles[[2]]) levelplotLegendLabel() levelplot(sinkhole@profiles[[3]]) levelplotLegendLabel()
data(sinkhole) levelplot(sinkhole@profiles[[1]]) levelplotLegendLabel() levelplot(sinkhole@profiles[[2]]) levelplotLegendLabel() levelplot(sinkhole@profiles[[3]]) levelplotLegendLabel()
Maps color to (resistivity) values. A minimum and maximum value can be specified.
myColorRamp(col, values, minData = min(values), maxData = max(values))
myColorRamp(col, values, minData = min(values), maxData = max(values))
col |
Character vector of colors. |
values |
Numeric vector of values. |
minData |
Minimum value (default min(values)). All smaller values will assigned to the first color in vector col. |
maxData |
Maximum value (default max(values)). All higher values will assigned to the last color in vector col. |
Parses .xyz files produced by the software Res2DInv. Needs to be overwritten if another processed data format is used.
parseProcessedDataFile(address, skip = 0)
parseProcessedDataFile(address, skip = 0)
address |
address of the raw data ascii file. |
skip |
the number of lines of the data file to skip before beginning to read data. |
list of two data frames: The first data frame contains points without topography (distance, depth and resistivity values). The second data frame contains points with topography (distance, height and resistivity values).
ProcessedData-class
, Profile-class
fileAddress <- system.file('extdata/processed/p1_DipolDipol_SW-NE.xyz', package = 'geoelectrics') processedData = new('ProcessedData') processedData@address = fileAddress processedData@points <- parseProcessedDataFile(address = fileAddress)[[1]] processedData@pointsWithTopo <- parseProcessedDataFile(address = fileAddress)[[2]]
fileAddress <- system.file('extdata/processed/p1_DipolDipol_SW-NE.xyz', package = 'geoelectrics') processedData = new('ProcessedData') processedData@address = fileAddress processedData@points <- parseProcessedDataFile(address = fileAddress)[[1]] processedData@pointsWithTopo <- parseProcessedDataFile(address = fileAddress)[[2]]
Parses a geoelectrics raw data file created by the GeoTest software by Dr. Rauen. Needs to be overwritten if another raw data format is used.
parseRawDataFile(address, skip = 9)
parseRawDataFile(address, skip = 9)
address |
address of the raw data ascii file. |
skip |
the number of lines of the data file to skip before beginning to read data. |
data frame containing distance, depth and resistivity values
fileAddress <- system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package = 'geoelectrics') rawData = new('RawData') rawData@address = fileAddress rawData@points <- parseRawDataFile(address = fileAddress)
fileAddress <- system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package = 'geoelectrics') rawData = new('RawData') rawData@address = fileAddress rawData@points <- parseRawDataFile(address = fileAddress)
Plots the geoelectrics data points of a profile.
## S4 method for signature 'Profile,ANY' plot(x, dataType = "processed", withTopo = T, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), asp = 1, ...) ## S4 method for signature 'ProfileSet,ANY' plot(x, dataType = "processed", withTopo = T, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), asp = 1, ...) plotProcessedData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), ...) plotProcessedDataWithTopo(x, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), ...) plotRawData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), ...) plotRawDataWithTopo(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "with topography"), height = x@processedData@height, spline = TRUE, ...)
## S4 method for signature 'Profile,ANY' plot(x, dataType = "processed", withTopo = T, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), asp = 1, ...) ## S4 method for signature 'ProfileSet,ANY' plot(x, dataType = "processed", withTopo = T, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), asp = 1, ...) plotProcessedData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), ...) plotProcessedDataWithTopo(x, xlab = "Length [m]", ylab = "Height [m]", main = paste(x@title, "with topography"), ...) plotRawData(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "without topography"), ...) plotRawDataWithTopo(x, xlab = "Length [m]", ylab = "Depth [m]", main = paste(x@title, "with topography"), height = x@processedData@height, spline = TRUE, ...)
x |
profile object. |
dataType |
specify whether 'processed' (default) or 'raw' data should be plotted |
withTopo |
TRUE if topography information is plotted |
xlab |
label for x-axes. |
ylab |
label for y-axes. |
main |
title to be plotted. |
asp |
the y/x aspect ratio (default: 1). |
... |
plot parameters (such as pch, cex, col, ...). |
height |
topo data frame of distances and height. |
spline |
if TRUE spline interpolation is conducted. |
Profile-class
, plot3d
,
levelplot
data(sinkhole) plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE) plotProcessedData(sinkhole@profiles[[1]]) plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) plotProcessedDataWithTopo(sinkhole@profiles[[1]]) plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = FALSE) plotRawData(sinkhole@profiles[[1]]) plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = TRUE) plotRawDataWithTopo(sinkhole@profiles[[1]])
data(sinkhole) plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE) plotProcessedData(sinkhole@profiles[[1]]) plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) plotProcessedDataWithTopo(sinkhole@profiles[[1]]) plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = FALSE) plotRawData(sinkhole@profiles[[1]]) plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = TRUE) plotRawDataWithTopo(sinkhole@profiles[[1]])
Plots the interpolated resistance values of the processed data for a single profile or a set of profiles.
## S4 method for signature 'ProfileSet' plot3d(x, title = x@title, sub = "", xlab = "", ylab = "", zlab = "", minData = x@minData, maxData = x@maxData, col = colors, trafo = log, psize = pointsize, ...) ## S4 method for signature 'Profile' plot3d(x, title = "", sub = "", xlab = "", ylab = "", zlab = "", minData = x@processedData@minData, maxData = x@processedData@maxData, col = colors, trafo = log, psize = pointsize, ...)
## S4 method for signature 'ProfileSet' plot3d(x, title = x@title, sub = "", xlab = "", ylab = "", zlab = "", minData = x@minData, maxData = x@maxData, col = colors, trafo = log, psize = pointsize, ...) ## S4 method for signature 'Profile' plot3d(x, title = "", sub = "", xlab = "", ylab = "", zlab = "", minData = x@processedData@minData, maxData = x@processedData@maxData, col = colors, trafo = log, psize = pointsize, ...)
x |
either an object of a single Profile or a ProfileSet. |
title |
title to be plotted. |
sub |
subtitle to be plotted. |
xlab |
label of the x-axes, e.g. length [m]. |
ylab |
label of the y-axes, e.g. height above sea level [m]. |
zlab |
label of the z-axes, e.g. length [m]. |
minData |
mimimum value to adjust color bar. |
maxData |
maximum value to adjust color bar. |
col |
vector of colors. |
trafo |
transformation to be done on data (default: log). |
psize |
size of value points (default: 10). |
... |
parameters passed to points3d method of rgl package |
Profile-class
, ProfileSet-class
,
plot
, levelplot
data(sinkhole) plot3d(sinkhole@profiles[[1]]) plot3d(sinkhole)
data(sinkhole) plot3d(sinkhole@profiles[[1]]) plot3d(sinkhole)
Plots resistivity against height on and next to the intersection line between two profiles.
plotIntersect(.Object1, .Object2 = NULL, xlab = "Height above sea level [m]", ylab = expression(paste("Resistivity [", Omega, "m]")), main = "", trafo = log, backtrafo = exp, col = colors, pch = c(20, 20), type = "p", legendLoc = "bottomleft") ## S4 method for signature 'ProfileSet,ANY' plotIntersect(.Object1, xlab, ylab, main, trafo, backtrafo, col, pch, type, legendLoc) ## S4 method for signature 'Profile,Profile' plotIntersect(.Object1, .Object2 = NULL, xlab = "Height above sea level [m]", ylab = expression(paste("Resistivity [", Omega, "m]")), main = "", trafo = log, backtrafo = exp, col = colors, pch = c(20, 20), type = "p", legendLoc = "bottomleft")
plotIntersect(.Object1, .Object2 = NULL, xlab = "Height above sea level [m]", ylab = expression(paste("Resistivity [", Omega, "m]")), main = "", trafo = log, backtrafo = exp, col = colors, pch = c(20, 20), type = "p", legendLoc = "bottomleft") ## S4 method for signature 'ProfileSet,ANY' plotIntersect(.Object1, xlab, ylab, main, trafo, backtrafo, col, pch, type, legendLoc) ## S4 method for signature 'Profile,Profile' plotIntersect(.Object1, .Object2 = NULL, xlab = "Height above sea level [m]", ylab = expression(paste("Resistivity [", Omega, "m]")), main = "", trafo = log, backtrafo = exp, col = colors, pch = c(20, 20), type = "p", legendLoc = "bottomleft")
.Object1 |
either a single Profile or a ProfileSet. |
.Object2 |
either a second single Profile or NULL if .Object1 is of type ProfileSet. |
xlab |
label of the x-axes, e.g. length [m]. |
ylab |
label of the y-axes, e.g. height above sea level [m]. |
main |
title to be plotted. |
trafo |
transformation to be done on data (default: log). |
backtrafo |
back transformation to plot correct labels (default: exp). |
col |
character vector of colors. |
pch |
numeric vector of plotting symbols. |
type |
plot type (default "p" for points). "b" for both points and lines, "c" for empty points joined by lines, "o" for overplotted points and lines, "s" and "S" for stair steps and "h" for histogram-like vertical lines. Finally, "n" does not produce any points or lines. |
legendLoc |
legendLocation (default "bottomleft"). |
data(sinkhole) plotIntersect(sinkhole) plotIntersect(sinkhole@profiles[[1]], sinkhole@profiles[[2]])
data(sinkhole) plotIntersect(sinkhole) plotIntersect(sinkhole@profiles[[1]], sinkhole@profiles[[2]])
Plots the legend for resistivity values.
plotLegend(.Object, legend.lab = expression(paste("Resistivity [", Omega, " m]")), minData = 0, maxData = 999999, breaks = NULL, legend.line = 2.2, nlevel = 18, lab.breaks = c(), horizontal = T, col = colors, trafo = log, backtrafo = exp, ...) ## S4 method for signature 'ProfileSet' plotLegend(.Object, legend.lab, minData = .Object@minData, maxData = .Object@maxData) ## S4 method for signature 'Profile' plotLegend(.Object, legend.lab, minData = .Object@processedData@minData, maxData = .Object@processedData@maxData)
plotLegend(.Object, legend.lab = expression(paste("Resistivity [", Omega, " m]")), minData = 0, maxData = 999999, breaks = NULL, legend.line = 2.2, nlevel = 18, lab.breaks = c(), horizontal = T, col = colors, trafo = log, backtrafo = exp, ...) ## S4 method for signature 'ProfileSet' plotLegend(.Object, legend.lab, minData = .Object@minData, maxData = .Object@maxData) ## S4 method for signature 'Profile' plotLegend(.Object, legend.lab, minData = .Object@processedData@minData, maxData = .Object@processedData@maxData)
.Object |
either a single Profile or a ProfileSet. |
legend.lab |
label of legend (default: expression(paste("Resistivity [", Omega, "]"))). |
minData |
minimum value. |
maxData |
maximum value. |
breaks |
Break points in sorted order to indicate the intervals for assigning the colors. Note that if there are nlevel colors there should be (nlevel+1) breakpoints. If breaks is not specified (nlevel+1) equally spaced breaks are created where the first and last bin have their midpoints at the minimum and maximum values in z or at zlim. |
legend.line |
distance in units of character height (as in mtext) of the legend label from the color bar. Make this larger if the label collides with the color axis labels. |
nlevel |
number of color levels. |
lab.breaks |
number of breaks. |
horizontal |
If false legend will be a vertical strip on the right side. If true (default) the legend strip will be along the bottom. |
col |
vector of colors. |
trafo |
transformation to be done on data (default: log). For linear scale: function(x) x. |
backtrafo |
back transformation to plot correct labels (default: exp). For linear scale: function(x) x. |
... |
image.plot arguments. |
Profile-class
, ProfileSet-class
,
plot3d
,
data(sinkhole) plotLegend(sinkhole) # for linear scale: plotLegend(sinkhole@profiles[[1]], trafo=function(x) x, backtrafo=function(x) x, minData=100, maxData=50000)
data(sinkhole) plotLegend(sinkhole) # for linear scale: plotLegend(sinkhole@profiles[[1]], trafo=function(x) x, backtrafo=function(x) x, minData=100, maxData=50000)
A class to handle processed geoelectrics data in ascii format.
The processed data class parses .xyz files produced by the software Res2DInv.
If you want to use another format, overwrite the parseProcessedDataFile
method.
address
address of the processed ascii file
points
data frame that contains positions and values withouth topography information
pointsWithTopo
data frame that contains positions and values with topography information
height
data frame that contains topography information (distances and heights). It is reconstructed from .xyz-file.
minData
minimum value
maxData
maximum value
parseProcessedDataFile
, Profile-class
, ProfileSet-class
processedData = new('ProcessedData', address = system.file('extdata/processed/p1_DipolDipol_SW-NE.xyz', package='geoelectrics')) data(sinkhole) sinkhole@profiles[[1]]@processedData sinkhole@profiles[[1]]@processedData@points sinkhole@profiles[[1]]@processedData@pointsWithTopo sinkhole@profiles[[1]]@processedData@height sinkhole@profiles[[1]]@processedData@minData sinkhole@profiles[[1]]@processedData@maxData
processedData = new('ProcessedData', address = system.file('extdata/processed/p1_DipolDipol_SW-NE.xyz', package='geoelectrics')) data(sinkhole) sinkhole@profiles[[1]]@processedData sinkhole@profiles[[1]]@processedData@points sinkhole@profiles[[1]]@processedData@pointsWithTopo sinkhole@profiles[[1]]@processedData@height sinkhole@profiles[[1]]@processedData@minData sinkhole@profiles[[1]]@processedData@maxData
A class to handle a single profile.
title
title of the profile (e.g. Profile 1).
number
index of the profile.
processedData
object of Processed Data Class (ProcessedData-class
).
rawData
object of Raw Data Class (RawData-class
).
measurementType
type of measurement (e.g. Dipole Dipole, Wenner, ...).
gpsCoordinates
object of GpsCoordinates Class (GpsCoordinates-class
).
ProcessedData-class
, RawData-class
,
GpsCoordinates-class
, plot3d
, plot
p1 <- new('Profile', title = 'Profile 1', processedData = new('ProcessedData', address = system.file('extdata/processed/p1_DipolDipol_SW-NE.xyz', package='geoelectrics')), rawData = new('RawData', address = system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package='geoelectrics')), measurementType = 'DipoleDipole', gpsCoordinates = new('GpsCoordinates', address = system.file('extdata/gps/p1.txt', package='geoelectrics'))) p1@title p1@processedData p1@rawData p1@measurementType p1@gpsCoordinates plot3d(p1)
p1 <- new('Profile', title = 'Profile 1', processedData = new('ProcessedData', address = system.file('extdata/processed/p1_DipolDipol_SW-NE.xyz', package='geoelectrics')), rawData = new('RawData', address = system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package='geoelectrics')), measurementType = 'DipoleDipole', gpsCoordinates = new('GpsCoordinates', address = system.file('extdata/gps/p1.txt', package='geoelectrics'))) p1@title p1@processedData p1@rawData p1@measurementType p1@gpsCoordinates plot3d(p1)
A class to handle a collection of many profiles.
title
title to plot
profiles
list that contains objects of class Profile (Profile-class
)
minLat
minimum latitude value of all profiles
minLon
minimum longitude value of all profiles
minData
minimum data value of all profiles
maxData
maximum data value of all profiles
# sinkhole <- new('ProfileSet', # profiles = list(p1, p2, p3), # title='Sinkhole') data(sinkhole) plot3d(sinkhole)
# sinkhole <- new('ProfileSet', # profiles = list(p1, p2, p3), # title='Sinkhole') data(sinkhole) plot3d(sinkhole)
A class to handle geoelectrics raw data.
The raw data class parses .dat files provided by the GeoTest software by Dr. Rauen.
If you want to use another format, overwrite the parseRawDataFile
method.
address
address of the raw data ascii file.
points
data frame that contains raw data resistance values and their positions (distance and depth).
parseRawDataFile
, Profile-class
, ProfileSet-class
rawData = new('RawData', address = system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package='geoelectrics')) data(sinkhole) sinkhole@profiles[[2]]@rawData sinkhole@profiles[[2]]@rawData@address sinkhole@profiles[[2]]@rawData@points
rawData = new('RawData', address = system.file('extdata/raw/p1_DipolDipol_SW-NE.dat', package='geoelectrics')) data(sinkhole) sinkhole@profiles[[2]]@rawData sinkhole@profiles[[2]]@rawData@address sinkhole@profiles[[2]]@rawData@points
Geoelectrics profiles measured at a filled sinkhole. This data set contains an object of the ProfileSet class.
Object of Profile Set class including three Profiles.
ProfileSet-class
, Profile-class
, plot3d
, plot
,
levelplot
, plotLegend
, plotIntersect
data(sinkhole) # Plot the processed data in three dimensions plot3d(sinkhole) # Plot legend for the profile set plot.new() plotLegend(sinkhole) # Plot raw data of profile 1 plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = FALSE, main = 'Profile 1', ylab = 'Depth [m]') plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = TRUE) levelplot(sinkhole@profiles[[1]], dataType = 'raw') levelplotLegendLabel() # Plot processed data of profile 1 plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE, main = 'Profile 1', ylab = 'Depth [m]') plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE) levelplotLegendLabel() levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) levelplotLegendLabel() # Compare processed data values on the intersection line between two profiles plotIntersect(sinkhole)
data(sinkhole) # Plot the processed data in three dimensions plot3d(sinkhole) # Plot legend for the profile set plot.new() plotLegend(sinkhole) # Plot raw data of profile 1 plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = FALSE, main = 'Profile 1', ylab = 'Depth [m]') plot(sinkhole@profiles[[1]], dataType = 'raw', withTopo = TRUE) levelplot(sinkhole@profiles[[1]], dataType = 'raw') levelplotLegendLabel() # Plot processed data of profile 1 plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE, main = 'Profile 1', ylab = 'Depth [m]') plot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = FALSE) levelplotLegendLabel() levelplot(sinkhole@profiles[[1]], dataType = 'processed', withTopo = TRUE) levelplotLegendLabel() # Compare processed data values on the intersection line between two profiles plotIntersect(sinkhole)