ryanhausen / fitsmap

FitsMap: A Simple, Lightweight Tool For Displaying Interactive Astronomical Image and Catalog Data
MIT License
48 stars 8 forks source link

Fits image scaling issue 67 #69

Closed ryanhausen closed 1 year ago

ryanhausen commented 1 year ago

This addresses #67 and #68. Matplotlib figures are no longer used to render tiles. Matplotlib colormaps and simple_norm are used to colorize tiles at native scale at max zoom. After max zoom, tiles are built recursively, so we don't need Matplotlib to do the interpolation. Per-file norm_kwargs are implemented as a dictionary of filenames. If the dictionary doesn't have the filename as a key its presumed to be a single dictionary for all files and the whole dictionary is returned.