Description
A stand-alone program that plots a single FITS image, and optionally prints its header.
Usage
plotfits.py fits-file [min] [max] [header-flag (anything)] Autoscale if min = max = 0
Examples
46: ~/Projects/Python/AstroPy > plotfits.py 072407/processed/im0215.a.fits 0 2000 1
SIMPLE = T / conforms to FITS standard
BITPIX = -64 / array data type
NAXIS = 2 / number of array dimensions
NAXIS1 = 512
NAXIS2 = 512
DATAMIN = -9858 / MIN DATA VALUE IN FILE
DATAMAX = 57991 / MAX DATA VALUE IN FILE
DATAMEAN= 0.00 / MEAN DATA VALUE IN FILE
DIVISOR = 16 / Normalization value
ORIGIN = 'Institute for Astronomy'
TELESCOP= 'NASA IRTF'
INSTRUME= 'SpeX, IRTF Guider/Camera'
OBSERVER= 'Your_Name'
OBJECT = 'Venus'
COMMENT = 'Venus image cube'
IRAFNAME= 'im0215.a.fits'
DSPTMFLE= 'none' / DSPTimingInfo File
BEAM = 'A' / Object(A) or sky(B)
TIME_OBS= '05:21:39.741545' / UT TIME OF ACQISTION ('hh:mm:ss.ss')
DATE_OBS= '2007-07-24' / UT DATE OF ACQUISITION ('yyyy/mm/dd')
TIME_GPS= '21:39.781951' / UT TIMESTAMP from GPS ('mm:ss.usec')
CAMMODE = 0 / CameraMode is Basic
ITIME = 1.0000 / INTEGRATION TIME IN SECONDS
CO_ADDS = 4 / NUMBER OF INTEGRATIONS
CYCLES = 500 / Number of cycles
NUMARRAY= 1 / Number of data sub-arrays
ARRAY0 = 0,0,512,512 / x,y,wid,hgt of data sub-arrays
BEAMPAT = 0 / Beam Pattern
BBMODE = 2 / BB Mode is BBMODE_D16
CBMODE = 1 / CB Mode is ARC_D
NDR = 4 / Number of Non-Destructive Reads
SLOWCNT = 12 / Number of Slow Counts
GRSTCNT = 800 / Global Reset Count. 1 cnt = 25 nsec
GPSTMFLG= 1 / GPS_Time_Flag
BGRESET = 1,2000,1600 / Backgroud Reset's flag, msec, cnt
RMEX206 = 0 / RemoveExtra206MuxData. MUX206=0
TABLE_MS= 235.508 / msec to clock out array
CALMIR = Out / menu=0,pos=252000
DIT = open / menu=2,pos=160000
OSF = Open / menu=0,pos=21333
ROTATOR = 270.00 / Rotator_Mechanical_Angle; pos=540000
POSANGLE= 0.00 / Sky_Position_Angle
SLIT = 0.3x60 / menu=7,pos=249000
GRAT = LowRes60 / menu=4,pos=178450
GFLT = contK / menu=10,pos=448000
AFOC = 50000 / pos=50000,volts= 0.24
PLATE_SC= 0.12 / PlateScale arcsec/pixel
FLTZP = 0.0 / GFlt Filter Zero Point
EXT_COF = 0.000 / GFlt Extinction coefficient
TC330A = '30.00,74.09,30.00,Med30.00%' / Spectragraph ChA,ChB,SetPt,Heater
TC330B = '30.00,13.18,30.00,Med10.00%' / Guider ChA,ChB,SetPt,Heater
TC208 = ' 46.87 15.35 74.17 73.75 74.51 78.41 86.80 282.00'
QTH_LAMP= Off / Quart Lamp
INC_LAMP= Off / Incandesce Lamp
IR_SRC = Off / IR Source
ARG_SRC = Off / Argon Lamp
SHUTTER = Close / Cal Box shutter
TPD = ' 10:13:36.19 07:32:48.0 04:52:32.45 3.154 2000.0 -O'
RA = 10:13:36.19 / Right Ascension
DEC = 07:32:48.0 / Declination
HA = 04:52:32.45 / Hour Angle
AIRMASS = 3.154 / Air Mass
EPOCH = 2000.0 / Epoch
ASTROPY = T / *** Image processed by AstroPy ***
FLATTEND= T / Image has been flat-fielded
FILLED = T / Masked values have been filled
SHFTAVGD= T / Image has been shifted to remove noise
SHIFTDX = -50.26085896611957 / Total shift amount
SHIFTDY = 2.835026444781903 / Total shift amount
CIRCX = 254.3624940724442 / Final circumscription
CIRCY = 255.4399634554688 / Final circumscription
CIRCR = 203.4770938213542 / Final circumscription

©Sky Coyote 2007