taup.velmerge

Module Contents

Classes

VelmergeQuery

API

class taup.velmerge.VelmergeQuery

Initialization

calcJson(taupServer)

Sends all params to the server, returns the result parsed from JSON.

get_elev()

returns current value of elev as a Float

elev(val)

Sets the elev parameter, of type Float

increase topmost layer by elevation (meters)

Known as --elev in command line.

Parameters:

val – value to set elev to

get_mod()

returns current value of model as a String

mod(val)

Sets the model parameter, of type String

use velocity model “modelname” for calculations, format is guessed.

Known as --mod in command line. Also known as --model in command line.

Parameters:

val – value to set model to

get_model()

returns current value of model as a String

model(val)

Sets the model parameter, of type String

use velocity model “modelname” for calculations, format is guessed.

Known as --model in command line.

Parameters:

val – value to set model to

get_modmerge()

returns current value of modmerge as a String

modmerge(val)

Sets the modmerge parameter, of type String

velocity file to merge, format is guessed

Known as --modmerge in command line.

Parameters:

val – value to set modmerge to

get_ndmerge()

returns current value of ndmerge as a String

ndmerge(val)

Sets the ndmerge parameter, of type String

“named discontinuities” velocity file to merge

Known as --ndmerge in command line.

Parameters:

val – value to set ndmerge to

get_smoothbot()

returns current value of smoothbot as a Boolean

smoothbot(val)

Sets the smoothbot parameter, of type Boolean

smooth merge at bottom

Known as --smoothbot in command line.

Parameters:

val – value to set smoothbot to

get_smoothtop()

returns current value of smoothtop as a Boolean

smoothtop(val)

Sets the smoothtop parameter, of type Boolean

smooth merge at top

Known as --smoothtop in command line.

Parameters:

val – value to set smoothtop to

get_tvelmerge()

returns current value of tvelmerge as a String

tvelmerge(val)

Sets the tvelmerge parameter, of type String

“.tvel” velocity file to merge, ala ttimes

Known as --tvelmerge in command line.

Parameters:

val – value to set tvelmerge to

create_params()

Create dict of params suitible for passing to requests query call.