astronomyk / pyreduce Goto Github PK
View Code? Open in Web Editor NEWThis project forked from awehrhahn/pyreduce
License: GNU General Public License v3.0
This project forked from awehrhahn/pyreduce
License: GNU General Public License v3.0
Dear all,
as promised during the meeting this morning, here are the links to the Github and Google Drive repositories:
REQUEST: Please tell me your github username so that I can add you as a collaborator to the github repo. (@hugo, I know yours already)
Raw MICADO data from Wolgang (Google Drive):
https://drive.google.com/drive/folders/1s27bdRiBYmMWMIkjC1w9k9OaWD2mleb2?usp=sharing
@wolfgang and Nadeen, please add/delete/update the data in here as you see fit
Github fork of PyReduce
https://github.com/astronomyk/PyReduce
To get the repo, simply clone it in the directory of choice on your local machine with
$ git clone https://github.com/astronomyk/PyReduce.git
The MICADO related files are found in the MICADO_info directory. These include:
Work plan
Just to reiterate what was mentioned during the telecon, the highest priority item is the wavelength calibration initial guess (micado.npz). Everything else can(?) be "fudged" to get PyReduce up and running.
I've added the Piskunov papers to the github repo, as these will surely be needed to work out what the data and format of the NPZ file should be.
Pyreduce Documentation
Just FYI, all the pyreduce documentation is still contained in the Github repo, so you need not constantly refer to the online docs.
The doc page most relevant to us is the docs/instruments.rst page, as this contains the description of what columns need to be included in the wavecal (.npz) file
Fingers crossed this doesn't prove too difficult to implement.
Best regards, and best of luck to us all!
Kieran
We had a first look at micado.json. To make progress we need your input:
Cheers, @hugobuddel and Gijs
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 #1 (comment))
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:
This issue is to discuss "[Hugo, Kieran?] A. Subclassing Instrument for MICADO (micado.py)" as described in parent issue #1.
We need a micado.py
to place in https://github.com/astronomyk/PyReduce/tree/master/pyreduce/instruments . The draft for this file is https://github.com/astronomyk/PyReduce/blob/master/MICADO_info/micado.py
The main thing micado.py
needs to do is to convert header values that cannot be mapped one-to-one. We can do that as soon as we have mapped all the header keywords that can be mapped directly. An initial draft for these keywords are in https://github.com/astronomyk/PyReduce/blob/master/MICADO_info/micado.json and needs to be placed in the above directory as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.