A Python module to estimate the Line Spread Function
Project description
LSFExtractor
Description
This module enables users to extract the Line Spread Function (LSF) from any type of spectral cube. The provided code automatically handles multiple axes in the datacube.
Currently, the code estimates the LSF only for ALMA data cubes, but we are actively developing support for additional types of cubes.
Getting Started
Installing
Releases are registered on PyPI, and development is occurring at the project's GitHub page.
Executing program
First we need to import the module to the python script or notebook.
import LSFExtractor as lsf
The module executes by creating an instance of the class with just the path to a cube file, and then using the get_LSF method.
cube = lsf.Cube('path_to_file')
cube.get_LSF()
The method returns a list of length three corresponding to LSF, LSF lower error, and LSF upper error, respectively. It can also be accessed using the .LSF attribute of the class
LSF, LSF_lower, LSF_upper = cube.LSF
The class includes the method .save_LSF(path, format = '.3f', write = True) which creates an Astropy QTable with the code's output and saves it as an ASCII table in the file named path_LSF.dat
cube.save_LSF('new_path')
More documentation can be found inside the .py files.
Authors
Version History
- 0.1
- Initial Release
License
This project is licensed under a MIT style license - see the LICENSE.md file for details
Acknowledgments
Inspiration, code snippets, etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lsfextractor-0.0.1.tar.gz.
File metadata
- Download URL: lsfextractor-0.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a794e19accdc320665388b6ea577eda88368073a41d8da42810300f43e5890
|
|
| MD5 |
9a853aabf690810fa13b9ee0c44547ca
|
|
| BLAKE2b-256 |
9de2f151e237aa624f24f14172b96d36067a70eba493c1711198a617ffdcf06a
|
File details
Details for the file LSFExtractor-0.0.1-py3-none-any.whl.
File metadata
- Download URL: LSFExtractor-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b20c00a92c2cea7e2c904be962f6013ab95dcd4214369a0b7da5fa6ded74d8f
|
|
| MD5 |
193e7ff1e82f6779eefb3ed46cc94a59
|
|
| BLAKE2b-256 |
5fdc87d4641f692371f0f073d204a212125533180a685e031338b31958b3a2b4
|