No project description provided
Project description
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:
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 roman_cuts-0.3.1.tar.gz.
File metadata
- Download URL: roman_cuts-0.3.1.tar.gz
- Upload date:
- Size: 79.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.9.23 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
317036440c43e3e9317b41275b92db2a022f6e6e360d75275a8aef85986fab62
|
|
| MD5 |
98f1f791dd55102f6bd8a0ce20ebf3f1
|
|
| BLAKE2b-256 |
6fc58df86e841225306a46ce34e18b3bac2b1b9985a46eb9b63c8456921b5489
|
File details
Details for the file roman_cuts-0.3.1-py3-none-any.whl.
File metadata
- Download URL: roman_cuts-0.3.1-py3-none-any.whl
- Upload date:
- Size: 79.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.9.23 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50e2f7d2397f97b9b2d569fa8f623f5d50a8843ac133418e5ee5b43bb0ce2d5f
|
|
| MD5 |
1c1748d25614e916f9af04dacc2c4815
|
|
| BLAKE2b-256 |
5f4840d9a6a57c10d885b47710d86740f13111b06a042a2b6ae9cf90082de657
|