obspy.taup.taup_create.build_taup_model

build_taup_model(filename, output_folder=None, verbose=True)[source]

Build an ObsPy model file from a “tvel” or “nd” file.

The file is loaded into a TauModel instance and is then saved in ObsPy’s own format, which can be loaded using from_file(). The output file will have the same name as the input with '.npz' as file extension.

Parameters
  • filename (str) – Absolute path of input file.

  • output_folder (str) – Directory in which the built TauModel will be stored. Defaults to the taup/data directory of the current obspy installation.