LACosmic.jl

Code Build Status PkgEval Coverage License

Laplacian cosmic-ray detection (L.A.Cosmic) in pure Julia.

Installation

To use the LACosmic library, first install it using Pkg

julia> ]add LACosmic

Usage

To import the library

using LACosmic

there is one exported function: lacosmic

clean_image, mask = lacosmic(image)

Performance

This code has been benchmarked against the Cython implementation in Astro-SCRAPPY. This benchmark simply computes the time it takes to run the LACosmic algorithm with different image sizes. The size is the length of one dimension of the image, so the expected scaling should be $\propto N^2$. The code can be found in bench/benchmark.jl. Here is the information for my system-

Julia Version 1.6.0
Commit f9720dc2eb* (2021-03-24 12:55 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin20.3.0)
  CPU: Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  OMP_NUM_THREADS = 1
  JULIA_NUM_THREADS = 1

Contributing and Support

If you would like to contribute, feel free to open a pull request. If you want to discuss something before contributing, head over to discussions and join or open a new topic. If you're having problems with something, please open an issue.