<%@LANGUAGE="JSCRIPT"%><% Response.Expires = 0; // Immediate Expires: header Response.AddHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0"); var evID = Request.Form("eid"); var evIvorn = Request.Form("ivorn"); var evDateStr = Request.Form("date"); var evFileName = Request.Form("fname"); var evFileNameEnc = encodeURIComponent(evFileName); var evImgBasePath = Server.MapPath("/VOEvent/images/" + evID); var FSO = new ActiveXObject("Scripting.FileSystemObject"); var PP = new ActiveXObject("PinPoint.Plate"); PP.AttachNoImage(evImgBasePath + "\\" + evFileName + ".fts"); var expInt = Math.round(PP.ExposureInterval); var expDate = Util.FormatVar(PP.ExposureStartTime, "yyyy-dd-mm Hh:Nn:Ss"); var expFilt = PP.FilterName; var expScaleH = Math.abs(PP.ArcsecPerPixelHoriz); var expScaleV = Math.abs(PP.ArcsecPerPixelVert); var expBinH = PP.BinningHoriz; var expBinV = PP.BinningVert; var expNPixH = PP.Columns; var expNPixV = PP.Rows; var expAirMass = PP.Airmass; var expRA = PP.RightAscension; var expDE = PP.Declination; var expPA = PP.PositionAngle; PP.DetachFITS(); var expFovH = expNPixH * expScaleH / 60; // arcmin var expFovV = expNPixV * expScaleV / 60; %> Data Details
 
   
 
 
<%= evFileName %>
Data specifics: Click for FITS file
Start time<%= expDate %> UTC
Integration time<%= expInt %> sec.
Filter<%= expFilt %>
Center J2000<%= Util.Hours_HMS(expRA,":",":","",2) %>  <%= Util.Degrees_DMS(expDE,"d","m","s",1) %>  PA <%= Util.FormatVar(expPA, "0.0") %>
Airmass<%= Util.FormatVar(expAirMass, "0.00") %>
Detector geom.<%= expNPixH * expBinH %> x <%= expNPixV * expBinV%> pixels (binned <%= expBinH %>x<%= expBinV %>)
Plate scales<%= Util.FormatVar(expScaleH, "0.00") %> x <%= Util.FormatVar(expScaleH, "0.00") %> arcsec/pixel
Field of view<%= Util.FormatVar(expFovH, "0.00") %> x <%= Util.FormatVar(expFovV, "0.00") %> arcmin
 
Original FITS data (or click on image)

Dump of FITS header:

<%
	// Dump FITS header of the file
	var lhPath = Server.MapPath("/VOevent/bin/listhead.exe");
    var tname = FSO.GetSpecialFolder(2).Path + "\\" + FSO.GetTempName();
    var tid = Util.ShellExec(lhPath, "\"" + evImgBasePath + "\\" + evFileName + ".fts\" " + tname, 0);
	while(Util.IsTaskActive(tid))
	    Util.WaitForMilliseconds(200);
	var tfile = FSO.OpenTextFile(tname);
	Response.Write(tfile.ReadAll());
	tfile.Close();
	FSO.DeleteFile(tname);
	
%>