When I run the driver for longslit reduction of standard star frames, Wavelength.apply_lambda_simple() failed with the following error message.
Traceback (most recent call last):
File "Longslit_driver.py", line 67, in <module>
Wavelength.apply_lambda_simple(maskname, band, obsfiles3, waveops, longslit=longslit3, smooth=True)
File "/Users/monodera/work/mosfire_drp_20140610/MOSFIRE/Wavelength.py", line 929, in apply_lambda_simple
ll_fid = np.arange(hpp[0], hpp[1], dlam)
ValueError: Maximum allowed size exceeded
I guess this is because my longslit dictionary is the following and does not include y=1024 in 'yrange':
longslit3 = {'yrange': [550, 980], 'row_position': 800},
but MOSFIRE/Wavelength.py requires y=1024 to be included in longslit['yrange']:
https://code.google.com/p/mosfire/source/browse/MOSFIRE/Wavelength.py#777
https://code.google.com/p/mosfire/source/browse/MOSFIRE/Wavelength.py#926
When y=1024 is not included in longslit['yrange'], this 'dlam' becomes zero, which, I think, causes 'np.arange(hpp[0], hpp[1], dlam)' crash.
In the frame I'm reducing, y=1024 has problems, so I want to cut the frame below it.
Cheers,
Masato