Skip to main content

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.

Although mainly designed to work with the HSC-SSP survey, it is flexible to accomodate other surveys such as the upcoming half-sky dataset of the Vera Rubin Observatory.

Main Class

  • SkyMaskPipe() Main class for assembling and handling pixelized masks

Main Methods

  • build_footprint_mask(), build_patch_mask(), build_holes_mask(), etc --> Generate maps for each stage
  • combine_mask() --> Merge the maps created above to generate a final mask
  • plot() --> Visualize a mask stage by plotting randoms. Options to zoom, oveplot stars, etc.
  • plot2compare() --> Compare input sources on the left and a mask stage on the right
  • makerans() --> Generate randoms over a mask stage
  • apply() --> Cut out sources outside of a given mask stage

Dependencies

Install

There are two ways to get skykatana:

  1. pip install skykatana
  2. Clone the repo, switch to the pacakge directory and do pip install . . This has the advantage that you will get the latest version and all the files in /example_data (~210 MB)

Documentation

  • A quick introductory notebook is availables here
  • An indepth tutorial notebook can be found here
  • The full documentation is available here

Credits

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

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

skykatana-0.1.4.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

skykatana-0.1.4-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file skykatana-0.1.4.tar.gz.

File metadata

  • Download URL: skykatana-0.1.4.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for skykatana-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0b303b2f8ea38b86c1c6d30ddd74358cf2a03c8db5c6ad2502cfc84ea7e53f5e
MD5 91e81edce149661dea2b6cf66263e49f
BLAKE2b-256 99873c240d8f56c085bbbed90940a459d17eb399783d34eece58c7e8f76d426a

See more details on using hashes here.

File details

Details for the file skykatana-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: skykatana-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for skykatana-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 afb1e1014b6b6346a30ed399fdde63b0d0b0a613ece2006d8b90571a98a6747d
MD5 149ab1b0588ee33565fbf29f78684e78
BLAKE2b-256 b58eade26d8e23ac6f0d53f30aeb402b1682126946adab5d1273e0c3ed81ea52

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