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.3.0.tar.gz (79.7 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.3.0-py3-none-any.whl (79.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roman_cuts-0.3.0.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

Hashes for roman_cuts-0.3.0.tar.gz
Algorithm Hash digest
SHA256 28875496381dbf2b931c2a17035b19951252016ebb302ba65d8dc6b0e69568c4
MD5 a9941dc71ef89fca2dd4579b5da193a5
BLAKE2b-256 94485b8a333e94de40afad9857477d77366fbd6a8f69ad789ea21bda8936a455

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roman_cuts-0.3.0-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

Hashes for roman_cuts-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d727439bb5ca7df223a2d1455904e157de05e4a5f62036e4356881ea14a77d13
MD5 b3ef2d1c2baf66bdcc08f4ff3947eed2
BLAKE2b-256 e26e11a26e6c3c4ca804397ab1c9cb76efbc8eaca51bf9823d9b0e2ce89e75fd

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