-
Notifications
You must be signed in to change notification settings - Fork 125
Modsdocs1 #2044
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
base: develop
Are you sure you want to change the base?
Modsdocs1 #2044
Conversation
kbwestfall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These docs are great! Thanks for adding this detail. I have a few minor suggestions for your consideration. The main one is to add the doc to the list of tutorials and make sure that the docs compile without any warnings. Thanks!
| @@ -0,0 +1,589 @@ | |||
| .. include:: ../include/links.rst | |||
|
|
|||
| .. _mods_howto: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add this to the list of instrument-specific tutorials in tutorials/tutorials.rst. I.e., in that list add: LBT MODS <mods_howto>.
Also, make sure that the docs build correctly by running make htmlonly in the doc/ directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this to the list in tutorials.rst.
doc/tutorials/mods_howto.rst
Outdated
| flux calibration, coaddition of the extracted 1D spectra and correction of telluric | ||
| absorption. | ||
|
|
||
| There are two sets of MODS spectrograph classes: (1) the original ones (mods1b, mods1r, mods2b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of, e.g., mods1b, I would use the full pypeit spectrograph names (lbt_mods1b and lbt_mods1b_proc, etc).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| The proc classes work in ADUs and not electrons (the conversion gain, which is ~2 e-/ADU, is not applied), | ||
| so snr_thresh = 10/sqrt(2) will find sources above 10-sigma. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a comment here just noting that this is what the top of the pypeit file would look like with the options discussed above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the sentence: "The box below, which shows the top of the pypeit file used to reduce the sample dataset, illustrates the use of the user-defined parameters mentioned in item 3 above."
doc/tutorials/mods_howto.rst
Outdated
| -------------------- | ||
|
|
||
| The pipeline has been run for binned spectra which have been pre-processed by modsCCDRed. | ||
| Please contact the developers if there are issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might point people specifically to the Users Slack or to submit a GitHub issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added these references/links.
doc/tutorials/mods_howto.rst
Outdated
| Wavelengths | ||
| +++++++++++ | ||
|
|
||
| To check the quality of the wavelength calibration, open the QA/MF_A.html file and view the Arc_1D_Fit_A_DETO1.html to insure that the lines have been identified and the RMS is low, ideally < 0.1 pixel, or run :ref:`pypeit_chk_wavecalib`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would point people directly to the PNG files. We have been bad about maintaining the html output files; e.g., there are many PNGs that aren't included in the html.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced the reference to the MF_A.html file with one to the appropriate PNG file.
doc/tutorials/mods_howto.rst
Outdated
|
|
||
| .. figure:: ../figures/mods/mods1b_identify.png | ||
|
|
||
| Remember, the default calibration is in vacuum wavelengths. The line lists provided on the `LBTO Sciops MODS webpages <https://scienceops.lbto.org/mods/>`__ have been converted to vacuum wavelengths for use by pypeit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might highlight this in a .. important:: box.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the following in an "important" box, trying to clarify the difference between these and the standard lists already in pypeit and that these lists are used by default for MODS reductions in pypeit. Hopefully it is clear. After-the-fact, I don't think they make much difference, but it is cleaner just to use the lines which have been identified in the arc spectra.
"Remember, the default calibration is in vacuum wavelengths. The line lists provided on the LBTO Sciops MODS webpages <https://scienceops.lbto.org/mods/>__, which contain air wavelengths for lines positively identified
in MODS comparison lamp spectra, have been regenerated from NIST in vacuum wavelengths and are part of the default instrument-specific parameters for the lbt_mods#c and lbt_mods#c_proc classes in pypeit."
doc/tutorials/mods_howto.rst
Outdated
|
|
||
| spec = specobjs.SpecObjs.from_fitsfile(spec1dfits) | ||
| plt.plot(spec[0]['BOX_WAVE'],spec[0]['BOX_COUNTS'] | ||
| plt.plot(spec[0]['OPT_WAVE'],spec[0]['OPT_COUNTS'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need a closing parenthesis on this line and the one above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed this.
debora-pe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
The modsdocs1 branch stems from pypeit/develop and adds a doc/tutorials/mods_howto.rst and associated figures in doc/figures/mods/
It walks the user through reduction of the lbt_mods1b_proc/dual_grating_longslit_qso and lbt_mods1r_proc/dual_grating_longslit_qso datasets, up to the telluric correction.
There were some questions about the flux calibration and telluric correction. The qso was observed at airmass 1.96 and the standard star at airmass 1.35, so the flux calibration is sensitive to methods used for treating extinction -- whether an extinction file is used or the extinction is inferred from a telluric model. Using UVIS and an extinction file seemed to provide the best match of the blue and red channel spectra, and good agreement with results from IRAF, but when the telluric correction is made with pypeit_tellfit, then the blue- and red-channel fluxes no longer match in the spectral region of overlap, so this step has not been added to the documentation.
There are still questions, but the basic setup and run could still be useful for MODS users.