aux_fixmseed: Fix corrupt miniseed files

View source: R/aux_fixmseed.R

aux_fixmseedR Documentation

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)

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.

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.

Value

a set of mseed files written to disk.

Author(s)

Michael Dietze

Examples


## Not run: 

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


## End(Not run)


coffeemuggler/eseis documentation built on Aug. 19, 2023, 9:57 p.m.