GLAST LAT ProjectDC1 Workshop, Dec. 8-9, 2003 1 Living with FITS Seth Digel, HEPL/Stanford Univ. Brief overview of FITS files, contents of the principal.

Slides:



Advertisements
Similar presentations
XMM EPIC MOS Jenny Carter 4 th EPIC BG WG Meeting Mallorca, 25/10/06 BGWG blank sky data analysis Jenny Carter, University of Leicester.
Advertisements

XMM Calibration/Ops Meeting Mallorca October Using 3X3 Binned Mode for MOS Cameras for Fast(er) Imaging Tony Abbey, Leicester University.
GLAST Science Support Center July 16, July Ground Software Workshop The GLAST Object Oriented Data Interface (GOODI) James Peachey, HEASARC Sandhia.
E-Science Data Information and Knowledge Transformation The BinX Language.
Page 1 17-Dec-2001 HESSI High Energy Solar Spectroscopic Imager Use or disclosure of data contained on this page is subject to the restrictions on the.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
GLAST LAT ProjectOnline EM Experience – October 23, 2003 R. Claus1 Online EM Experience Online Operations R. Claus, J. Panetta, S. Tuvi.
LAT IOC GLAST Science Support Center September 25, 2002 LAT Science Tools Review Supplemental Slides Seth Digel (Stanford University/HEPL) David Band (GLAST.
GLAST LAT ProjectDC1 Closeout Workshop, Feb , Statistical Issues in Likelihood Analysis of LAT Data Seth Digel (HEPL/Stanford Univ.) & Guillaume.
Xingwei Wang. Lab. Notebook Hard Cover Official Lab Notebook Numbered Pages 1 st Page,Table of Contents Name & ID number Section number.
GLAST LAT ProjectGround Software Workshop, July 15-18, Wrap-up: Science Tools Seth Digel HEPL/Stanford Univ. 18 July 2003 EGRET >300 MeV What we.
GLAST LAT ProjectGround Software Workshop, July 15-18, L1 Database Contents Seth Digel, for LAT FITS definition group: Masa Hirayama, Sandhi Bansal,
GLAST LAT Project 1S. Ritz Discussion: To Where From Here? DC1 Closeout Meeting February 13, 2004 S. Ritz Gamma-ray Large Area Space Telescope.
GLAST LAT ProjectDC1 Closeout Workshop, Feb , Post-DC1 Work Seth Digel (HEPL/Stanford Univ.) Post-DC1 Work.
GLAST LAT ProjectGround Software Workshop, July 15-18, Science Tools - Status Seth Digel HEPL/Stanford Univ. 16 July 2003.
1 Tom Stephens GSSC/GSFC Database Access and the dataSubselector Tool December 8, 2003 DC1 Kickoff Workshop.
GLAST Science Support Center July 16, July Ground Software Workshop The HEASARC CALDB David S. Davis, SSC.
GLAST LAT Project ISOC Peer Review - March 2, 2004 Section Gamma-ray Large Area Space Telescope GLAST Large Area Telescope ISOC Peer Review 7.2.
GLAST LAT Project 1S. Ritz Purposes of the Data Challenges “End-to-end” testing of analysis software. –define the ends –define the tests (what is success?)
GLAST Science Support CenterAugust 9, 2004 Implementation of the Standard Analysis Environment (SAE) James Peachey (HEASARC/GLAST SSC—GSFC/L3)
Unclassified A Journey Through The Mountains Of Information Chris Frost Mentor: Steve Norris From Data to Knowledge.
X-ray Astronomy School 2007 Databases, software, etc. for X-ray astronomy Keith Arnaud NASA Goddard University of Maryland.
Ircon ® ScanIR ® 3 Linescanner How to work with Snapshots? Confidential Rev. A 07/2013.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training course describes how to configure the the C/C++ compiler options.
1. 2 Purpose of This Presentation ◆ To explain how spacecraft can be virtualized by using a standard modeling method; ◆ To introduce the basic concept.
NASSP Masters 5003F - Computational Astronomy Lecture 19 EPIC background Event lists and selection The RGA Calibration quantities Exposure calculations.
Functions and Demo of Astrogrid 1.1 China-VO Haijun Tian.
An Introduction to MINC John G. Sled. What is MINC? A medical image file format based on NetCDF A core set tools and libraries for image processing A.
MARSIS data visualization using open source tools Anton B. Ivanov Ecole Polytechnique fédérale, Lausanne, Switzerland Planetary.
1FileScope  FileScope File Editor Query Tool Report Generator File Conversion Tool Full Screen Support Developers Tool.
25th & 26th August 2009ICAT developer workshop 1.
Chapter 7 File I/O 1. File, Record & Field 2 The file is just a chunk of disk space set aside for data and given a name. The computer has no idea what.
The european ITM Task Force data structure F. Imbeaux.
The FITS World Coordinate System and its application to STEREO and Solar-B William Thompson, L-3 Communication, NASA/GSFC What is it? The World Coordinate.
GLAST Science Support Center May 8, 2006 GUC Meeting Demonstration of GRB Spectral Analysis with the SAE David Band (GSSC/JCA-UMBC)
Serving Data to the GLAST Users Community Thomas E. Stephens (GSFC/RSIS) for the GLAST Science Support Center Abstract.
GLAST Science Support CenterAugust 9, 2004 Users’ Committee Meeting GSSC USER SUPPORT David Band – GSSC.
1 Japan-US collaboration to develop the “End-to-End simulator” Tsunefumi Mizuno Mar 12, 2003.
BEN METADATA SPECIFICATION Isovera Consulting Feb
Serving Data to the GLAST User Community Don Horner (L3 GSI/GSFC) and the GLAST Science Support Center Team Data Properties and Impact on Data Serving.
Mar 1-3 – DC2 Kickoff Meeting - 1 Tom Stephens GSSC Database Programmer Retrieving, Filtering and Previewing Data.
SPACE TELESCOPE SCIENCE INSTITUTE Operated for NASA by AURA COS Pipeline Calibration Goals of CALCOS Association Table Input and Output Files High Level.
Fermi LAT Monash University Nov 21, 2009 R.DuboisFermi LAT Science Analysis Tutorial1 Things that can bite you: DIY cuts For Science Tools analysis, getting.
OPERATING SYSTEMS Frans Sanen.  Analyze a FAT file system manually  FAT12 first and simplest version  Still used on smaller disks (e.g. floppies) 
COS PIPELINE CDR Jim Rose July 23, 2001OPUS Science Data Processing Space Telescope Science Institute 1 of 12 Science Data Processing
August 2003 At A Glance The IRC is a platform independent, extensible, and adaptive framework that provides robust, interactive, and distributed control.
GLAST Science Support Center June 21, 2007 Getting Involved with GLAST GLAST Guest Investigator Program David Band, GSSC CRESST/GSFC/UMBC.
GLAST LAT Project 1S. Ritz Data Challenge Planning Overview Purpose Boundary conditions Plan: –scope and progression of data challenges –schedule summary.
GLAST Science Support Center May 8, 2006 GUC Meeting Status of GLAST User Support David Band (GSSC/JCA-UMBC)
E-Science Data Information and Knowledge Transformation BinX – A Tool for Binary File Access eDIKT project team Ted Wen
1. 2 Purpose of This Presentation ◆ To explain how spacecraft can be virtualized by using a standard modeling method; ◆ To introduce the basic concept.
Fermi Cycle-2 Proposal Workshop Center for Astrophysics, Feb. 13, 2009 Dave Davis, FSSC 1 FSSC Science Tools for Cycle 2.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Sources emitting gamma-rays observed in the MAGIC field of view Jelena-Kristina Željeznjak , Zagreb.
Document Releases Peer Reviews Constraints CDF-A How to…
1 Getting Involved with GLAST Workshop, CFA, 06/21/ C. Shrader, NASA/GSFC GLAST Data & Software Release plans + Science Support Center Services C.
1 SUZAKU HUG 12-13April, 2006 Suzaku archive Lorella Angelini/HEASARC.
GLAST Science Support CenterAugust 10, 2004 Users’ Committee Meeting The Project Data Management Plan David Band – GSSC.
X-ray Astronomy School 2005 Databases, software, etc. for X-ray astronomy Keith Arnaud NASA Goddard University of Maryland.
GLAST Science Support Center July 16, July Ground Software Workshop The Spacecraft Simulator David S. Davis, GSSC.
June 27-29, DC2 Software Workshop - 1 Tom Stephens GSSC Database Programmer GSSC Data Servers for DC2.
Hayabusa data archive, format, and tools N. Hirata.
Pulsar analysis with LAT data: A quick tutorial Massimiliano Razzano (INFN-Pisa)‏ Fermi Meeting, (1 Oct. 2009)‏
GLAST Science Support Center November 8, 2005 GUC Action Item #15 AI#15: Pre-Launch GI Proposal Tools David Band (GSSC/JCA-UMBC)
Proposed Changes to the FITS Data Format
GO! with Microsoft Office 2016
What is FITS? FITS = Flexible Image Transport System
Planning contents of [DC2] LAT source catalog
David Band – Science Lead, GSSC
Fundamentals of Data Structures
Presentation transcript:

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Living with FITS Seth Digel, HEPL/Stanford Univ. Brief overview of FITS files, contents of the principal FITS files for DC1, some specific tips and tools for dealing with FITS

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Introduction Essentially universally used in ground-based astronomy and adopted by NASA astronomy missions at least 20 years ago.

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Introduction (2) ‘Flexible’ is true, as the original image (multi-dimensional array) standard has been extended to include tables (ASCII and binary) and more exotic data structures, including variable-length records The best thing about a standard is generally that it is a standard FITS is a formal standard and has an oversight committee that in a very deliberate way keeps it current NASA FITS Support Office [a virtual office] is a good referenceNASA FITS Support Office

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Structure of a FITS File FITS files consist of one or more ‘Header-Data Units’ The header part of an HDU is ASCII (i.e., human readable without special software) and describes in a defined way the contents of the HDU. –For historical reasons the header is always a multiple of 2880 bytes long, i.e., padded to that length –As tables are an extension to the original definition, FITS files with tables require a runt main header with no associated data array, to identify them as files that might have tables in succeeding HDUs Headers can be quite descriptive, e.g., in a table defining the units of a quantity and the allowed range Owing to the adherence to the standard, general FITS readers for images and tables exist. Good and free.

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, LAT FITS LAT FITS Format Definition Working Group, led by Masa Hirayama (SSC), members Sandhia Bansal (SSC), Jerry Bonnell (GSFC), Guillaume Dubus (IN2P3/LLR), and Yasushi Ikebe (SSC) The LFFDWG coordinates rationalization of what we want to do with existing standards/conventions HEASARC has some oversight of keyword definition for high- energy astrophysics data, and the LFFDWG has consulted this group –Guess what, it is called the HEASARC FITS Working Group Issues can be subtle – like the definition of time, especially at the level needed for pulsar timing

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Event summaries (FT1) Event summary information, specifically for gamma rays –Basics: Event ID, time, energy, direction, event class, inclination, azimuth, zenith angle, Recon & classification versions, calibration versions The definition of the contents will be refined post-DC1, but the basics won’t change –In particular, we were not sure until recently how the event classification would be passed through to the FT1 files, so we more or less threw in the kitchen sink –The intent is to include everything that might be useful for someone’s idea of high-level analysis It is essentially a binary table – With the addition of a ‘Good Time Interval’ extension, it is now recognizable to standard timing software used in high-energy astrophysics

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, FT1 Contents Official reference: Primary header Extension 1 SIMPLE = T / file does conform to FITS standard BITPIX = 8 / number of bits per data pixel NAXIS = 0 / number of data axes EXTEND = T / FITS dataset may contain extensions COMMENT FITS (Flexible Image Transport System) format is defined in 'Astronomy COMMENT and Astrophysics', volume 376, page 359; bibcode: 2001A&A H TELESCOP= 'GLAST ' / name of telescope generating data INSTRUME= 'LAT ' / name of instrument generating data EQUINOX = / equinox for ra and dec RADECSYS= 'FK5 ' / world coord. system for this file (FK5 or FK4) DATE = ' T06:38:46' / file creation date (YYYY-MM-DDThh:mm:ss UT) DATE-OBS= ' T00:00: ' / Start Date and Time of the observation (U DATE-END= ' T00:00: ' / End Date and Time of the observation (UTC FILENAME= 'DC1AllSky-FT1.fits' / name of this file ORIGIN = 'GSSC ' / name of organization making file AUTHOR = / name of person responsible for file generation CREATOR = 'GOODI ' / software and version creating file VERSION = / integer? string? (TBD) release version of the SOFTWARE= / version of the processing software CHECKSUM= 'jCFAk999jCEAj997' / HDU checksum updated T06:38:46 DATASUM = ' 0' / data unit checksum updated T06:38:46 END

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, More FT1 Contents Event extension header Files also have a 2 nd extension for the Good Time Intervals –This is for windowing by time, background filtering more relevant for X-ray astronomy –Current list just one time interval, the whole range of the file XTENSION= 'BINTABLE' / binary table extension BITPIX = 8 / 8-bit bytes NAXIS = 2 / 2-dimensional binary table NAXIS1 = 172 / width of table in bytes NAXIS2 = / number of rows in table PCOUNT = 0 / size of special data area GCOUNT = 1 / one data group (required keyword) TFIELDS = 27 / number of fields in each row TTYPE1 = 'ENERGY ' / label for field TFORM1 = 'E ' / format of field TTYPE2 = 'RA ' / label for field TFORM2 = 'E ' / format of field … EXTNAME = 'EVENTS ' / name of this binary table extension HDUCLASS= 'OGIP ' / format conforms to OGIP standard HDUCLAS1= 'EVENTS ' / extension contains events HDUCLAS2= 'ALL ' / extension contains all events detected TSTART = 0. / mission time of the start of the observation TSTOP = 0. / mission time of the end of the observation MJDREF = / MJD corresponding to SC clock start TIMEUNIT= 's ' / units for the time related keywords TIMESYS = 'TT ' / type of time system that is used TIMEREF = 'LOCAL ' / reference frame used for times TASSIGN = 'SATELLITE' / location where time assignment performed CLOCKAPP= T / whether a clock drift correction has been appli GPS_OUT = T / whether GPS time was unavailable at any time du … TUNIT1 = 'MeV ' / physical unit of field TLMIN1 = 0. / minimum value TLMAX1 = / maximum value TUNIT2 = 'deg ' / physical unit of field TLMIN2 = 0. / minimum value TLMAX2 = 360. / maximum value … EXTVER = 1 / auto assigned by template parser FILENAME= 'DC1AllSky-FT1.fits' CHECKSUM= '3idXAidV3idVAidV' / HDU checksum updated T06:38:46 DATASUM = ' ' / data unit checksum updated T06:38:46 END

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Pointing/Livetime History (FT2) Pointing, livetime, mode history, for calculating exposures Also a FITS binary table The contents will evolve here, too. –Presently one entry per minute. In real life, we may get entries at 5 Hz, the rate at which the LAT will receive updated position and orientation information from the spacecraft. –In real life, the mode history will include times that the LAT is off for SAA passages. It can also record different modes of operation, e.g., for solar flares –It includes livetime, too, although not presently used

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, FT2 Contents Official reference: Excerpt of contents TTYPE1 = 'START ' / label for field TFORM1 = 'D ' / format of field TTYPE2 = 'STOP ' / label for field TFORM2 = 'D ' / format of field TTYPE3 = 'SC_POSITION' / label for field TFORM3 = '3E ' / format of field TTYPE4 = 'LAT_GEO ' / label for field TFORM4 = 'E ' / format of field TTYPE5 = 'LON_GEO ' / label for field TFORM5 = 'E ' / format of field TTYPE6 = 'RAD_GEO ' / label for field TFORM6 = 'E ' / format of field TTYPE7 = 'RA_ZENITH' / label for field TFORM7 = 'E ' / format of field TTYPE8 = 'DEC_ZENITH' / label for field TFORM8 = 'E ' / format of field TTYPE9 = 'B_MCILWAIN' / label for field TFORM9 = 'E ' / format of field TTYPE10 = 'L_MCILWAIN' / label for field TFORM10 = 'E ' / format of field TTYPE11 = 'RA_SCZ ' / label for field TFORM11 = 'E ' / format of field TTYPE12 = 'DEC_SCZ ' / label for field TFORM12 = 'E ' / format of field TTYPE13 = 'RA_SCX ' / label for field TFORM13 = 'E ' / format of field TTYPE14 = 'DEC_SCX ' / label for field TFORM14 = 'E ' / format of field TTYPE15 = 'LAT_MODE' / label for field TFORM15 = 'J ' / format of field TTYPE16 = 'LIVETIME' / label for field TFORM16 = 'D ' / format of field TTYPE17 = 'DEADTIME' / label for field TFORM17 = 'D ' / format of field

GLAST LAT ProjectDC1 Workshop, Dec. 8-9, Some useful software fv – - interactive editor for FITS files. Also shows images, makes histograms. Many platforms supported, including Windows at least marginallyhttp://ftools.gsfc.nasa.gov/lheasoft/ftools/fv FTOOLS futils in general – see - general purpose utilities for manipulating contents and headers of FITS files. For Windows, Cygwin is needed Image display: DS9 – see - astronomical image display tool, very flexible. A completely functional (as far as I can tell) Windows binary distribution is availablehttp://hea- I/O libraries exist for high-level languages and for IDL, Matlab, Python, etc – see