BEAST Miscellaneous Tools

The following miscellaneous tools are useful for handling data formats and

Convert hdf5 to FITS

Although the BEAST can read data in various formats, it may be of interest to convert a photometric catalog from hdf5 to FITS format. Below, we show an example for to use the BEAST tool convert_hdf5_to_fits to convert a catalog from hdf5 to FITS and save it to disk:

>>> from beast.tools import convert_hdf5_to_fits 
>>>
>>> # Specify the HDF5 file name
>>> phot_file = 'my_awesome_catalog.hdf5' 
>>>
>>> # Convert the HDF5 file to a FITS file (yay!) and save it to disk
>>> convert_hdf5_to_fits.st_file(file_name = phot_file)