Learn R Programming

eseis (version 0.6.0)

aux_fixmseed: Fix corrupt miniseed files

Description

This function is a wrapper for the library 'dataselect' from IRIS. It reads a corrupt mseed file and saves it in fixed state. Therefore, the function requires dataselect being installed (see details).

Usage

aux_fixmseed(file, input_dir, output_dir, software)

Value

a set of mseed files written to disk.

Arguments

file

Character vector, seismic file to process.

input_dir

Character value, path to input directory, i.e., the directory where the files to process are located.

output_dir

Character value, path to output directory, i.e., the directory where the processed files are written to. This must be different from input_dir.

software

Character value, path to the 'dataselect' library, required unless the path to the library is made gobally visible.

Author

Michael Dietze

Details

The library 'dataselect' can be downloaded at https://github.com/iris-edu/dataselect and requires compilation (see README file in dataselect directory). The function goes back to an email discussion with Gillian Sharer (IRIS team), many thanks for pointing me at this option to process corrupt mseed files.

Examples

Run this code

if (FALSE) {

aux_fixmseed(file = list.files(path = "~/data/mseed", 
                               pattern = "miniseed"), 
                    input_dir = "~/data/mseed",
                    software = "~/software/dataselect-3.17")

}

Run the code above in your browser using DataLab