File Database: Hsi_filedb

Each file that is written is recorded as an entry in the filedb structure. This is written into a FITS file, which is opened and read and rewritten for every ground station contact.

The database file for the level 0 data will be distributed as part of the software. This file is used by the routine HSI_FILEDB_FILENAME to find which file contains the data for a given time range.

Hessi Filedb structure, for each file

To read the filedb, call:


IDL> hsi_filedb_read, filedb, filedb_dir=filedb_dir, filename=filename


This returns the filedb structure from the file. The defaults for filedb_dir and filename are "$HSI_FILEDB_ARCHIVE" and "hsi_filedb.fits".The environmental variable "$HSI_FILEDB_ARCHIVE" is typically set to $ssw/hessi/dbase, and the file "hsi_filedb.fits" in this directory is the one created for the level 0 data. To write the filedb into a FITS file, call hsi_filedb_write, and for an ascii copy, call hsi_filedb_write_ascii.

Obtaining file names for a give input time range

If you are interested in archived HESSI data for a given time range, you can use the routine hsi_filedb_filename,


IDL> files = hsi_filedb_filename(time_range, filedb_dir=filedb_dir)


This call will return the filenames of all of the files that include data for the given time_range.

30-Nov-2001, jmm