;make last_minus_first
;
;PURPOSE:
;  To create a .fits file consisting of only the last minus first read.
;  This deals with the large files that ds9 cannot handle
;KEYWORDS:
;  MKJPG - if set, a .tif image will be generated that has the 
;            coordinates, XStartJPG, XStopJPG, YStartJPG, YStopJPG
;  MKSLDSHW - if set, a 10 image slide sequence of reads will be output
;	      in .tif format
;  VERTICAL - if set, the slideshow will be vertical rather than horizontal
;  NUMSEQ   - the number of slides to put in the image.  They will be distributed
;	      uniformly in time throughout the ramp
;EXAMPLES:
;make_last_minus_first_1rg,'/nfs/slac/g/ki/ki09/lances/H1RG/KPNO_11_07/ASIC/07Nov19/NGC7419_I_Dither1_20ArcSecondsEast_0ArcSecondsNorth_H1RG_SIPIN_100_Reads_Nov19_2007_21_01_10.fits',/MakeJPG, date='07Nov19'
;
;VSUBS =======================
;
;
;SUPER LONG RAMP===============
;make_last_minus_first_1rg,'/nfs/slac/g/ki/ki09/lances/H1RG/KPNO_11_07/ASIC/07Nov19/SAO5417_I_NegPerDark_H1RG_SIPIN_2500_Reads_Nov19_2007_22_45_50.fits', date='07Nov19'
;make_last_minus_first_1rg,'/nfs/slac/g/ki/ki09/lances/H1RG/KPNO_11_07/ASIC/07Nov19/SAO5417_I_NegPerDark_H1RG_SIPIN_2500_Reads_Nov19_2007_22_45_50.fits', date='07Nov19', xstartjpg=318, xstopjpg = 358, ystartjpg = 245, ystopjpg = 285, /mkjpg
pro plot_ramp, FitsFileName, Col, Row, $
	TvFlag = TvFlag, Mode = Mode, Date = Date, Leach=Leach, $
	MkJPG = MkJPG, MkSldShw = MkSldShw, Vertical = Vertical,$
	XStartJPG = XStartJPG, XStopJPG = XStopJPG,$
	YStartJPG = YStartJPG, YStopJPG = YStopJPG, $
	FullFrame=FullFrame, Last = Last, NumSeq = NumSeq

;*****KEYWORDS**************************************************************************
Fits_read_datacube, FitsFileName, Im, $
    XStart = Col, XStop = Col, $
    YStart = Row, YStop = Row
Plot, long(Im)-Im(0)

stop

end
