spacetelescope / imexam

imexam is a python tool for simple image examination, and plotting, with similar functionality to IRAF's imexamine
http://imexam.readthedocs.io
BSD 3-Clause "New" or "Revised" License
75 stars 45 forks source link

Add a check to see if the extension being displayed is actually a binary table #112

Closed sosey closed 6 years ago

sosey commented 7 years ago

load_fits() happily sends a fits binary table to ds9 without error, from either imexam or ds9, but nothing shows up obviously. Return a message to the user asking for an explicit extension for display

This came up in #111 with display of an HLSP-type product with the following structure:

Filename: hlsp_frontier_hst_wfc3-60mas_abell2744_f105w_v0.5-20131101_drz.fits
No.    Name         Type      Cards   Dimensions   Format
  0  PRIMARY     PrimaryHDU     845   (5350, 6150)
  1  HDRTAB      BinTableHDU    557   4R x 274C