Gaiana / nirdust

Nirdust is a python package that uses K-band (2.2 micrometers) spectra to measure the temperature of the dust heated by a type 2 Active Galactic Nuclei (AGN) accretion disk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warmup

leliel12 opened this issue · comments

  • Pasar todos ipynb y el README a una carpeta draft
  • nirdust.py <<< archivo con codigo relevante
  • Agregar antes que nada el .gitignore
  • test_nirdust.py
  • Agregar LICENCE
  • tox.ini py38, style, coverage (al 80%)
  • Readme: Que operaciones vas a querer en nirdust,
class NirdustSpectrum(Spectrum1d):
    ...

spectre = NirdustSpectrum(t=...)

spectre.predict(...)

I think that the API could do stuff like this:

from astropy.io import ascii
from nirdust import NirdustSpectrum

data = ascii.read('spectra.dat')

model = NirdustSpectrum(T=12, z=0.4, fitter='LevMarq')
model.fit(data['wave'], data['flux'], data['fluxErr'])
print(model.params['T'], model.params['z'])

fluxes = model.sample(wave=np.range(3000, 12000))