Skip to main content

A python package for processing and analyzing protostars/ protoplanetary disks in astronomical data in Flexible Image Transport System (FITS) images.

Project description

Clustar

Release: 1.2.1

Date: June 27, 2021

Overview

A python package for processing and analyzing protostars/protoplanetary disks in astronomical data in Flexible Image Transport System (FITS) images.

These files contain grayscale images represented as two-dimensional arrays, with each pixel containing the intensity values, and headers containing the telescope observational parameters.

Clustar simplifies and expediates the identification pipeline of FITS files by automating the preprocessing, grouping, and fitting for a large amount of FITS files.

Requirements

Clustar 1.2.1 requires

  • GEOS >= 3.3
  • Shapely >= 1.7.1

Both of these dependencies are available on https://anaconda.org/conda-forge.

conda install -c conda-forge geos
conda install -c conda-forge shapely 

Installation

Clustar is available on PyPI and can be installed using pip:

pip install clustar

Singular Usage

Detect celestial objects in a singular FITS image by creating a ClustarData object.

from clustar.core import ClustarData

# Create the 'ClustarData' object by specifying the path to FITS file.
cd = ClustarData(path='~/data/example.fits', threshold=0.025)

# Visualize the detected groups.
cd.identify()

# Access individual 'Group' objects.
cd.groups

Multiple Usage

Detect celestial objects in a directory containing multiple FITS images by creating a Clustar object.

from clustar.search import Clustar

# Setup 'Clustar' object.
cs = Clustar(radius_factor=0.95, threshold=0.025)

# Execute pipeline on directory containing FITS files.
cs.run(directory='~/data/')

# Access individual 'ClustarData' objects.
cs.data

# Check which FITS files raised an error.
cs.errors

# Inspect 'ClustarData' variables for all groups in each FITS file.
cs.display(category='all')

Modules

  1. base.py

    Internal module for testing clustar modules.

  2. core.py

    Contains the ClustarData class, which is responsible for executing the entire project pipeline for detecting groups in a single FITS image.

  3. denoise.py

    Clustar module for denoising-related methods.

  4. fit.py

    Clustar module for fitting-related methods.

  5. graph.py

    General module for graphing-related methods.

  6. group.py

    Clustar module for grouping-related methods.

  7. search.py

    Contains the Clustar hierarchical class, which is responsible for transforming all available FITS images in a specified directory into their respective ClustarData objects.

Notes

Visit https://clustar.github.io/ for additional information.

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

clustar-1.2.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

clustar-1.2.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file clustar-1.2.1.tar.gz.

File metadata

  • Download URL: clustar-1.2.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for clustar-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e178e14a4675cdf482035305e4bd4936abd4375955edd1fc5f4a133f2999781b
MD5 2b2f72685cfcbd1b64e24083913a0670
BLAKE2b-256 9a6d93e56c077fe9ac368fe38e5e40425e3a6b4815422159d23b1bca8fa0c3a7

See more details on using hashes here.

File details

Details for the file clustar-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: clustar-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for clustar-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b02934c627dfad43c0260f733bfbba4d787c9e4f380c8053d4bc9cce04dcc720
MD5 49e5cef57693c99780087682ae0bfc79
BLAKE2b-256 f22b021f315c5a860da2b9d17b138b5a4574af0226d8cec67766afeffde2ef58

See more details on using hashes here.

Supported by

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