Skip to main content

Analysis tools for Radyn in Python

Project description

RadynPy

IMPORTANT NOTE

This is an early development release of RadynPy, a nascent suite of tools to allow analysis of Radyn simulations to be performed in Python. It contains a minimal set of features to perform analysis of Radyn CDF files, and produce contribution functions.

If you don’t know what Radyn is, then this package is probably not aimed at you!

The easiest way to load a CDF file is to use radynpy.cdf.LazyRadynData. An object can be constructed by passing the path to a Radyn CDF file. Data is loaded lazily as it is requested. The normal keys of this file can then be accessed by . notation (e.g. data.tg1). To look at the indexing convention and the data layout (which is different to IDL due to handling of the record time axis), the functions index_convention, and for information on a specific variable, or set of variables, var_info can be used. var_info takes a string or list of strings for the variables of interest (this string may be ‘*’ to print information on all variables).

The class radynpy.cdf.RadynData also exists, it takes the path to a CDF file, and a list of keys to be loaded (or ‘*’ for everything). It performs similarly to LazyRadynData, but a key that was not requested at construction will not be loaded.

NOTE: By default both RadynData and LazyRadynData expect a filename in the F-CHROMA style (i.e. with the heating parameters), if your filename does not fit this style then both classes take a parseFilenameParams=False kwarg.

Contribution functions can be plotted using radynpy.matsplotlib.contib_fn. See the extensive docstring of this function for more information. Utilities used in the calculation of the contribution function can be found in radynpy.matsplotlib.utils and radynpy.matsplotlib.opacity. For the most part these are very simple functions and classes that mirror the counterparts in the Radyn software distribution produced by M. Carlsson.

Project details


Download files

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

Source Distribution

radynpy-0.4.3.tar.gz (10.0 MB view details)

Uploaded Source

Built Distribution

radynpy-0.4.3-py3-none-any.whl (10.0 MB view details)

Uploaded Python 3

File details

Details for the file radynpy-0.4.3.tar.gz.

File metadata

  • Download URL: radynpy-0.4.3.tar.gz
  • Upload date:
  • Size: 10.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for radynpy-0.4.3.tar.gz
Algorithm Hash digest
SHA256 a4d7f6cb4c3e8cc7ea2cc5038d66e93ed69eda9096ff78af68e0aa336934d79c
MD5 4b943b732f428f14fae15d0e7efec986
BLAKE2b-256 2522a4caf28cb40c2970612daba62463a3b8e88b7ee0ae896616b71dbc843df9

See more details on using hashes here.

File details

Details for the file radynpy-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: radynpy-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for radynpy-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87fef335ce28773c300f8e1e4c8d4f4f9d3e5cccc61596c89daf24c05c28560d
MD5 4e52d2182ce3206a01ca0d79a723182f
BLAKE2b-256 bb2885afc167636c3ee53a1cafa5eeed003a8d7d2cf792f2be4f2ab7da55bf07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page