Miscellaneous methods for astronomy, dealing with arrays, statistical distributions and computing goodness-of-fit
Project description
Copyright (c) 2018 Rodrigo Nemmen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Download-URL: https://github.com/peterldowns/mypackage/archive/0.8.4.tar.gz
Description: `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 submodules available ([more info here](http://rsnemmen.github.io/nmmn/)):
* `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](http://rsnemmen.github.io/nmmn/) for the modules.
# 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:
```
python setup.py install
```
3. Install the package with a symlink, so that changes to the source files will be immediately available:
```
python setup.py develop
```
This last method is preferred to sync with changes in the repo. You may need to run the last command with `sudo`.
To upgrade the package to the latest stable version, try
pip install --upgrade nmmn
if you installed with `pip`. If you installed with the `setup.py` script and the `develop` option, try
cd /path/to/nmmn
git pull
# Usage
Example 1: Remove all `nan` and `inf` elements from a `numpy` array.
```python
import nmmn.lsd, numpy
x=numpy.array([1,2,numpy.nan,numpy.inf])
xok=nmmn.lsd.delweird(x)
```
Example 2: Reads SED generated by [`grmonty`](https://github.com/rsnemmen/grmonty).
```python
import nmmn.sed
s=nmmn.sed.SED()
s.grmonty('grmonty.spec')
plot(s.lognu, s.ll)
```
Now it is easy to compute the bolometric luminosity: `s.bol()`.
TBD
# TODO
* [ ] need more examples of how to use the modules
* [ ] add IFU data cubes method
# 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) 2018 [Rodrigo Nemmen](http://rodrigonemmen.com)
[Visit the author's web page](http://rodrigonemmen.com/) and/or follow him on twitter ([@nemmen](https://twitter.com/nemmen)).
Keywords: science,statistics,signal-processing,numerical-methods,astronomy,numerical-simulations,astrophysics,mhd,grmhd
Platform: UNKNOWN
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Download-URL: https://github.com/peterldowns/mypackage/archive/0.8.4.tar.gz
Description: `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 submodules available ([more info here](http://rsnemmen.github.io/nmmn/)):
* `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](http://rsnemmen.github.io/nmmn/) for the modules.
# 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:
```
python setup.py install
```
3. Install the package with a symlink, so that changes to the source files will be immediately available:
```
python setup.py develop
```
This last method is preferred to sync with changes in the repo. You may need to run the last command with `sudo`.
To upgrade the package to the latest stable version, try
pip install --upgrade nmmn
if you installed with `pip`. If you installed with the `setup.py` script and the `develop` option, try
cd /path/to/nmmn
git pull
# Usage
Example 1: Remove all `nan` and `inf` elements from a `numpy` array.
```python
import nmmn.lsd, numpy
x=numpy.array([1,2,numpy.nan,numpy.inf])
xok=nmmn.lsd.delweird(x)
```
Example 2: Reads SED generated by [`grmonty`](https://github.com/rsnemmen/grmonty).
```python
import nmmn.sed
s=nmmn.sed.SED()
s.grmonty('grmonty.spec')
plot(s.lognu, s.ll)
```
Now it is easy to compute the bolometric luminosity: `s.bol()`.
TBD
# TODO
* [ ] need more examples of how to use the modules
* [ ] add IFU data cubes method
# 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) 2018 [Rodrigo Nemmen](http://rodrigonemmen.com)
[Visit the author's web page](http://rodrigonemmen.com/) and/or follow him on twitter ([@nemmen](https://twitter.com/nemmen)).
Keywords: science,statistics,signal-processing,numerical-methods,astronomy,numerical-simulations,astrophysics,mhd,grmhd
Platform: UNKNOWN
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
nmmn-0.8.4.tar.gz
(61.4 kB
view hashes)
Built Distribution
nmmn-0.8.4-py3-none-any.whl
(63.8 kB
view hashes)