Creating datasets

The PyCASSO import tools

The import process is similar whether you want to use FITS or HDF5 files. Keep in mind that most of the effort will be towards the HDF5 storage, and the FITS support may be dropped in the future.

The import tools are h5pycassoImport.py and pycassoImport.py to import data to HDF5 and FITS, respectively. These scripts are located in the tools directory. Here is an example of a h5pycassoImport.py run:

$ h5pycassoImport.py --synthesis-dir=./sl_out/ --spectra-dir=./sl_in/ \
> --base=Bgsd01 --base-description='Granada 01' \
> --qbick-run=q027 --qbick-description='COMBO convex voronoi zones ver. 0.2.7' \
> --run-id=eBR_v20_q027.d13c512.ps3b.k1.mC.CCM.Bgsd01.v01 \
> --run-description='q027/Bgsd01 with default parameters' \
> --zone-file=K0001_eBR_v20_q035.d13c512-planes.fits \
> --database=qalifa-synthesis.h5 K0001

The arguments are the following:

  • --synthesis-dir: Path to the synthesis output directory.
  • --spectra-dir: Path to the synthesis input directory.
  • --base: Identifier of the base used in the synthesis.
  • --base-description: Description of the base used in the synthesis.
  • --qbick-run: Identifier of the qbick run used in the synthesis.
  • --qbick-description: Description of the qbick run used in the synthesis.
  • --run-id: Identifier of the whole synthesis run.
  • --run-description: Description of the whole synthesis run.
  • --zone-file: Path to the FITS file containing the qbick planes.
  • --database: Path to the HDF5 database file.
  • CALIFAID: Califa name of the galaxy.

It is recommended to use a single database for everything.

The arguments for the FITS version are similar. For a complete list, run h5pycassoImport.py --help or pycassoImport.py --help.

For more information on the database structure, see PyCASSO data model.

Table Of Contents

Previous topic

Getting started

Next topic

Usage

This Page