Helper function to read IRAM GILDAS uvfit fits file
Project description
Helper function to read IRAM GILDAS uvfit fits file
gildas_uvfit is a set of helper function to read uv-fit files procuded by GILDAS MAPPING/uv_fit task exported to the fits format by using the GILDAS CLIC/fits command
fits "blah.fits" from "blah.uvfit" /style standard /overwrite /bits -32
Then you can access the fitted values as astropy Table using python with
from astropy.table import Table
import gildas_uvfit
data = Table.read('data.fits', format='gildas_uvfit')
If you fixed the position and size of the source in the GILDAS MAPPING/uv_fit task then you can use specutils.Spectrum1D object to read the data directly
from specutils import Spectrum1D
from gildas_uvfit import specutils_custom_loader
spec = Spectrum1D.read('data.fits')
License
This project is Copyright (c) Alexandre Beelen and licensed under the terms of the BSD 3-Clause license. This package is based upon the Openastronomy packaging guide which is licensed under the BSD 3-clause licence. See the licenses folder for more information.
Contributing
We love contributions! gildas-uvfit is open source, built on open source, and we’d love to have you hang out in our community.
Imposter syndrome disclaimer: We want your help. No, really.
There may be a little voice inside your head that is telling you that you’re not ready to be an open source contributor; that your skills aren’t nearly good enough to contribute. What could you possibly offer a project like this one?
We assure you - the little voice in your head is wrong. If you can write code at all, you can contribute code to open source. Contributing to open source projects is a fantastic way to advance one’s coding skills. Writing perfect code isn’t the measure of a good developer (that would disqualify all of us!); it’s trying to create something, making mistakes, and learning from those mistakes. That’s how we all improve, and we are happy to help others learn.
Being an open source contributor doesn’t just mean writing code, either. You can help out by writing documentation, tests, or even giving feedback about the project (and yes - that includes giving feedback about the contribution process). Some of these contributions may be the most valuable to the project as a whole, because you’re coming to the project with fresh eyes, so you can see the errors and assumptions that seasoned contributors have glossed over.
Note: This disclaimer was originally written by Adrienne Lowe for a PyCon talk, and was adapted by gildas-uvfit based on its use in the README file for the MetPy project.
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
File details
Details for the file gildas_uvfit-0.1.tar.gz
.
File metadata
- Download URL: gildas_uvfit-0.1.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4947e2360f342fd5a4473093fd1a42cd10303d7a1b8ca246db452134c8f10a36 |
|
MD5 | 15cc304278fee1685b25620750ffeefa |
|
BLAKE2b-256 | 8cdb2a6daed42f62713105e24c3d145e6a98caabacf5d1314a3073ed8626a666 |