taup.velplot

Module Contents

Classes

VelplotQuery

API

class taup.velplot.VelplotQuery

Initialization

calcJson(taupServer)

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

calcGmt(taupServer)

Sends all params to the server, returns the result as a text version of gmt.

calcHtml(taupServer)

Sends all params to the server, returns the result as a text version of html.

calcCsv(taupServer)

Sends all params to the server, returns the result as a text version of csv.

calcSvg(taupServer)

Sends all params to the server, returns the result as a text version of svg.

calcText(taupServer)

Sends all params to the server, returns the result as a text version of text.

calcNameddiscon(taupServer)

Sends all params to the server, returns the result as a text version of nameddiscon.

get_legend()

returns current value of legend as a Boolean

legend(val)

Sets the legend parameter, of type Boolean

create a legend

Known as --legend in command line.

Parameters:

val – value to set legend to

get_mapwidth()

returns current value of mapwidth as a Float

mapwidth(val)

Sets the mapwidth parameter, of type Float

plot width in units from –mapwidthunit.

Known as --mapwidth in command line.

Parameters:

val – value to set mapwidth to

get_mapwidthunit()

returns current value of mapwidthunit as a String

mapwidthunit(val)

Sets the mapwidthunit parameter, of type String

plot width unit, i for inch, c for cm or p for px.

Known as --mapwidthunit in command line.

Parameters:

val – value to set mapwidthunit to

get_mod()

returns current value of model as a List

mod(val)

Sets the model parameter, of type List of String If a single String is passed in, it is automatically wrapped in a list. So params.mod( value ) and params.mod( [ value ] ) are equivalent.

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

andMod(val)

Append a value to 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 List

model(val)

Sets the model parameter, of type List of String If a single String is passed in, it is automatically wrapped in a list. So params.model( value ) and params.model( [ value ] ) are equivalent.

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

Known as --model in command line.

Parameters:

val – value to set model to

andModel(val)

Append a value to 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_x()

returns current value of xaxis as a edu.sc.seis.TauP.ModelAxisType

x(val)
Sets the xaxis parameter, a choice of one of:

depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus

X axis data type, one of depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus Default is velocity.

Known as -x in command line. Also known as --xaxis in command line.

Parameters:

val – value to set xaxis to

get_xaxis()

returns current value of xaxis as a edu.sc.seis.TauP.ModelAxisType

xaxis(val)
Sets the xaxis parameter, a choice of one of:

depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus

X axis data type, one of depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus Default is velocity.

Known as --xaxis in command line.

Parameters:

val – value to set xaxis to

get_xminmax()

returns current value of xminmax as a [D

xminmax(val)

Sets the xminmax parameter, of type [D

min and max x axis for plotting

Known as --xminmax in command line.

Parameters:

val – value to set xminmax to

get_y()

returns current value of yaxis as a edu.sc.seis.TauP.ModelAxisType

y(val)
Sets the yaxis parameter, a choice of one of:

depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus

Y axis data type, one of depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus Default is depth.

Known as -y in command line. Also known as --yaxis in command line.

Parameters:

val – value to set yaxis to

get_yaxis()

returns current value of yaxis as a edu.sc.seis.TauP.ModelAxisType

yaxis(val)
Sets the yaxis parameter, a choice of one of:

depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus

Y axis data type, one of depth, radius, velocity, Vp, Vs, slownessdeg, slownessdeg_p, slownessdeg_s, slownessrad, slownessrad_p, slownessrad_s, density, velocity_density, Qp, Qs, Q, vpvs, vpdensity, vsdensity, poisson, shearmodulus, lambda, bulkmodulus, youngsmodulus Default is depth.

Known as --yaxis in command line.

Parameters:

val – value to set yaxis to

get_yminmax()

returns current value of yminmax as a [D

yminmax(val)

Sets the yminmax parameter, of type [D

min and max y axis for plotting

Known as --yminmax in command line.

Parameters:

val – value to set yminmax to

create_params()

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