Skip to main content

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_lowmem function to ccdfits.processing

Hotfix 0.2.1

  • Added subtract_baseline option to ccdfits.processing.raw2proc

Version 0.2.0

  • Added skp2raw function to ccdfits.processing

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

ccdfits-1.2.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccdfits-1.2.0-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file ccdfits-1.2.0.tar.gz.

File metadata

  • Download URL: ccdfits-1.2.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.14.3 HTTPX/0.28.1

File hashes

Hashes for ccdfits-1.2.0.tar.gz
Algorithm Hash digest
SHA256 2445111ed6e604e058c2c8f4ffe1ffebbcffc9d1f423e70337096df604d99d87
MD5 4aba0f8980717fba01d563f88c9ac2c6
BLAKE2b-256 654e38f0e6e0205935175210e6b631ccaeade9a37026391e4df7a10c0dd09a67

See more details on using hashes here.

File details

Details for the file ccdfits-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: ccdfits-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.14.3 HTTPX/0.28.1

File hashes

Hashes for ccdfits-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 875a69306370315f2ff4db992cb77f17c42f55237fa5d5cfaa226a31de952219
MD5 a7e628150f77a7b08c9d3ddf5e0b1810
BLAKE2b-256 53693f730a6e3aa5776b285089c57a7f9ca04bf7fad477b53b3840bae7ba98f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page