FITS Header Archiving System

(FitHAS 1.3.1)



Introduction

FitHAS is an easy-to-use assistant tool for FITS header archiving, which is developed by Chinese Virtual Observatory (China-VO) team, IBM Center of Tianjin University and e-Science Application research Center, CNIC, CAS. The tool provides graphic interface and wizard guiding an archive manager or data provider to extract header information from one or more FITS files (*.fit, *.fits, *.fit.gz, *.fits.gz) and import it to a table, either an existing one or a new one created by the tool according to the header structure of given FITS files. Both local or remote database systems are supported.

Functions

System Requirements

Download

Installation Instructions

Metadata Mapping

The primary FITS header of each FITS file will be inserted into the database table as one record.

You can import headers of FITS files into an existing table or create a new one according to the header structure of the given FITS files. When create a new table, columns that have same names as their corresponding keywords in FITS header will be created. Additional two columns will be added to the table automatically by the system. One is an unique id column ("record_Id") as primary key, and the other is file path column ("path") which is relative to the user defined base directory for the FITS files.

While archiving, each "keyword - value" pair in the FITS primary header will be mapped to corresponding column. One header will not be imported if no corresponding column can be found to match a key word. If there is no corresponding key in a FITS file to a certain column, the column will simply remain null.

Duplication Strategy

Three strategies to avoid duplicate records in a database are supported:

File Name Filtering

When you choose several files or a directory to archive, it's useful to use a file name filter to specify which file(s) should be archived. That is, any file that doesn't satisfy the filter pattern, even if it's in the directory that you selected, will be excluded and will not be imported into the database.

The filter pattern uses regular expression. All the regular expressions used in Java language are supported here. Some examples are listed below:

character explanation
. Any character (may or may not match line terminators)
\d A digit: [0-9]
\D A non-digit: [^0-9]
\s A whitespace character: [ \t\n\x0B\f\r]
\S A non-whitespace character: [^\s]
\w A word character: [a-zA-Z_0-9]
\W A non-word character: [^\w]
X? X, once or not at all
X* X, zero or more times
X+ X, one or more times
X{n} X, exactly n times
X{n,} X, at least n times
X{n,m} X,at least n but not more than m times
XY X followed by Y
X|Y Either X or Y
(X) X, as a capturing group

Known Problems and Limitations


Developers of the tool includes Ms. Wen LI, Ms. Zhen XU, Dr. Chenzhou CUI, Mr. Ce YU and Mr. Jianjun YU. Suggestions and comments are sincerely welcome, please send to Chenzhou Cui

Last Updated on Dec. 12, 2007. 

© 2007, China-VO