aux_stationinfofile {eseis} | R Documentation |
Create station info file from cube files.
Description
This function reads GPS tags from Omnirecs/Digos Datacube files and creates a station info file from additional input data. It depends on the cubetools or gipptools software package (see details).
Usage
aux_stationinfofile(
name,
input_dir,
output_dir,
station_ID,
station_name,
station_z,
station_d,
sensor_type,
logger_type,
sensor_ID,
logger_ID,
unit = "dd",
n,
quantile = 0.95,
random = TRUE,
cpu,
gipptools,
write_file = TRUE,
write_raw = FALSE,
write_data = FALSE
)
Arguments
name |
|
input_dir |
|
output_dir |
|
station_ID |
|
station_name |
|
station_z |
|
station_d |
|
sensor_type |
|
logger_type |
|
sensor_ID |
|
logger_ID |
|
unit |
|
n |
|
quantile |
|
random |
|
cpu |
|
gipptools |
|
write_file |
|
write_raw |
|
write_data |
|
Details
A station info file is an ASCII file that contains all relevant information
about the individual stations of a seismic network. The variables contain a
station ID (containing not more than 5 characters), station name, latitude,
longitude, elevation, deployment depth, sensor type, logger type, sensor
ID and logger ID.
The function requires that the software cubetools
(http://www.omnirecs.de/documents.html
) or gipptools
(http://www.gfz-potsdam.de/en/section/geophysical-deep-sounding/infrastructure/geophysical-instrument-pool-potsdam-gipp/software/gipptools/
)
are installed. Note that GPS tag extraction may take several minutes per
cube file. Hence, depending on the number of files and utilised CPUs the
processing may take a while.
Specifying an input directory
(input_dir
) is mandatory. This input directory must only contain the
subdirectories with the cube files to process, each set of cube files must
be located in a separate subdirectory and these subdiretories must
have the same name as specified by the logger IDs (logger_ID
). An
appropriate structure would be something like:
input
A1A
file1.A1A
file2.A1A
A1B
file1.A1B
file2.A1B
Value
A set of files written to disk and a data frame with seismic station information.
Author(s)
Michael Dietze
Examples
## Not run:
## basic example with minimum effort
aux_stationinfofile(name = "stationinfo",
input_dir = "input",
logger_ID = c("864", "876", "AB1"),
gipptools = "software/gipptools-2015.225")
## example with more adjustments
aux_stationinfofile(name = "stationinfo",
input_dir = "input",
logger_ID = c("864", "876", "AB1"),
station_name = c("KTZ01", "KTZ02", "KTZ03"),
station_z = c(30, 28, 29),
station_d = rep(0.5, 3),
sensor_type = rep("TC120s", 3),
logger_type = rep("Cube3ext", 3),
unit = "utm",
n = 1,
cpu = 0.9,
gipptools = "software/gipptools-2015.225",
write_raw = TRUE,
write_data = TRUE)
## End(Not run)