BDNYC / sedkit

Spectral energy distribution construction and analysis tools
MIT License
17 stars 13 forks source link

Problem adding Optical Spectra #81

Closed SherelynA closed 2 years ago

SherelynA commented 2 years ago

Currently I am working on the object SIMP J013656.5+093347.3 and everything works great until I try to add the optical spectrum. I am using this data url 'https://bdnyc.s3.amazonaws.com/xshooter/IPMS0136_total.fits' and the units are nm and erg /s / cm**2 / nm. The data is from this paper:http://adsabs.net/abs/2016MNRAS.455.1341M. When trying to add the spectrum, it gives this error of cannot convert float infinity to integer and then when trying to run s.results, this is the error message I get. Screen Shot 2022-09-27 at 11 40 36 AM This is an error that I have seen in all the sed's where I try to add an optical spectrum. @hover2pi

SherelynA commented 2 years ago

@hover2pi converting the wavelength array from nanometers to microns solves this problem, so @Kelle thinks that this is a bug in sedkit.