SIMPLE-AstroDB / SIMPLE-db

BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

Problem with Spectra from Manja16 Ingest #289

Closed SherelynA closed 2 years ago

SherelynA commented 2 years ago

I have been trying to add a spectrum from the Manja16 ingest for the object SIMP J0136+09 to an sed however sedwithsimple is unable to parse the spectrum: https://bdnyc.s3.amazonaws.com/xshooter/IPMS0136_total.fits. It looks like this when I used Screen Shot 2022-09-18 at 3 46 39 PM. This is the message that shows up for both the optical and nir entry. I tried to use specutils to make the file into a spectrum1D object and then just manually provide it to sed however when I try to do so, the wavelength of the object is just [1.,2.,3.] Angstroms as shown : Screen Shot 2022-09-18 at 4 09 31 PM, so when I try to add it after using s.add_spectrum(), I received a message that the length of the given wavelength and flux are not the same. Is there another way to add this spectrum?

kelle commented 2 years ago

try format = 'tabular-fits' instead of wcs1d-fits

SherelynA commented 2 years ago

I tried that too and I get a list index out of range error:

Screen Shot 2022-09-18 at 4 18 21 PM Screen Shot 2022-09-18 at 4 18 38 PM

@kelle

kelle commented 2 years ago

what about 'iraf' ?

SherelynA commented 2 years ago

I got an error with that too

kelle commented 2 years ago

In that case, I think you'll need to read in the file with fits.open and make the Spectrum1D object by hand. We can discuss at coworking tomorrow. I can make it 3-4pm and I'll be at Hunter

kelle commented 2 years ago

From looking at the paper, I think the units are nanometers and erg/cm^2/s/nm.