Tookit to create sky masks in a pipeline way
Project description
Cutting pixelized sky masks in a pipeline way
Skykatana is a pacakge to create and maniputate boolean spatial masks on the celestial sphere, by combining healsparse pixel maps accounting for various effects such as cutting out regions around bright stars, low depth, bad seeing, extended sources, among others. We call these partial maps stages, which are then combined into a final mask.
For each stage you can generate random points, quickly visualize masks, do plots overlaying bright stars, and apply the mask to an arbitrary catalog to select sources located inside.
It has been designed to produce masks for large 8-meter surveys such as the upcoming half-sky dataset of the Vera Rubin Observatory and the HSC-SSP survey. It can handle multi-billion pixel masks with very limited memory resources and is flexible to accomodate custom recipes for masking different objects.
Main Class
SkyMaskPipe()Main class for assembling and handling pixelized masks
Main Methods
build_footprint_mask(), build_circ_mask(), buld_propmap_mask(), build_star_mask_online(), etc--> Generate maps for each stage from discrete sources, geometric shapes or other healsparse mapscombine()--> Merge the maps created above to generate a new maskplot()--> Visualize a mask stage by plotting randoms. Options to zoom, oveplot stars, etc.plot_moc()--> Visualize a mask stage by plotting its MOC (multiorder coverage map).makerans()--> Generate randoms over a mask stageapply()--> Cut out sources outside of a given mask stage
Dependencies
Install
There are two ways to get skykatana:
pip install skykatana
or
- Clone the repo, switch to the pacakge directory and do
pip install .This has the advantage that you will get the latest version and example notebooks.
Example Dataset
There a small dataset of ~8 million HSC sources to start using the package. Get it here (170 MB) and decompress it. Then, adjust the folder location in the provided notebooks and just run them.
Documentation
- A quick tutorial notebook with HSC data is available here
- A tutorial notebook for building Rubin masks can be found here
- The full documentation and API is available here
Gallery
Credits
- Main author: Emilio Donoso
- Contributors: Mariano Dominguez, Claudio Lopez, Konstantin Malanchev
Acknowledgements
This software was partially developed with the generous support of the LINCC Frameworks Incubator Program using LINCC resources. The healsparse code was written by Eli Rykoff and Javier Sanchez. mocpy is a fantastic library developed by the mocpy team, and ipyaladin is a great tool to enable interactive sky visualizations.
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
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 skykatana-0.2.2.tar.gz.
File metadata
- Download URL: skykatana-0.2.2.tar.gz
- Upload date:
- Size: 57.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
990d0e36919a714093b5a1d0d3034d2c66aff0c4bf77862e92de9a1a013e2912
|
|
| MD5 |
71a47dc7b2a25788e722aff70dbd6c46
|
|
| BLAKE2b-256 |
cc90f369b1f1d6b1bc88db334d30fc6bd5682ed7532a2c870c1bf92694d0e0d3
|
File details
Details for the file skykatana-0.2.2-py3-none-any.whl.
File metadata
- Download URL: skykatana-0.2.2-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73b705e12b7c8554b84545312c3666315a094753dabcca48c70a0326068963f5
|
|
| MD5 |
923767e8e706ac10ffca6b576fe51c6e
|
|
| BLAKE2b-256 |
d57faf0cb49c9e5fc29ab1b8ffa7baa7d5be3bc53b82e9b0c369e76d2ff00ee1
|