All Projects → rsnemmen → nmmn

rsnemmen / nmmn

Licence: MIT license
Miscellaneous methods for: astronomy, dealing with arrays, statistical distributions, computing goodness-of-fit, numerical simulations and much more

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to nmmn

ldtk
Python toolkit for calculating stellar limb darkening profiles and model-specific coefficients using the stellar atmosphere spectrum library by Husser et al. (2013). Described in Parviainen & Aigrain, MNRAS 453, 3821–3826 (2015).
Stars: ✭ 26 (+62.5%)
Mutual labels:  astronomy, astrophysics
sncosmo
Python library for supernova cosmology
Stars: ✭ 53 (+231.25%)
Mutual labels:  astronomy, astrophysics
astromodels
Spatial and spectral models for astrophysics
Stars: ✭ 21 (+31.25%)
Mutual labels:  astronomy, astrophysics
PandExo
A Community Tool for Transiting Exoplanet Science with the JWST & HST
Stars: ✭ 23 (+43.75%)
Mutual labels:  astronomy, astrophysics
naima
Derivation of non-thermal particle distributions through MCMC spectral fitting
Stars: ✭ 32 (+100%)
Mutual labels:  astronomy, astrophysics
heyoka
C++ library for ODE integration via Taylor's method and LLVM
Stars: ✭ 151 (+843.75%)
Mutual labels:  astronomy, astrophysics
Virgo
📡 Virgo: A Versatile Spectrometer for Radio Astronomy
Stars: ✭ 85 (+431.25%)
Mutual labels:  astronomy, astrophysics
phantom
Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
Stars: ✭ 52 (+225%)
Mutual labels:  astronomy, astrophysics
Pycbc
Core package to analyze gravitational-wave data, find signals, and study their parameters. This package was used in the first direct detection of gravitational waves (GW150914), and is used in the ongoing analysis of LIGO/Virgo data.
Stars: ✭ 177 (+1006.25%)
Mutual labels:  astronomy, signal-processing
amuse
Astrophysical Multipurpose Software Environment. This is the main repository for AMUSE
Stars: ✭ 115 (+618.75%)
Mutual labels:  astronomy, astrophysics
RS-MET
Codebase for RS-MET products (Robin Schmidt's Music Engineering Tools)
Stars: ✭ 32 (+100%)
Mutual labels:  signal-processing, numerical-methods
heyoka.py
Python library for ODE integration via Taylor's method and LLVM
Stars: ✭ 45 (+181.25%)
Mutual labels:  astronomy, astrophysics
mwdust
Dust maps in the Milky Way
Stars: ✭ 21 (+31.25%)
Mutual labels:  astronomy, astrophysics
astrodash
Deep learning for the automated spectral classification of supernovae
Stars: ✭ 25 (+56.25%)
Mutual labels:  astronomy, astrophysics
PyCBC-Tutorials
Learn how to use PyCBC to analyze gravitational-wave data and do parameter inference.
Stars: ✭ 91 (+468.75%)
Mutual labels:  astronomy, signal-processing
yt astro analysis
yt astrophysical analysis modules
Stars: ✭ 18 (+12.5%)
Mutual labels:  astronomy, astrophysics
A-Track
A-Track: Detecting Moving Objects in FITS images.
Stars: ✭ 18 (+12.5%)
Mutual labels:  astronomy
fritz
Astronomical data platform for the Zwicky Transient Facility.
Stars: ✭ 20 (+25%)
Mutual labels:  astronomy
pyqentangle
Quantum Entanglement in Python
Stars: ✭ 16 (+0%)
Mutual labels:  numerical-methods
QuakeMigrate
A Python package for automatic earthquake detection and location using waveform migration and stacking.
Stars: ✭ 101 (+531.25%)
Mutual labels:  signal-processing

nmmn package

Tools for astronomy, data analysis, time series, numerical simulations, gamma-ray astronomy and more! These are modules I wrote which I find useful—for whatever reason—in my research.

List of modules available (more info here):

  • astro: astronomy
  • dsp: signal processing
  • lsd: misc. operations on arrays, lists, dictionaries and sets
  • stats: statistical methods
  • sed: spectral energy distributions
  • plots: custom plots
  • fermi: Fermi LAT analysis methods
  • bayes: Bayesian tools for dealing with posterior distributions
  • grmhd: tools for dealing with GRMHD numerical simulations

Very basic documentation for the package. Generated with Sphinx.

Installation

You have a couple of options to install the module:

1. Install using pip:

pip install nmmn

2. Install the module on the system’s python library path:

git clone https://github.com/rsnemmen/nmmn.git
cd nmmn
python setup.py install

3. Install the package with a symlink, so that changes to the source files will be immediately available:

git clone https://github.com/rsnemmen/nmmn.git
cd nmmn
python setup.py develop

This last method is preferred if you want the latest, bleeding-edge updates in the repo. You may need to run the last command with sudo.

Updating

If you installed with pip (method 1), to upgrade the package to the latest stable version use

pip install --upgrade nmmn

If you installed with the setup.py script and the develop option (method 3), use

cd /path/to/nmmn
git pull

Usage

First import the specific module that you want to use:

import nmmn.lsd

Then call the method you need. For example, to remove all nan and inf elements from a numpy array:

import numpy as np

# generates some array with nan and inf
x=np.array([1,2,np.nan,np.inf])

# removes strange elements
xok=nmmn.lsd.delweird(x)

For more examples, please refer to the examples doc.

TODO

  • need more examples of how to use the modules
  • add IFU data cubes method (refer to ifscube)

License

See LICENSE file.

If you have suggestions of improvements, by all means please contribute with a pull request! :)

The MIT License (MIT). Copyright (c) 2020 Rodrigo Nemmen

Visit the author's web page and/or follow him on twitter (@nemmen).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].