CyberShake output data headers

From SCECpedia
Revision as of 19:07, 9 October 2017 by Scottcal (talk | contribs)
Jump to navigationJump to search

This page details the header formats for various kinds of CyberShake output data files. These headers have been used in CyberShake since Run ID 1310.

Seismogram header

The seismogram header is 56 bytes, and is defined (in C) as follows:

struct seisheader {
 char version[8];
 char site_name[8];
 //in case we think of something later
 char padding[8];
 int source_id;
 int rupture_id;
 int rup_var_id;
 float dt;
 int nt;
 int comps;
 float det_max_freq;
 float stoch_max_freq;
};
  • Version: The current version is 12.10.
  • Site name: The name of the CyberShake site.
  • Padding: Empty space in case we have a use for it later.
  • Source ID: The source ID of the event this seismogram is for.
  • Rupture ID: The rupture ID of the event this seismogram is for.
  • Rup Var ID: The rupture variation ID of the event this seismogram is for.
  • DT: the timestep size used in the seismogram.
  • NT: the number of timesteps in the seismogram.
  • Comps: This tracks the components in the seismogram. There are three flags, one for each component (X=1, Y=2, Z=4), and the flags are ANDed together to produce the value here.
  • Det_max_freq: the maximum frequency of the deterministic part of the seismogram. This was 0.5 for studies before 15.4, and 1.0 for 15.4, 15.12, and 17.3.
  • Stoch_max_freq: the maximum frequency of the stochastic part of the seismogram. For studies with no stochastic component this is -1; for studies 1.4 and 15.12 it is 10.0.

This header precedes every two-component seismogram.

Sample C code

Sample Python code

PSA header

RotD header

Duration header