Skip to main content

DEM Regularised Inversion Calculation in Python (Hannah & Kontar 2012)

Project description

DEMREG-PY

This is a python implementation of Hannah & Kontar (2012)'s regularised inversion method. The code is tightly based on the IDL mapping version of the DEM reg-inv code found at https://github.com/ianan/demreg in addition, the code enforces a positivity constraint on the DEM (hence pos)

The philosophy was to produce as similar a piece of software as the original version and as such, this python version has been shown to recover the same DEM as the IDL version (to within approximately 4 significant figures). It is likely this philosophy has lead to performance hits and I plan to go back and address the more hacky parts of the code at a later date.

To calculate a DEM you first need:

Data and associated error for a range of channels: e.g. in dn/s/px or counts/s

Temperature dependent channel response: How sensitive are your channels to plasma of each temperature?

To use: simply call dn2dem_pos with either a single pixel, 1d slice or 2d map of DN values as a function of filter (and associated error on DN), an array of temperatures over which to perform the DEM analysis and a temperature response for those filters.

For large datasets, beyond 200 pixels, the code switches to a parallel execution providing significant speedups.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

demregpy-0.6.1-py3-none-any.whl (545.7 kB view details)

Uploaded Python 3

File details

Details for the file demregpy-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: demregpy-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 545.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for demregpy-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 361f88414458f40c7d833fad67d5247d175640129ab26b0e674be3d5e29340ea
MD5 7a0bfa63acdf51b584404e96e32a49f5
BLAKE2b-256 20cc9f63885999970ba03e2c8e5697b798850ed1e946055a6587303c50595b70

See more details on using hashes here.

Provenance

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