Skip to content
juansebastianl edited this page Apr 18, 2018 · 3 revisions

Welcome to the astroML_neuralnet_cleaning_extension wiki!

Documentation

Below are the functions provided by this package

getSpectrumData()

gets and caches fetch_sdss_sspp

input: none

output: pandas DataFrame with all of the sspp data

plotSampleSpectra(sample_star_params)

Plots the spectra of a sample of stars,

input: a DataFrame of values from fetch_sdss_sspp

output: no return, saves plot to ./plots

returnSampleSpectra(sample_star_params)

Fetches the spectra from fetch_sdss_spectrum for the given stars

input: a DataFrame of values from fetch_sdss_sspp

output: a list of the form

              [ (StarIndex (matching that of the index of the given star in sample_spectra),
                  [(wavelength, magnitude)]) ]

returnSpectraBins(sample_spectra_data, bin_number)

Takes the output from returnSampleSpectra and averages it by bins and returns the averages, meant as training data

input: output of returnSampleSpectra, int of the number of bins wanted

output: a list of bins (lower bounds for binds), the size of each bin

binData(sample_spectra_data, bins, size)

Takes the data from returnSampleSpectra and bins it according to returnSpectraBins

input: output of returnSampleSpectra, the output of returnSpectraBins

output: a list of the form

            [(starIndex, [average magnitude for each bin])]