Skip to main content

Sphere target strength calculator

Static badge python GitHub Actions Workflow Status

The sphereTS package calculates the acoustic target strength (TS) of elastic spheres immersed in a fluid. It is intended for calculating the TS of the spheres used for calibrating echosounders used for quantitative estimates of marine organism backscatter.

Install from pypi:

pip install spherets

and run the GUI from a terminal (type spherets) to get the main window:

main

TS values are shown in a separate window:

results

The underlying target strength functions are also available, for example:

import matplotlib.pyplot as plt
from sphereTS import sphere_ts as sts

wc = sts.material_properties()['Tungsten carbide']

c = 1470  # [m/s] sound speed in water
rho = 1027  # [kg/m^3] density of water
a = 0.0381/2  # [m] radius of sphere

ts = sts.sphere_ts(38e3, a, c, wc['c1'], wc['c2'], rho, wc['rho1'])

print(ts)

f, tsf = sts.freq_response(12e3, 200e3, a, c, 
                           wc['c1'], wc['c2'], rho, wc['rho1'])

plt.plot(f/1e3, tsf)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spherets-1.0.8.tar.gz (132.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spherets-1.0.8-py3-none-any.whl (130.8 kB view details)

Uploaded Python 3

File details

Details for the file spherets-1.0.8.tar.gz.

File metadata

  • Download URL: spherets-1.0.8.tar.gz
  • Upload date:
  • Size: 132.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spherets-1.0.8.tar.gz
Algorithm Hash digest
SHA256 1fb9959e0ce54580eef5faa89c44ec88de82bc9b1dafc24df67d66076aaa3284
MD5 2524371d1d8fb3ee11c2d14dd65d1e5b
BLAKE2b-256 6ed602c51fb8f3d11e6117f2adde881db3ee11374ed6433c4874ea0b74f7b9d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for spherets-1.0.8.tar.gz:

Publisher: publish-to-pypi.yml on gavinmacaulay/SphereTS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spherets-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: spherets-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 130.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for spherets-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 54e944d5feec1296694b1ce6c2244e39cf2dc0daad7444119f110a412bbea1ea
MD5 3ed795b493571f08ad10f016b35c5558
BLAKE2b-256 3091a76caee0aced48dee91c346807b2c518dc74555cdc314d6378d5ea5ecaa2

See more details on using hashes here.

Provenance

The following attestation bundles were made for spherets-1.0.8-py3-none-any.whl:

Publisher: publish-to-pypi.yml on gavinmacaulay/SphereTS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page