-
Notifications
You must be signed in to change notification settings - Fork 3
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
Duplicate KPNO extinction tables #8
Comments
I suspect that Jeremy added the second one while implementing the lunar model simply because he was unaware of the first one, which was added by David (Schlegel) possibly because he was unaware of the original one in data/inputs/throughput/ZenithExtinction-KPNO.fits. That one is used by bin/combine_throughputs.py while creating the data/throughput/thru-[brz].fits files; these contain a 4th (and 5th and 6th) copy of the extinction in the "extinction" column of the binary table in HDU1. There could be a reasonable argument for keeping an extinction column in the thru-[brz].fits files so that they can be one-stop-shopping, as long as that is algorithmically created by a canonical input version. And we do keep text and fits versions of some other files, so ZenithExtinction-KPNO.fits and ZenithExtinction-KPNO.dat aren't completely crazy other than being in different directories, which should be cleaned up. kpnoextinct_lunarmodel.dat appears to be the outlier. |
There are more duplicates that I realized! What is the plan for files under |
The plan is for the code to be on github, while installing the data from svn. Even though the data is a bit of a mess right now, I would suggest waiting until after the reviews to do a cleanup so that we don't break currently working code. Cleanup could include:
The last item could be done now since it is only an addition, not a rearrangement or deletion. |
I would also like to retire some or all of the 'fiducial' spectra in (the SVN) desimodel/data/spectra directory and either replace these with median templates of the appropriate spectral type or build the template on-the-fly using desisim. |
The spec_sim_ config file duplicates a subset of |
@sbailey, I'm assigning this to you so that you can assign someone to resolve this issue. Clearly the more duplicate data we can remove, the faster it will be to install and test desimodel. |
Please clean up these duplicate files, because creating multiple data models for these files is absurd! |
Adding label 'data model' note that fixing this issue will also involve changes to the data model. |
There are actually three extinction files. In addition to those mentioned above, there is inputs/throughput/ZenithExtinction-KPNO.fits. |
At least one of these files is calibrated to air, not vacuum wavelengths. @julienguy , could you add your comments on other problems? |
@julienguy , a while ago you mentioned there were other problems with these extinction tables. Could you please take a look so we can decide which one to keep? |
Why do we have two versions of the KPNO zenith extinction coefficients:
data/spectra/ZenithExtinction-KPNO.dat
covers 3500-10,000A in 0.1A steps with 7 digits of precision.data/sky/kpnoextinct_lunarmodel.dat
covers 3200-10,600A in 1.0A steps with 6 digits of precision.Both tables have identical values (except for the extra digit of precision) for the wavelengths they have in common.
@crockosi Is there a reason to prefer the lower-resolution, wider coverage file for your
lunarmodel.pro
code? I propose to use the higher-resolution file for desihub/specsim#9.The text was updated successfully, but these errors were encountered: