Survey cutouts plotted directly; no user choices, just plotting!
Project description
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.
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 cutout-0.3.1.tar.gz.
File metadata
- Download URL: cutout-0.3.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54ff4e36c79de7dab7d346444caeeef067a12ddb127cee442cd63e90f219cda6
|
|
| MD5 |
c004811e3f7edac160baaae64cbd66c5
|
|
| BLAKE2b-256 |
2af72a4c110398be973390b18b80c60df6b11c745c2fe22e8d5274f72536bb63
|
File details
Details for the file cutout-0.3.1-py3-none-any.whl.
File metadata
- Download URL: cutout-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273b1ed9af2bd1818452d8984364ebf5cc346c4ce9c936407b23aea0a6938a5c
|
|
| MD5 |
482bee01f91f90df06c2b0e89bb99a0c
|
|
| BLAKE2b-256 |
66a0dc4818d33d9dc7e99111355213a048b5e3ac93a264133fe01ac9752e501f
|