Roman-cuts
Lightweight package to create image cutouts from simulations made with RImTimSim
Install
Easy install with PyPI
pip install roman-cuts
Usage
For more details check out the notebook tutorial here.
from roman_cuts import RomanCuts
# make a list of your local FITS files
fl = paths to local FITS files
rcube = RomanCuts(field=3, sca=1, filter="F146", file_list=fl)
# using sky coord coordinates
radec = (268.461687, -29.232092)
rcube.make_cutout(radec=radec, size=(21, 21), dithered=True)
# or using rowcol pixel coordinates
rowcol = (256, 256)
rcube.make_cutout(rowcol=rowcol, size=(11, 11), dithered=False)
# we can save to disk, default is ASDF
rcube.save_cutout()
Examples
The figure shows a sequence of 21x21 pixel cutouts taken from the FFI simulations centered on the target RA, Decl = (268.5112137932491, -29.24473947250156). This account for dithered observations
The data is saved into a ASDF file as shown below:
Release files for roman-cuts 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 | |
|---|---|---|---|
| roman_cuts-0.3.1.tar.gz | 79.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| roman_cuts-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 159.3 kB
Release files / roman_cuts-0.3.1.tar.gz
| Download URL | roman_cuts-0.3.1.tar.gz |
|---|---|
| Size | 79.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
317036440c43e3e9317b41275b92db2a022f6e6e360d75275a8aef85986fab62
|
|
BLAKE2b-256 checksum How to use checksums |
6fc58df86e841225306a46ce34e18b3bac2b1b9985a46eb9b63c8456921b5489
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.23 Linux/6.11.0-1018-azure
|
Release files / roman_cuts-0.3.1-py3-none-any.whl
| Download URL | roman_cuts-0.3.1-py3-none-any.whl |
|---|---|
| Size | 79.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50e2f7d2397f97b9b2d569fa8f623f5d50a8843ac133418e5ee5b43bb0ce2d5f
|
|
BLAKE2b-256 checksum How to use checksums |
5f4840d9a6a57c10d885b47710d86740f13111b06a042a2b6ae9cf90082de657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.9.23 Linux/6.11.0-1018-azure
|