rsac                  package:Rsac                  R Documentation

_R_E_A_D _A _B_I_N_A_R_Y _S_A_C _F_I_L_E

_D_e_s_c_r_i_p_t_i_o_n:

     This function reads the header information and data of a SAC
     binary file into a list.

_U_s_a_g_e:

       rsac(files, endian = .Platform$endian)

_A_r_g_u_m_e_n_t_s:

   files: name of file to be read.

  endian: the endian-ness of the file. See 'readBin'.

_V_a_l_u_e:

     an object of class '"rsac"', which is a list containing the
     following elements:  

     amp: data.

      dt: Increment between evenly spaced samples (nominal value).

  depmin: Minimum value of dependent variable.

  depmax: Maximum value of dependent variable.

   scale: Multiplying scale factor for dependent variable.

  odelta: Observed increment if different from nominal value.

       b: Beginning value of the independent variable.

       e: Ending value of the independent variable.

       o: Event origin time (seconds relative to reference time.

       a: First arrival time, seconds relative to reference time.

       f: End of event time.

    stla: Station latitude (degrees, north positive).

    stlo: Station longitude (degrees, east positive).

    stel: Station elevation (meters).

    stdp: Station depth below surface (meters). 

    evla: Event latitude (degrees, north positive).

    evlo: Event longitude (degrees, east positive).

    evel: Event elevation (meters).

    evdp: Event depth below surface (meters).

     mag: Event magnitude.

    dist: Station to event distance (km).

      az: Event to station azimuth (degrees).

     baz: Station to event azimuth (degrees).

   gcarc: Station to event great circle arc length (degrees).

   cmpaz: Component azimuth (degrees clockwise from north).

  cmpinc: Component incident angle (degrees from vertical).

  nzyear: GMT year corresponding to reference (zero) time in file.

  nzjday: GMT julian day.

  nzhour: GMT hour.

   nzmin: GMT minute.

   nzsec: GMT second.

  nzmsec: GMT millisecond.

   norid: Origin ID.

   nevid: Event ID.

       N: Number of points in time series.

   units: Type of dependent variable (IUNKN=Unknown; IDISP=Displacement
          in nm; IVEL=Velocity in nm/sec; IVOLTS=Velocity in volts;
          IACC=Acceleration in nm/sec/sec).

  iztype: Reference time equivalence (IUNKN=Unknown; IB=Begin time;
          IDAY=Midnight of refernece GMT day; IO=Event origin time;
          IA=First arrival time; ITn=User defined time pick n, n=0,9).

   leven: 'TRUE' if data is evenly spaced.

  lpspol: 'TRUE' if station components have a positive polarity
          (left-hand rule).

     sta: Station name.

   kevnm: Event name.

   khole: Hole identification if nuclear event.

      ko: Event origin time identification.

      ka: First arrival time identification.

    comp: Component name.

knetwork: Name of seismic network.

   kinst: Generic name of recording instrument.

_A_u_t_h_o_r(_s):

     Eric M. Thompson <eric.thompson@tufts.edu>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.llnl.gov/sac/>

_E_x_a_m_p_l_e_s:

     x <- rsac(system.file("bigendian/2003.356.19.15.31.0000.NC.NTAB..EHZ.D.SAC", package = "Rsac"), endian = "big")

     plot(x)

