astronomyk / PyReduce

GNU General Public License v3.0
1 stars 0 forks source link

Wavecal initial guess file - micado.npz #2

Open nadsabha opened 3 years ago

nadsabha commented 3 years ago

One of the files to be created to make PyReduce run on MICADO simulated data: 3-Wavelength calibration file: wavecal/micado.npz (numbering scheme following the https://github.com/astronomyk/PyReduce/issues/1#issue-913337583)

It is a table (numpy recarray) with initial guess for wavelength calibration as an npz file (pickled numpy recarray). From https://pyreduce-astro.readthedocs.io/en/latest/instruments.html it should be as follows: (e.g. https://github.com/astronomyk/PyReduce/blob/master/pyreduce/wavecal/uves_red_860nm_2D.npz)

"get_wavecal_filename, should return the filename to the wavelength calibration first guess. That is a npz file containing a numpy recarray called cs_lines. The recarray should have the fields:

((“wlc”, “WLC”), “>f8”), # Wavelength (before fit) ((“wll”, “WLL”), “>f8”), # Wavelength (after fit) ((“posc”, “POSC”), “>f8”), # Pixel Position (before fit) ((“posm”, “POSM”), “>f8”), # Pixel Position (after fit) ((“xfirst”, “XFIRST”), “>i2”), # first pixel of the line ((“xlast”, “XLAST”), “>i2”), # last pixel of the line ((“approx”, “APPROX”), “O”), # ??? ((“width”, “WIDTH”), “>f8”), # width of the line in pixels ((“height”, “HEIGHT”), “>f8”), # relative strength of the line ((“order”, “ORDER”), “>i2”), # echelle order the line is found in (“flag”, “?”), # flag that tells us if we should use the line or not "

The files we/I have are: (sent by Wolfgang)

i- Spectral layout folder (https://drive.google.com/drive/folders/1zBQzAZmonYXxeaQxfzc5bNrxosRMabi6?usp=sharing) with the files:

ii- Line lists folder (https://drive.google.com/drive/folders/1l9kKF2w-6gHgOdihVu7fB3mjxmUvSEut?usp=sharing) with the files:

gijsverdoeskleijn commented 3 years ago

Thanks @nadsabha. Please check and correct my summary of what we decided this morning to get wavecal/micado.npz incorporating specifics from what you write above:

@nadsabha few additional requests from me: please add hyperlinks to specorders-180626.fits. And to the uves npz file with the initial wavelength solution estimate. And to make sure I am not misunderstanding a critical thing: what does the "3-" mean in "3-Wavelength"?

nadsabha commented 3 years ago

@gijsverdoeskleijn Thanks for the detailed summary. I updated the issue with the links to the relevant MICADO folders obtained from @wkausch (copied again here):

i- Spectral layout folder (https://drive.google.com/drive/folders/1zBQzAZmonYXxeaQxfzc5bNrxosRMabi6?usp=sharing) with the files:

ii- Line lists folder (https://drive.google.com/drive/folders/1l9kKF2w-6gHgOdihVu7fB3mjxmUvSEut?usp=sharing) with the files:

The "3-" in "3-Wavelength.." refers to the numbering scheme we adopted for all the files needed to have PyReduce run on MICADO files. I had referenced the source already but now it is with a link.

gijsverdoeskleijn commented 3 years ago

@nadsabha : where are you now with completing the micado.npz file? What hurdles remain to be taken?

Can you point me to the latest version? (I only see this micado.npz version from 28 days ago in github)

nadsabha commented 3 years ago

The work is going along. The file in GitHub is not updated because I'm working on the arrays within my Jupyter Notebook. I will populate the file micado.npz later today or tomorrow morning.