spacetelescope/specviz

specviz file loader

stscijgbot opened this issue · 6 comments

Issue JDA-33 was created by Camilla Pacifici:

  • Data used for testing

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

  • Data location (if possible)

Attached here.

  • Methods used for testing (e.g., commands or functionalities that were tested)

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

  • Traceback for error if applicable

See screenshots attached.

  • Description of the problem

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".

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.

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

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)".

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.

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

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.