Samreay / Marz

The Marz redshifting program is intended for use in cosmology surveys, specifically for the OzDES team.
17 stars 18 forks source link

Problem in processing fits file #149

Closed steveschulze closed 6 years ago

steveschulze commented 6 years ago

Hi,

I wrote a 1D spectrum to a fits file using python. The spectrum is properly displayed on the Marz website but no matching is performed. The command-line tool (version 1.3.8) processes the fits file but stalls when it is supposed to write out the results. The output from the debugger and the fits file are attached.

Do you have an idea why not matching is performed?

Cheers,

Steve

cont_1_debug.log cont_1.fits.zip

Samreay commented 6 years ago

Hi Steve,

Am currently traveling so haven't looked at the fits file, but managed to open the log on my phone. I suspect the issue is that Marz requires an input variance and you have not set one. To essentially ignore the variance, pass in an array of one's the same shape as your flux under the VARIANCE extension name.

Let me know if that fixes the issue.

Cheers

On 5 Dec. 2017 10:15 pm, "steveschulze" notifications@github.com wrote:

Hi,

I wrote a 1D spectrum to a fits file using python. The spectrum is properly displayed on the Marz website but no matching is performed. The command-line tool (version 1.3.8) processes the fits file but stalls when it is supposed to write out the results. The output from the debugger and the fits file are attached.

Do you have an idea why not matching is performed?

Cheers,

Steve

cont_1_debug.log https://github.com/Samreay/Marz/files/1530886/cont_1_debug.log cont_1.fits.zip https://github.com/Samreay/Marz/files/1530893/cont_1.fits.zip

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Samreay/Marz/issues/149, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb5WYxS7gzsdOSJYObVv5_gLA5vVVroks5s9SXBgaJpZM4Q2H9h .

steveschulze commented 6 years ago

Hi Sam,

Thanks. Now it works like a charm!

Cheers,

Steve

Samreay commented 6 years ago

Glad it was a simple fix!

On 5 Dec. 2017 11:10 pm, "steveschulze" notifications@github.com wrote:

Hi Sam,

Thanks. Now it works like a charm!

Cheers,

Steve

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Samreay/Marz/issues/149#issuecomment-349285978, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb5Wf7lyODj3x4xB13o-Ye5wJncaqdgks5s9TKegaJpZM4Q2H9h .