You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This page will have a summary of the file formats that we use in the simulations and workflow.

LF/HF/BB binary format

All formats follow a style derived from the LF seis format produced by EMOD3D:

  1. station size, common metadata
  2. station list with station metadata
  3. timeseries

Numbers are 4 bytes in length and may be little or big endian. You can see or use the existing interfaces that also take care of endianness at github:ucgmsim/qcore/qcore/timeseries.py::LFSeis, HFSeis, BBSeis.
File size can be derived knowing the format and the number of stations, and shape of time-series (all necessary values are at the beginning of the file).
The second (station) section is repeated for each station.
The LF format contains unnecessarily repeated common metadata in the station list section.

LFHFBB
i4 number of stations

i4 number of stations
i4 number of timesteps
i4 seed used in simulation
i4 site amplification used (bool)
i4 path duration method
i4 number of ray methods
i4 first ray method used
i4 second ray method used
i4 third ray method used
i4 fourth ray method used
i4 nbu parameter
i4 ift parameter
i4 nlskip parameter
i4 icflag parameter (bool)
i4 individually run stations (bool)
i4 site specific VMs used (bool)
f4 duration of timeseries
f4 timestep of timeseries
f4 start time of timeseries
f4 stress drop parameter
f4 flo parameter
f4 fhi parameter
f4 rvfac parameter
f4 rvfac (shallow) parameter
f4 rvfac (deep) parameter
f4 czero parameter
f4 calpha parameter
f4 mom parameter
f4 rupv parameter
f4 vs_moho parameter
f4 vp_sig parameter
f4 vsh_sig parameter
f4 rho_sig parameter
f4 qs_sig parameter
f4 fa_sig1 parameter
f4 fa_sig2 parameter
f4 rv_sig1 parameter
s64 stoch file used
s64 velocity model used

i4 number of stations
i4 number of timesteps
f4 duration of timeseries
f4 timestep of timeseries
f4 start time of timeseries
s256 LF directory path used
s256 LF VM directory path used
s256 HF file path used
possibly add vsite file path used here?
i4 index of station in input file
i4 x gridpoint of station
i4 y gridpoint of station
i4 z gridpoint of station
i4 simulation number of timesteps
f4 simulation timestep
f4 simulation grid spacing
f4 simulation grid rotation
f4 latitude of station
f4 longitude of station
s8 name of station
f4 longitude of station
f4 latitude of station
s8 name of station
f4 epicentre distance to station
f4 vs30 at station
f4 longitude of station
f4 latitude of station
s8 name of station
i4 x gridpoint of station
i4 y gridpoint of station
i4 z gridpoint of station
f4 epicentre distance to station
f4 HF vs30
f4 LF vs30
f4 BB vs30
f4 velocity timeseries in array dimensions:
timestep, station, component (9)
f4 acceleration timeseries in array dimensions:
station, timestep, component (3)
f4 acceleration timeseries in array dimensions:
station, timestep, component (3)

 

 

Intensity Measure calculation

The IM calculation code will produce a number of text files (decided as of 25/05/2018). We will summarize them in the following.

Intensity measure files

There are two types of IM files: per station and aggregate. The per station one has the following format:

component, IM_1, IM_2, ...., IM_N

Note: The per station file does not have the station name, as it is the file name.

The aggregate one has all the stations on a single place:

station, component, IM_1, IM_2, ...., IM_N

Rrup file

The file format for this is:

station, lat, lon, rrup, rjbs, rx

Note: we don't have rx calculations yet, so we may dump an invalid value just to conform with the format.

Metadata file

So far the requirements indicate that we need:

identifier, rupture, type, date
  • No labels