cutout
Survey cutouts plotted directly.
No user choices, just plotting! These cutouts are intended to be used for a quick view, not analysis.
Installation
To install:
cd ~
git clone https://github.com/avapolzin/cutout.git
cd cutout
sudo pip install .
or
pip install cutout
Getting Started
cutout is intended to be as simple to use as possible. The primary, and only necessary, input is an object's name or coordinates.
It is also possible to toggle whether a WCS grid, scalebar, and/or object label is shown, and where/whether to save an output image file. Defaults are no WCS grid, scalebar, or object label, and the output is only shown, not saved locally.
A few examples:
import cutout
cutout.survey.decals('Leo P', wcsgrid = False, scalebar = False,
savepath = 'leop_cutout.png', labelimg = True)
cutout.survey.decals('10:21:45.12 +18:05:16.89', wcsgrid = False, scalebar = False,
savepath = 'leop_cutout.png')
cutout.survey.hscssp('COSMOS-dw1')
cutout.survey.panstarrs('NGC 5486')
All other choices, like cutout size/FOV, effective pixel scale, image scaling etc. are hardcoded and not user-facing. This is done to keep the code's use quick and painless.
Survey options to now are DECaLS (decals), HSC-SSP (hscssp), and Pan-STARRS (panstarrs). To request other surveys be added, please open an issue and link to the image retrieval instructions for that survey. (HSC-SSP data access requires an account, the credentials of which can be passed to the cutout server following these instructions.)
Note that HTTPS errors may occur if a survey's cutout server is down or unreachable for any reason.
(If there is sufficient interest, I may add the ability to rotate cutouts freely and show multiple cutouts simultaneously. This increases the complexity of the user input, so to keep the top level functions as simple as possible, these features are not included for now.)
Citation
If you use this package or the scripts in this repository in a publication, please add a footnote linking to https://github.com/avapolzin/cutout and/or consider adding this software to your acknowledgments. If you would like to cite cutout, please use the Zenodo DOI linked here.
Metadata
Release files for cutout 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cutout-0.3.1.tar.gz | 7.1 kB | Without provenance | Details for cutout-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cutout-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for cutout-0.3.1-py3-none-any.whl |
Total release size: 14.5 kB
Release files / cutout-0.3.1.tar.gz
| Download URL | cutout-0.3.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54ff4e36c79de7dab7d346444caeeef067a12ddb127cee442cd63e90f219cda6
|
|
BLAKE2b-256 checksum How to use checksums |
2af72a4c110398be973390b18b80c60df6b11c745c2fe22e8d5274f72536bb63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.12
|
Release files / cutout-0.3.1-py3-none-any.whl
| Download URL | cutout-0.3.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
273b1ed9af2bd1818452d8984364ebf5cc346c4ce9c936407b23aea0a6938a5c
|
|
BLAKE2b-256 checksum How to use checksums |
66a0dc4818d33d9dc7e99111355213a048b5e3ac93a264133fe01ac9752e501f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.12
|
Security for cutout 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.