miniseed2Stream: Convert miniSEED bytes to 'Stream' object

View source: R/Utils.R

miniseed2StreamR Documentation

Convert miniSEED bytes to Stream object

Description

The miniseed2Stream function converts raw miniSEED bytes into a Stream object.

Usage

miniseed2Stream(miniseed,url,requestedStarttime,requestedEndtime,
                sensor,scale,scalefreq,scaleunits,latitude,longitude,
                elevation, depth, azimuth,dip)

Arguments

miniseed

a vector of raw bytes read from a miniSEED file

url

character source location (see getDataselect)

requestedStarttime

POSIXct time associated with the requested starttime (see getDataselect)

requestedEndtime

POSIXct time associated with the requested endtime (see getDataselect)

sensor

character description of the Sensor type associated with this Station-Network-Channel-Location (SNCL) (see Trace)

scale

character description of the InstrumentSensitivity associated with this SNCL (see Trace)

scalefreq

numeric description of frequency at which the InstrumentSensitivity is correct, the SensitivityFrequency (see Trace)

scaleunits

character description of the InputUnits associated with this SNCL (see Trace)

latitude

numeric latitude associated with this SNCL (see Trace)

longitude

numeric longitude associated with this SNCL (see Trace)

elevation

numeric elevation associated with this SNCL (see Trace)

depth

numeric depth associated with this SNCL (see Trace)

azimuth

numeric channel azimuth associated with this SNCL (see Trace)

dip

numeric channel dip associated with this SNCL (see Trace)

Details

This function takes raw bytes read in from a file or URL and converts them to a Stream object. Metadata information is optional. This function is primarily for internal use.

Value

A Stream object.

Author(s)

Jonathan Callahan jonathan@mazamascience.com

See Also

readMiniseedFile


IRISSeismic documentation built on Oct. 16, 2022, 1:09 a.m.