Skip to main content

No project description provided

Project description

PyPI pytest mypy ruffDocs

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

cutouts

The data is saved into a ASDF file as shown below:

asdf

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

roman_cuts-0.2.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

roman_cuts-0.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file roman_cuts-0.2.0.tar.gz.

File metadata

  • Download URL: roman_cuts-0.2.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.22 Linux/6.11.0-1014-azure

File hashes

Hashes for roman_cuts-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a47d7c50a6af6d7c2a0d646a34e3d7cdeba7b1e1fecccd9c0e37f53dad12b247
MD5 47c55691be3e2e3bccf29b24b37bfd0f
BLAKE2b-256 5e8159e6dbceef8adbd56c138e20e412246861d7443051fab6579332969c80fc

See more details on using hashes here.

File details

Details for the file roman_cuts-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: roman_cuts-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.9.22 Linux/6.11.0-1014-azure

File hashes

Hashes for roman_cuts-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 665ba6f16731a2e10a349261e9b3a59669ed692e1a1c6f480e3d3601e1d7846e
MD5 bcde2c30dc441bd139327eeea84a0601
BLAKE2b-256 07484862cd3eef398fc6d6ff797a85a9fb507e3e40c8269036e7ee055a8b9b50

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