Table of Contents. Page 2 of 9



Similar documents
WFC3 Image Calibration and Reduction Software

Visualization and Analysis of Spectral Data Cubes an Hipe toolbox

QUALITY CONTROL OF THE IUE FINAL ARCHIVE

AST 4723 Lab 3: Data Archives and Image Viewers

Image Compression through DCT and Huffman Coding Technique

Function Guide for the Fourier Transformation Package SPIRE-UOL-DOC

CASA Analysis and Visualization

Digital Forensics. Module 4 CS 996

Performance Analysis and Comparison of JM 15.1 and Intel IPP H.264 Encoder and Decoder

Michael W. Marcellin and Ala Bilgin

Organization of VizieR's Catalogs Archival

TEL2821/IS2150: INTRODUCTION TO SECURITY Lab: Operating Systems and Access Control

Introduction to acoustic imaging

The Clean programming language. Group 25, Jingui Li, Daren Tuzi

MarshallSoft AES. (Advanced Encryption Standard) Reference Manual

OSKAR Example Revision: 8

CANnes PC CAN Interface Manual

A Novel Method to Improve Resolution of Satellite Images Using DWT and Interpolation

Relational Database: Additional Operations on Relations; SQL

DIGITAL IMAGE PROCESSING AND ANALYSIS

The mathematics of RAID-6

Real-Time BC6H Compression on GPU. Krzysztof Narkowicz Lead Engine Programmer Flying Wild Hog

ECMWF Aerosol and Cloud Detection Software. User Guide. version /01/2015. Reima Eresmaa ECMWF

Bitrix Site Manager 4.1. User Guide

Drawing a histogram using Excel

(Refer Slide Time: 02:17)

Supervised Classification workflow in ENVI 4.8 using WorldView-2 imagery

A New Digital Encryption Scheme: Binary Matrix Rotations Encryption Algorithm

Document Management User Guide

How to Manage a Calibration Database

Introduction to image coding

A Proposal for OpenEXR Color Management

CHM 579 Lab 1: Basic Monte Carlo Algorithm

Cryptography and Network Security. Prof. D. Mukhopadhyay. Department of Computer Science and Engineering. Indian Institute of Technology, Kharagpur

NETWORK ADMINISTRATION

Microsoft Networks. SMB File Sharing Protocol Extensions. Document Version 3.4

Introduction to MATLAB (Basics) Reference from: Azernikov Sergei

A Streamlined Workflow for Untargeted Metabolomics

Analyzing the Effect of Treatment and Time on Gene Expression in Partek Genomics Suite (PGS) 6.6: A Breast Cancer Study

This work was done in collaboration with the Centre de Données astronomiques de Strasbourg (CDS) and in particular with F. X. Pineau.

MOC HEALPix Multi-Order Coverage map Version 1.0

Blender addons ESRI Shapefile import/export and georeferenced raster import

Hierarchical Bloom Filters: Accelerating Flow Queries and Analysis

How To Write A Hexadecimal Program

ANNEXURE - I. Back-office Interfaces

AN017. CAN Bus Monitor for Kvaser. Introduction. CAN Monitor

Neural Network Add-in

Click Studios. Passwordstate. Upgrade Instructions to V7 from V5.xx

ASKAP Science Data Archive: Users and Requirements CSIRO ASTRONOMY AND SPACE SCIENCE (CASS)

19. Exercise: CERT participation in incident handling related to the Article 13a obligations

Lecture 36: Chapter 6


A Storage Architecture for High Speed Signal Processing: Embedding RAID 0 on FPGA

ALICE Trigger and Event Selection QA

EA-ARC ALMA ARCHIVE DATA USER GUIDEBOOK

Computer Graphics Hardware An Overview

Environmental Remote Sensing GEOG 2021

How to create Event Filters directly from the Event Viewer

The UBATSIM software package. Simulates UBAT detector frames from a GRB. and. processes them to trigger and locate the GRB

White Paper. "See" what is important

HP Load Balancing Module

ENVI Classic Tutorial: Atmospherically Correcting Multispectral Data Using FLAASH 2

AW-HE60 Firmware Upgrade Procedure

ENVI Classic Tutorial: Atmospherically Correcting Hyperspectral Data using FLAASH 2

Analecta Vol. 8, No. 2 ISSN

SPIRE Pipeline Data Products and Visualization Tools in HIPE

Files Used in this Tutorial

UV-NIR LASER BEAM PROFILER

Phys4051: C Lecture 2 & 3. Comment Statements. C Data Types. Functions (Review) Comment Statements Variables & Operators Branching Instructions

Connectivity Pack for Microsoft Guide

Overview. Swarms in nature. Fish, birds, ants, termites, Introduction to swarm intelligence principles Particle Swarm Optimization (PSO)

MiSeq: Imaging and Base Calling

Reduced data products in the ESO Phase 3 archive (Status: 15 May 2015)

Access Queries (Office 2003)

Binary search tree with SIMD bandwidth optimization using SSE

Cryptography: Authentication, Blind Signatures, and Digital Cash

Maintenance Best Practices for Adaptec RAID Solutions

>

SCORE Data Display and Analysis Software

Optimization of sampling strata with the SamplingStrata package

STANDARD OPERATING PROCEDURES QUALITY ASSURANCE AND QUALITY CONTROL 04

How To Test A Progressive Demasking Trial On A Windows 2000/Xperience Computer (2000) On A Computer With A Powerbook 2.5 (2000/Xpress) On Windows 2000 Or Xp (2000 Or 2001) On An Un

路 論 Chapter 15 System-Level Physical Design

Realization of Inventory Databases and Object-Relational Mapping for the Common Information Model

IMPROVEMENT OF DIGITAL IMAGE RESOLUTION BY OVERSAMPLING

Transcription:

Table of Contents 1 List of Acronyms 3 2 Introduction and Scope 4 3 Overview on the data 4 4 The error 4 5 The data quality information 4 6 Organization of the FITS file 5 7 Identification of data sets with FITS keywords 5 8 Remarks 6 Appendix A List of pixel defects for quality type 7 Appendix B FITS example 8 Page 2 of 9

1 LIST OF ACRONYMS VLT FITS CASA DICD HDU WCS IFU Very Large Telescope Flexible Image Transport System Common Astronomy Software Applications Data Interface Control Document Header Data Unit World Coordinate System Integral Field Unit Page 3 of 9

2 INTRODUCTION AND SCOPE Many of the current and the future ESO pipelines for VLT instruments deliver as the final products data with associated pixelwise error information and information on the data quality This document discusses and proposes formats to store this kind of data in a FITS file such that other applications or tools can read and process them properly An example for such an application is the ESO 3D viewer, which is currently being developed as part of the CASA viewer to display 3D cubes (two spatial plus one spectral dimension) Such a format definition does currently neither exist in the FITS standard (see http://fitsgsfcnasagov/fits_standardhtml) nor in the "Data Interface Control Document" (DICD, see http://arcdevesoorg/dicb/dicb_internal/) of ESO The proposed FITS format defines only the science data output of ESO pipelines (see Remark 1) 3 OVERVIEW ON THE DATA The data products described here consist of the processed data values (called "science data" hereafter) and the error and data quality as additional or supporting information Science data and their associated error and data quality information shall be stored in different Header Data Units (HDU) of the same FITS file (see Remark 2) The auxiliary data (error and data quality) are optional If existing, the HDU with the auxiliary data must have the identical dimension as the according science data Also the error and data quality HDU's must contain a World Coordinate System (WCS) which is identical to their according science data HDU 4 THE ERROR The pixel-by-pixel errors shall be used in applications such as the ESO 3D viewer to determine, via error propagation, the error for results from simple processing of the 3D data, such as extracted spectra or 2D reconstructed images The error values can be given as different error types Possible error types are: MSE : mean squared error RMSE : root mean square error INVMSE : inverse mean squared error INVRMSE : inverse root mean square error An error HDU identifies its error type with the value of a FITS keyword as described in Sect 6 The recommended error type is MSE 5 THE DATA QUALITY INFORMATION The data quality information offers the possibility to further qualify the data for every pixel The data quality information is stored in a HDU with the identical dimension and WCS as the data HDU There exist four different types of data quality HDU's, which are identified with the FITS keyword as described in Sect 6 MASKZERO : A data quality HDU of this type describes a pixel mask of any numeric FITS type (16-bit integer or 16-bit float) Good pixels have the value 0, all other values mark bad pixels; MASKONE : A data quality HDU of this type describes a pixel mask of any numeric FITS type (16-bit integer or 16-bit float) Good pixels have the value 1, all other values mark bad pixels; FLAG32BIT : As described in the Euro3D data format (http://wwwaipde/euro3d/e3d/ ) Such a data quality HDU contains 32-bit integer values, and each bit can be set to describe a certain pixel defect (eg "no data", "outside the allowed range") The decision on whether a pixel is good is made via the bitwise operation "AND" of a pixel value with a mask value Page 4 of 9

stored in a FITS keyword QUALMASK FLAG16BIT : As in the Euro 3D case, however with a different list of pixel defects (see Appendix A) and 16-bit integer values The decision on whether a pixel is good is made via the bitwise operation AND of a pixel value with a mask value stored in a FITS keyword QUALMASK Pixel masks ( MASKZERO and MASKONE ) can be used and understood rather intuitively In contrast to this simple scheme, a more differentiated approach with 32-bit or 16-bit integer data quality values and quality mask value ( FLAG32BIT and FLAG16BIT ) allows to select precisely which defects are considered to be serious and which are minor, such that the data is still useful The data quality flagging in the Euro 3D format would allow to address 32 different defects, and it is possible to reject or accept each defect by adjusting the keyword QUALMASK In the fully processed data considered here, an individual pixel value often contains interpolated input from various original detector pixels As a consequence, most of the pixels should be good, and a direct mapping of detector defects, eg "bad pixel", "hot pixel", for any individual pixel is often no longer possible For the data quality type FLAG16BIT we have, starting from the list of defects defined in the Euro 3D format, extracted and compiled (see Appendix A) a list of defects that tend to be clustered and thus could likely be present even in interpolated, fully processed data This reduced list of defects, including some deficiencies defined by the user, can easily be covered by a 16-bit number, which has the advantage to save, with respect to the full Euro 3D format, disk space and processing time 6 ORGANIZATION OF THE FITS FILE The science data plus their associated error and data quality information shall be stored in the HDU's of a single FITS file If the file contains several HDU's, the primary HDU of the FITS files shall not contain data (see Remark 3) It is allowed to store several sets of HDU's with associated science data, error and data quality in a single FITS file If there are several sets in a FITS file, it must be possible to derive the identification of the set (such as the chip number or the IFU number) either from the extension name (keyword ) or the combination of extension name and extension version (keyword of each science data HDU (see Remark 3) It is recommended that the identification is also part of the error and data quality extension names (see Appendix B) The order of the HDU's is recommended to be science data, error, data quality for each set representing the data of an IFU unit However also a random order or the sorting according to function (eg all science data HDU's followed by all error HDU's followed by all data quality HDU's) shall be possible 7 IDENTIFICATION OF DATA SETS WITH FITS KEYWORDS Any application that uses science data with errors and data quality information must be able to identify within the list of available HDU's which extensions form a set and which role (science data/error/data quality) each HDU has This information is provided in the FITS keywords of the various HDU's The FITS keywords: identify the type of every HDU; provide further type information for an error or data quality HDU; point to the HDU with the complementary information We propose to use a FITS keyword naming convention which was introduced in the high energy community (http://heasarcgsfcnasagov/docs/heasarc/ofwg/docs/ofwg_recomm/r8html) In order to specify the keyword convention, every HDU contains the fixed keywords: HDUCLASS= ESO HDUDOC= DICD Page 5 of 9

HDUVERS= DICD version 6 Further information is provided in hierarchical keywords HDUCLASn with the index number n For the various HDU types, these keywords contain: HDU type HDUCLAS1 HDUCLAS2 HDUCLAS3 science data IMAGE DATA error IMAGE ERROR MSE RMSE INVMSE INVRMSE data quality IMAGE QUALITY MASKZERO MASKONE FLAG32BIT FLAG16BIT In addition, specific keywords point to the HDU with the complementary information: in a science HDU: ERRDATA errext : identifies the extension name of the corresponding error HDU (if existing) QUALDATA dqext : identifies the extension name of the corresponding data quality HDU (if existing) in an error HDU: SCIDATA sciext identifies the extension name of the corresponding science data HDU QUALDATA dqext identifies the extension name of the corresponding data quality HDU (if existing) in a data quality HDU: SCIDATA sciext identifies the extension name of the corresponding science data HDU ERRDATA errext identifies the extension name of the corresponding error HDU (if existing) Providing the full information on associated HDU's in each individual HDU replicates redundant information However then each HDU possesses sufficient information to group itself in the global context Appendix B shows an overview of a FITS file following this scheme If the extension version keyword is used for the unique identification of an HDU (not done at ESO), see Remark 4 8 REMARKS Remark 1: While the FITS format proposed here can certainly be applied to the final output products from all instruments, there might be cases where this is not appropriate An example for such an case would be output products where the data quality information is shared by many sets of science data Then the format proposed here would require the replication of identical data quality information for each science data set Similarly, the "data-set" concept of Phase 3 data products (see GEN-SPE-ESO-33000-5335) goes much beyond the format described here and allows more information to be included also in separate files Remark 2: In the format proposed here the science data, the error and data quality are stored in the same FITS file, which is different from what some ESO pipelines currently deliver Page 6 of 9

Eg FLAMES/ARGUS has a file for the data and another for the errors The advantage of our approach is that the storage of the entire data (science+error+data quality) in a single file provides coherent data sets It also allows a convenient access for applications such as the ESO 3D viewer This avoids interactive input from the user, such as 1 load science data from file A, 2 load error from file B, 3 load data quality from file C Remark 3: In the format proposed here it is mandatory that each HDU with data can be identified via extension name and, if necessary, extensions version (keywords EXTNAME EXTVER Consequently, if the primary HDU does contain data these keywords need to be set as well While primary HDU's with extension name are not very popular and even not possible to be generated with the current (Oct 2011) version of cpl, it is allowed in the FITS standard (see Sect 4426 in http://fitsgsfcnasagov/fits_standardhtml) Remark 4: If the FITS files use the extension name plus extension version (keyword EXTVER) to uniquely identify the HDU's, the extension version shall be appended to the extension name in the keywords that point to the HDU's with complementary information (eg SCIDATA sciext,1 ; ERRDATA errext,1 ) APPENDIX A LIST OF PIXEL DEFECTS FOR QUALITY TYPE Bit # flag_value quality_condition 0 0 good data 1 1 affected by telluric feature (corrected) 2 2 affected by telluric feature (uncorrected) 3 4 ghost/stray light at >10% intensity level 4 8 saturated data value 5 16 bad pixel (general) 6 32 Na-laser notch filter affected 7 64 user defined 8 128 9 256 10 512 11 1024 12 2048 13 4096 14 8192 missing data 15 16384 outside data range Page 7 of 9

APPENDIX B FITS EXAMPLE The file _templatesiiifits contains the following extensions: --> catfits FITS_templatesIIIfits EXT# FITSNAME FILENAME EXTVE DIMENS BITPI OBJECT 0 FITS_template 8 1 2 IMAGE IMAGE IFU1SCI IFU1ERR 30x30x30 30x30x30-32 -32 3 IMAGE IFU1DQ 30x30x30 16 4 IMAGE IFU2SCI 30x30x30-32 5 IMAGE IFU2ERR 30x30x30-32 6 IMAGE IFU2DQ 30x30x30 16 7 IMAGE IFU3SCI 30x30x30-32 8 IMAGE IFU3DQ 30x30x30-32 The first data extension has the keywords: --> imhead FITS_templatesIIIfits[IFU1SCI] lo+ FITS_templatesIIIfits[IFU1SCI][30,30,30][real]: No bad pixels, min=0, max=0 (old) Line storage mode, physdim [30,30,30], length of user area 1377 su Pixel file "FITS_templatesIIIfits" [ok] PCOUNT = 0 / number of parameters GCOUNT = 1 / number of groups EXTNAME = 'IFU1SCI' / Extension name HDUCLASS= 'ESO' / Identification of the data format HDUDOC = 'DICD' / Document describing the data format HDUVERS = 'DICD version 6' / Specific version of the document HDUCLAS1= 'IMAGE ' / Image data format HDUCLAS2= 'DATA ' / Identification as science extension ERRDATA = 'IFU1ERR' / Name of its error extension QUALDATA= 'IFU1DQ ' / Name of its data quality extension / World coordinate system start: CRPIX1 = 50 / Reference pixel CRPIX2 = 50 / Reference pixel The keyword ERRDATA points to the extension 'IFU1ERR' as the associated error array, which has the keywords: --> imhead FITS_templatesIIIfits[IFU1ERR] lo+ FITS_templatesIIIfits[IFU1ERR][30,30,30][real]: No bad pixels, min=0, max=0 (old) Line storage mode, physdim [30,30,30], length of user area 1418 su Pixel file "FITS_templatesIIIfits" [ok] PCOUNT = 0 / number of parameters GCOUNT = 1 / number of groups EXTNAME = 'IFU1ERR' / Extension name HDUCLASS= 'ESO' / Identification of the data format HDUDOC = 'DICD' / Document describing the data format HDUVERS = 'DICD version 6' / Specific version of the document Page 8 of 9

HDUCLAS1= 'IMAGE ' / Image data format HDUCLAS2= 'ERROR ' / Identification as science extension HDUCLAS3= 'MSE ' / Error type: Mean Squared Error SCIDATA = 'IFU1SCI' / Name of its data extension QUALDATA= 'IFU1DQ ' / Name of its data quality extension / World coordinate system start: CRPIX1 = 50 / Reference pixel CRPIX2 = 50 / Reference pixel In both, the data extension and the error extension, the extension 'IFU1DQ' is identified as the associated data quality extension, which has the keywords: --> imhead FITS_templatesIIIfits[IFU1DQ] lo+ FITS_templatesIIIfits[IFU1DQ][30,30,30][short]: No bad pixels, min=0, max=0 (old) Line storage mode, physdim [30,30,30], length of user area 1458 su Pixel file "FITS_templatesIIIfits" [ok] PCOUNT = 0 / number of parameters GCOUNT = 1 / number of groups EXTNAME = 'IFU1DQ ' / Extension name HDUCLASS= 'ESO' / Identification of the data format HDUDOC = 'DICD' / Document describing the data format HDUVERS = 'DICD version 6' / Specific version of the document HDUCLAS1= 'IMAGE ' / Image data format HDUCLAS2= 'QUALITY ' / Identification as science extension HDUCLAS3= 'FLAG16BIT' / Data quality type QUALMASK= 16383 / Mask number to identify bad pixels SCIDATA = 'IFU1SCI' / Name of its data extension ERRDATA = 'IFU1ERR' / Name of its error extension / World coordinate system start: CRPIX1 = 50 / Reference pixel CRPIX2 = 50 / Reference pixel Page 9 of 9