Skip to main content

Turn fits files/catalogs into a leafletjs map

Project description

FitsMap

FitsMap

FitsMap is a tool for displaying astronomical images and their associated catalogs, powered by LeafletJS.

Survey images can have dimensions in the tens of thousands pixels in multiple bands. Examining images of this size can be difficult especially in multiple bands. Memory constraints and highly specialized tools like DS9 make analysis infeasible or cumbersome. FitsMap addresses these two issues by converting large fits files and images into tiles that can be presented using LeafletJS. Another issue in examining survey images is examining a catalog of sources in the context of the images. FitsMap addresses this by converting a catalog of sources into JSON map markers, which can be viewed in the webpage. Additionally these sources are searchable using by the web interface by the column id.

Installation

Requirements:

  • astropy

  • imageio

  • numpy

  • matplotlib

  • pillow

  • scikit-image

  • sharedmem

  • tqdm

Use pip to install

pip install fitsmap

Usuage

Import the fitsmap.mapmaker module

from fitsmap import mapmaker

Pass a list of files to fitsmap.mapmaker.files_to_map:

some_files = ...

mapmaker.files_to_map(some_files)

OR, pass a directory to fitsmap.mapmaker.dir_to_map:

mapmaker.dir_to_map("path/to/files/")

For more informatio see the docs or the code.

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

fitsmap-0.1.2.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

fitsmap-0.1.2-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

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