Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver.py Failing at Wavelength Fitting for the Entire Slit #82

Closed
askoch785 opened this issue Nov 3, 2017 · 6 comments
Closed

Driver.py Failing at Wavelength Fitting for the Entire Slit #82

askoch785 opened this issue Nov 3, 2017 · 6 comments

Comments

@askoch785
Copy link

Hello,

I am trying to reduce a data set and the Driver.py file at the "Wavelength Fitting for the Entire Slit." I am receiving the following message:

Traceback (most recent call last):
File "Driver.py", line 36, in
Wavelength.fit_lambda(maskname, band, obsfiles, obsfiles,waveops)
File "/media/alex/easystore/anaconda2/envs/mosfire_drp/lib/python2.7/site-packages/MOSFIRE-1.0.dev0-py2.7.egg/MOSFIRE/Wavelength.py", line 309, in fit_lambda
guessnames = IO.list_file_to_strings(wavenames)
File "/media/alex/easystore/anaconda2/envs/mosfire_drp/lib/python2.7/site-packages/MOSFIRE-1.0.dev0-py2.7.egg/MOSFIRE/IO.py", line 346, in list_file_to_strings
inputs = np.loadtxt(fname, dtype= [("f", "S100")])
File "/media/alex/easystore/anaconda2/envs/mosfire_drp/lib/python2.7/site-packages/numpy/lib/npyio.py", line 927, in loadtxt
% line_num)
ValueError: Wrong number of columns at line 2

Thank you!

@lucarizzi
Copy link

What night are you trying to reduce?
Which object/filter?
Can we see the driver file and all the file lists that are in your current directory (Dark, Flat, ...) ?

Looks a lot like the DRP is trying to load a list of files and it finds it empty.

@askoch785
Copy link
Author

We are trying to reduce the MOSFIRE Mask7 data from 20170930 in the H band. I have attached the Driver file (saved as a .txt file for attachment):

Driver.txt

The Handle step created the following files:

Aborted.txt
Ar.txt
Flat.txt
mosfire_drp.log
Ne.txt
Offset_1.2.txt
Offset_1.5.txt
Offset_-1.2.txt
Offset_-1.5.txt

After running the DRP up to the error, the following files were also created:

barset.npy
combflat_2d_H.fits
lambda_center_coeffs_wave_stack_H_m170930_0011.fits.gz-0052.fits.gz.npy
pixelflat_2d_H.fits
slit-edges_H.npy
slit-edges_H.reg
wave_stack_H_m170930_0011.fits.gz-0052.fits.gz.npy

I hope this helps. Please let me know if I can provide any more info.

Thank you!

@lucarizzi
Copy link

I think that your problem is the use of .gz files. Can you try to gunzip all your files and re-run mospy AutoDriver?

The line:
Wavelength_file = 'lambda_solution_wave_stack_H_m170930_0011.fits.gz-0052.fits.gz.fits'

Should read:
Wavelength_file = 'lambda_solution_wave_stack_H_m170930_0011-0052.fits'

Luca

@askoch785
Copy link
Author

I used gunzip to extract all of the files and it worked!

Thank you for the assistance!

  • askoch785

@joshwalawender
Copy link
Contributor

Note this is the same as #58 we should try to address this.

@lucarizzi
Copy link

lucarizzi commented Nov 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants