Utilities to work with .fits files that were taken with CCDs and Skipper CCDs
Project description
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
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 ccdfits-1.1.0.tar.gz.
File metadata
- Download URL: ccdfits-1.1.0.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
839455f8ea6912f414d123eb548ddccf8d17d9b9be2fc565053565603d3710bc
|
|
| MD5 |
2c1ac6fd5b60f0c21ff1c1451e74e759
|
|
| BLAKE2b-256 |
d624fc8be15884a8620f34e979a825c64c768169f4e09a1dee5f32e28c79ae4e
|
File details
Details for the file ccdfits-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ccdfits-1.1.0-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbdaa61db43effeebb08d501ac78ea11e858ce6921cd9de329dad729d72c3971
|
|
| MD5 |
23540ff5a6976f3fd1b90bad8694e18c
|
|
| BLAKE2b-256 |
ea31080a4dff4609cfc5f5794eeab388a1ab3930a1db2c7f47b54083c2bf7877
|