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.2.tar.gz (73.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.2.2-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roman_cuts-0.2.2.tar.gz
  • Upload date:
  • Size: 73.7 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.2.tar.gz
Algorithm Hash digest
SHA256 a16fa202af214dedb002341c30ea0b2dc8f4b0442eee07e89147ff3610c953eb
MD5 0c689980aadfe5031c64775b8293e51b
BLAKE2b-256 fd374dad596bbecaf852292c8328517204ef1e3a20027eb71c6116889979b24c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roman_cuts-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 72.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f7da9f5b33dac86c350e8d45c1b4725e0a8edb6cf347a212ef5274c6e73f79bc
MD5 1a414010af5900dcfe20dcf92eec6fbf
BLAKE2b-256 0b1abe1ceb825dbcdeafab04dbfd9a952235bcca940d33a406eea9fb9b1ba2e8

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