spacetelescope / specviz

An interactive astronomical 1D spectra analysis tool.
http://specviz.readthedocs.io
BSD 3-Clause "New" or "Revised" License
43 stars 31 forks source link

specviz file loader #676

Closed stscijgbot closed 5 years ago

stscijgbot commented 5 years ago

Issue JDA-33 was created by Camilla Pacifici:

A 1D spectrum in ascii format with a column for wavelength and one for the flux.

Attached here.

Open specviz from terminal and use both "load data" and "loader wizard".

See screenshots attached.

I tried to load a 1D spectrum in ascii format with the first line as header (both with and without # to comment the line). Specviz returns the message "Could not identify columns containing the wavelength, frequency or energy.". I tried the wizard and I cannot choose the columns. When I close the wizard, it crashes with "Abort trap: 6".

stscijgbot commented 5 years ago

Comment by Ben Sunnquist: I also failed to load an ascii table. I was at least able to preview it correctly in the Loader Wizard, but when I tried to "save to .py" it closed with the exact same error message.

stscijgbot commented 5 years ago

Comment by Alicia Canipe: GitHub issue manually created until linking is set up: [https://github.com/spacetelescope/specviz/issues/672]

thriveth commented 5 years ago

I experience this problem too, or at least very similar. I have an ascii file, create aloader with the loader wizard. It previews fine in the loader wizard, but when I then try to use the loader wizard to load the data, it fails with the somewhat tautological error message "Error loading data set. Given file can not be processed as specified file format (MyLoader)".

chrisfrohmaier commented 5 years ago

I can report the same problem as above. My ascii file is a simple 2 column file, space delimited, first column wavelength, second column flux. No column headers. The file previews fine in the Loader Wizard.

nmearl commented 5 years ago

@thriveth / @chrisfrohmaier, would you mind sharing your input file that fails to be read (or a similar one that fails in the same way)?

chrisfrohmaier commented 5 years ago

Sure, Github doesn't allow for .asci files to be uploaded, so here is a dropbox link: https://www.dropbox.com/s/18jzdx7d815h0ib/tASASSN-15uq_20160102_Gr13_Free_slit1.0_1_f.asci?dl=0 This is a standard output file for a PyRAF routine I, and others in my collaboration, run. I have hundreds of these files, and was hoping to use specviz to quickly display and manipulate a select few.