CCDFits
This package provides utilities to work with .fits files that were taken with CCDs. It provides a FITS class to easily view and analyse images, along with useful functions to process them. It is particularly useful for Skipper CCD images, which can be calibrated by fitting gaussians to the zero- and one-electron peaks.
Installation
Pre-requisites
This library has been developed for Python 3.
ccdfits requires the following packages:
- numpy
- scipy
- astropy
- matplotlib
In addition, if you intend to use ccdfits.processing, you will also need to install:
- scikit-learn (for
cal2phys) - scikit-image (for
generateMask)
Install ccdfits via pip:
python -m pip install ccdfits
Installing latest public version (may be different from that on pypi)
python -m pip install git+https://gitlab.com/nicolaseavalos/ccdfits.git
Usage
The following example shows how to load and view a .fits image. Replace 'ccd-image.fits' with a string indicating the full or relative path to the image you are trying to load.
# imports
from ccdfits import Fits
import matplotlib.pyplot as plt
plt.ion()
# set the image path
fits_path = 'ccd-image.fits'
# load and view the image
img = Fits(fits_path)
img.view()
Complete documentation is in process.
Changelog
Version 1.1
- Added more options to event extraction
Version 1.0
- FITS class renamed to Fits
- Some documentation inside the code
- Various changes throughout the library
Hotfix 0.3.1
- Optimized for installation via pip
Version 0.3.0
- Added
skp2raw_lowmemfunction toccdfits.processing
Hotfix 0.2.1
- Added
subtract_baselineoption toccdfits.processing.raw2proc
Version 0.2.0
- Added
skp2rawfunction toccdfits.processing
Release files for ccdfits 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ccdfits-1.2.2.tar.gz | 50.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ccdfits-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 78.7 kB
Release files / ccdfits-1.2.2.tar.gz
| Download URL | ccdfits-1.2.2.tar.gz |
|---|---|
| Size | 50.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41d4045f16fcd34ecbb67386ab052fce3639332871d7f2ad2ff4f703ad0453cc
|
|
BLAKE2b-256 checksum How to use checksums |
f35c13430cb43b4453a9b200f4251832ac6dcaa0c116e9c1e2503100b7a0e371
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.3 cpython/3.14.3 HTTPX/0.28.1
|
Release files / ccdfits-1.2.2-py3-none-any.whl
| Download URL | ccdfits-1.2.2-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0deb55190bdc02234cad27b0b8091cddc4845907175336f42e2f6263311f1487
|
|
BLAKE2b-256 checksum How to use checksums |
e502aad4dc7c812197bba087277aaec999c2f5ec90ab1e39d037db6e37acb693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.3 cpython/3.14.3 HTTPX/0.28.1
|