Skip to main content

pymosaic-fits

Project description

# pymosaics

[![PyPI version](https://badge.fury.io/py/pymosaic-fits.svg)](https://badge.fury.io/py/pymosaic-fits) [![Build Status](https://travis-ci.org/volodymyrss/pymosaics.svg?branch=master)](https://travis-ci.org/volodymyrss/pymosaics) [![codecov](https://codecov.io/gh/volodymyrss/pymosaics/branch/master/graph/badge.svg)](https://codecov.io/gh/volodymyrss/pymosaics) [![Total alerts](https://img.shields.io/lgtm/alerts/g/volodymyrss/pymosaics.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/volodymyrss/pymosaics/alerts/) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/volodymyrss/pymosaics.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/volodymyrss/pymosaics/context:python)

__CAUTION__: this is a simple functional project, although it should work as generally expected, do make sanity checks and make sure you understand what the mosaic does - as usual. In particular, the re-pixelization approach (mapping/interpolation) is suitable for maps with flux density, as long as the pixels are smaller than PSF

Merge FITS file mosaic

  • maps all images in the same pixels (taken from one of the images, or healpix)

  • sums with a flexible algorithm

  • output mosaics format is compatible with input - allowing map-reduce operations

    note that pixelization used for mosaic and for the output is not necessarily the same, i.e. for healpix it’s useful to have “regular” projection output.

    clearly, healpix pixels are useful primarily for all-sky.

## Installation

`bash $ pip install pymosaic-fits `

## Example:

`bash $ mosaic tests/data/isgri_sky_ima_{1,2}.fits.gz out.fits # just a normal mosaic, pixels/output from first image $ mosaic tests/data/isgri_sky_ima_{1,2}.fits.gz out.fits --mock # mock, to show assembly $ mosaic tests/data/isgri_sky_ima_{1,2}.fits.gz out.fits --pixels healpix # healpix pixels, projected output `

`python import mosaic mosaic.mosaic_fn_list(["tests/data/isgri_sky_ima_1.fits.gz", "tests/data/isgri_sky_ima_2.fits.gz"], "out.fits") `

## Additional mosaic analysis

Using https://github.com/astromatic/sextractor/ we provide some analysis, suitable for example for INTEGRAL ISGRI and JEMX mosaics:

![image](https://user-images.githubusercontent.com/3909535/145425580-ee459651-dd81-448d-bc44-5af3462b5013.png)

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

pymosaic-fits-0.4.5.tar.gz (9.8 MB view details)

Uploaded Source

File details

Details for the file pymosaic-fits-0.4.5.tar.gz.

File metadata

  • Download URL: pymosaic-fits-0.4.5.tar.gz
  • Upload date:
  • Size: 9.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for pymosaic-fits-0.4.5.tar.gz
Algorithm Hash digest
SHA256 31e7d1b57136990d14a5c0a3c9fd6f92458720104927f1c4e4e88d1e729d2c6a
MD5 9f3bbb93b7f76747c980ddf5244d071d
BLAKE2b-256 e6046a43af2aab1e99557d086bf1cd7cea3705bdc700bb8063db79cd165c224e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page