Turn fits files/catalogs into a leafletjs map
Project description
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/")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.