https://github.com/astropy/astroscrappy

Speedy Cosmic Ray Annihilation Package in Python

https://github.com/astropy/astroscrappy

Science Score: 46.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    9 of 30 committers (30.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.7%) to scientific vocabulary

Keywords from Contributors

astronomy astropy astrophysics closember astropy-affiliated drizzle advanced-scientific-data-format asdf jwst vlbi
Last synced: 7 months ago · JSON representation

Repository

Speedy Cosmic Ray Annihilation Package in Python

Basic Info
  • Host: GitHub
  • Owner: astropy
  • Language: C
  • Default Branch: main
  • Size: 775 KB
Statistics
  • Stars: 77
  • Watchers: 9
  • Forks: 37
  • Open Issues: 14
  • Releases: 0
Created almost 11 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.rst

Astro-SCRAPPY: The Speedy Cosmic Ray Annihilation Package in Python
===================================================================

.. image:: https://readthedocs.org/projects/astroscrappy/badge/?version=latest
    :alt: Documentation Status
    :scale: 100%
    :target: https://astroscrappy.readthedocs.io/en/latest/?badge=latest
.. image:: https://github.com/astropy/astroscrappy/workflows/Run%20unit%20tests/badge.svg
    :target: https://github.com/astropy/astroscrappy/actions
    :alt: CI Status
.. image:: https://codecov.io/gh/astropy/astroscrappy/branch/main/graph/badge.svg
    :target: https://codecov.io/gh/astropy/astroscrappy
    :alt: AstroScrappy's Coverage Status
.. image:: https://zenodo.org/badge/36837126.svg
    :target: https://zenodo.org/badge/latestdoi/36837126


An optimized cosmic ray detector.

:Author: Curtis McCully


Astro-SCRAPPY is designed to detect cosmic rays in images (numpy arrays),
based on Pieter van Dokkum's L.A.Cosmic algorithm.

Much of this was originally adapted from cosmics.py written by Malte Tewes.
I have ported all of the slow functions to Cython/C, and optimized
where I can. This is designed to be as fast as possible so some of the
readability has been sacrificed, specifically in the C code.

If you use this code, please cite the Zendo DOI: https://zenodo.org/record/1482019

Please cite the original paper which can be found at:
http://www.astro.yale.edu/dokkum/lacosmic/

van Dokkum 2001, PASP, 113, 789, 1420
(article : http://adsabs.harvard.edu/abs/2001PASP..113.1420V)

This code requires Cython, preferably version >= 0.21.

Parallelization is achieved using OpenMP. This code should compile (although
the Cython files may have issues) using a compiler that does not support OMP,
e.g. clang.

Notes
-----
There are some differences from original LA Cosmic:

- Automatic recognition of saturated stars.
  This avoids treating such stars as large cosmic rays.

- I have tried to optimize all of the code as much as possible while
  maintaining the integrity of the algorithm. One of the key speedups is to
  use a separable median filter instead of the true median filter. While these
  are not identical, they produce comparable results and the separable version
  is much faster.

- This implementation is much faster than the Python by as much as a factor of
  ~17 depending on the given parameters, even without running multiple threads.
  With multiple threads, this can be increased easily by another factor of 2.
  This implementation is much faster than the original IRAF version, improvment
  by a factor of ~90.

The arrays always must be C-contiguous, thus all loops are y outer, x inner.
This follows the astropy.io.fits (pyfits) convention.

scipy is required for certain tests to pass, but the code itself does not depend on
scipy.


License
-------

This project is Copyright (c) Astropy Developers and licensed under the terms of the BSD 3-Clause license. See the licenses folder for more information.

Owner

  • Name: The Astropy Project
  • Login: astropy
  • Kind: organization

GitHub Events

Total
  • Issues event: 2
  • Watch event: 5
  • Delete event: 4
  • Issue comment event: 9
  • Push event: 9
  • Pull request review event: 1
  • Pull request event: 14
  • Fork event: 3
  • Create event: 5
Last Year
  • Issues event: 2
  • Watch event: 5
  • Delete event: 4
  • Issue comment event: 9
  • Push event: 9
  • Pull request review event: 1
  • Pull request event: 14
  • Fork event: 3
  • Create event: 5

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 455
  • Total Committers: 30
  • Avg Commits per committer: 15.167
  • Development Distribution Score (DDS): 0.802
Past Year
  • Commits: 8
  • Committers: 2
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.25
Top Committers
Name Email Commits
Simon Conseil s****l@g****u 90
Thomas Robitaille t****e@g****m 78
Brigitta Sipocz b****z@g****m 49
Curtis McCully c****y@l****t 44
cmccully c****y@p****u 33
Curtis McCully c****y@l****l 24
Erik Tollerud e****d@g****m 22
Pey Lian Lim l****m@s****u 17
Larry Bradley l****y@g****m 15
Michael Droettboom m****m@g****m 15
Matthew Craig m****g@g****m 13
Erik M. Bray e****y@s****u 11
dependabot[bot] 4****] 6
Christoph Deil D****h@g****m 6
Adrian Price-Whelan a****w@g****m 5
Adam Ginsburg a****g@g****m 4
Kyle Barbary k****y@g****m 4
Gabor Kovacs g****s@a****k 3
Clément Robert c****2@p****m 2
Wolfgang Kerzendorf w****f@g****m 2
Benjamin Alan Weaver b****r@n****u 2
Brett M. Morris b****s@u****u 2
Ayush Gupta a****p@i****n 1
Daniel D'Avella d****a@s****u 1
Ole Streicher g****b@l****x 1
Doug Burke d****w@g****m 1
Edward Betts e****d@4****m 1
Steven Crawford c****m@g****m 1
Víctor Zabalza v****a@g****m 1
hamogu m****r@g****e 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 31
  • Total pull requests: 81
  • Average time to close issues: over 1 year
  • Average time to close pull requests: 3 months
  • Total issue authors: 23
  • Total pull request authors: 16
  • Average comments per issue: 3.61
  • Average comments per pull request: 2.44
  • Merged pull requests: 56
  • Bot issues: 0
  • Bot pull requests: 15
Past Year
  • Issues: 2
  • Pull requests: 20
  • Average time to close issues: N/A
  • Average time to close pull requests: 6 days
  • Issue authors: 2
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.45
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 15
Top Authors
Issue Authors
  • astrofrog (5)
  • olebole (3)
  • pllim (2)
  • simontorres (2)
  • bjweiner (1)
  • navaneethnpk (1)
  • vpicouet (1)
  • crawfordsm (1)
  • mwcraig (1)
  • TrystanScottLambert (1)
  • kelle (1)
  • eteq (1)
  • fdeluise (1)
  • saimn (1)
  • jbcurtin (1)
Pull Request Authors
  • saimn (18)
  • dependabot[bot] (15)
  • bsipocz (12)
  • cmccully (9)
  • pllim (7)
  • astrofrog (4)
  • neutrinoceros (4)
  • mwcraig (3)
  • jehturner (2)
  • sergiopasra (1)
  • eteq (1)
  • kgabor (1)
  • EdwardBetts (1)
  • olebole (1)
  • Yash-10 (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (15) github_actions (8)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 24,414 last-month
  • Total docker downloads: 896
  • Total dependent packages: 17
    (may contain duplicates)
  • Total dependent repositories: 46
    (may contain duplicates)
  • Total versions: 14
  • Total maintainers: 2
pypi.org: astroscrappy

Speedy Cosmic Ray Annihilation Package in Python

  • Versions: 11
  • Dependent Packages: 16
  • Dependent Repositories: 44
  • Downloads: 24,414 Last month
  • Docker Downloads: 896
Rankings
Dependent packages count: 0.7%
Docker downloads count: 1.9%
Dependent repos count: 2.2%
Downloads: 3.9%
Average: 4.0%
Forks count: 6.5%
Stargazers count: 8.7%
Maintainers (2)
Last synced: 7 months ago
conda-forge.org: astroscrappy

Astro-SCRAPPY is designed to detect cosmic rays in images (numpy arrays), originally based on Pieter van Dokkum’s L.A.Cosmic algorithm.

  • Versions: 3
  • Dependent Packages: 1
  • Dependent Repositories: 2
Rankings
Dependent repos count: 20.3%
Forks count: 28.8%
Dependent packages count: 29.0%
Average: 29.1%
Stargazers count: 38.4%
Last synced: 7 months ago

Dependencies

.github/workflows/python-tests.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
.github/workflows/release.yml actions
  • actions/checkout v2 composite
  • actions/download-artifact v2 composite
  • actions/setup-python v2 composite
  • actions/upload-artifact v2 composite
  • pypa/cibuildwheel v2.2.2 composite
  • pypa/gh-action-pypi-publish v1.4.2 composite
pyproject.toml pypi
setup.py pypi