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

Args:
  • all_files (list) – Complete list of files

  • refs_list (list) – List of references of these files

  • instrument (str) – Instrument name to parse on

Returns:

List of files and their references matching the input instrument

Return type:

list, list

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

frb.builds.build_specdb.main(inflg='all')[source]

Note

Optional dependency: specdb is required to build spectroscopic databases.