frb.builds.build_specdb
Module for building specdb files related to FRB spectra
- frb.builds.build_specdb.grab_files(all_files, refs_list, instrument)[source]
Simple method to parse a set of files for a given an instrument
- frb.builds.build_specdb.load_z_tables(path)[source]
Load up a redshift table from the Galaxy_DB
Redshift tables are those that begin with ‘z’
- Args:
path (str) – Path to the folder holding one or more redshift tables.
- Returns:
Redshift table with RA, DEC, ZEM, ..
- Return type:
astropy.table.Table
- frb.builds.build_specdb.sdss_redshifts()[source]
Enter the directory and build a redshift table based on the spectra present
Returns:
- frb.builds.build_specdb.generate_by_refs(input_refs, outfile, version)[source]
Build a specDB file according to the input references
- Args:
input_refs (list) – List of references from which to build the specDB
outfile (str) – Output filename
version (str) – Version number
Note
Optional dependency: specdb is required to build spectroscopic databases.