The website of this page is: https://mingjiejian.github.io/
mingjiejian / pymoog Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for MOOG
License: MIT License
Python wrapper for MOOG
License: MIT License
The website of this page is: https://mingjiejian.github.io/
Now
Introduce the large file system used in 4MOST, etc to pymoog to deal with the atmosphere and line list.
Hello,
I was trying to perform abundance studies where I am required to obtain individual abundances but I was not able to find a way where i can change abundance one element at a time. Can it be done using pymoog?
molecular equilibrium in the models are still not considered. We need to test what the difference it create and add the option on this.
This will be a long issue... There are several drivers in MOOG, and finishing it will be really helpful for everyone.
In setup.py, pandas was used while it is in the dependence list of pymoog. I have pandas and numpy installed before I install pymoog, bu this may not be the case for a fresh install.
Following the installation instructions, I get the following error in my first attempt to run the example:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/benamis/.pymoog/files//pymoog_lf/model/marcs/st/p/grid_points.csv'
I will appreciate help.
Thanks,
S.
We can use 'myst_parser', 'sphinx.ext.mathjax' extension to use markdown syntax in sphinx.
Now the line list is only for optical and only for H-Ca and Fe. I should complete it.
Hey,
I wanted to know if there is way to change the isotopic ratios for the synth command. I went through the source file but I could not come across any command that can do this along with the abundance change.
Regards,
Nagaraj
For now only MOOG will complain (in different ways depending on the input) when an empty line list is provided. I should add a check for the length of linelist and raise an error when it is zero.
There is nothing in https://pymoog.readthedocs.io/en/latest/, though the html pages work well in my computer. The reason is that there is no gfortran in the remote server (refer to https://readthedocs.org/projects/pymoog/builds/11337771/?).We need to fix this.
Embed gfortran installation into setup.py
del_wav in synth is fixed to 0.0 since it is hardcoded in the wrapper.
What should the program react if the input is not in good format or not in th grid point?
E.g., Teff='ffff', Teff=4560.
VALD linelist now support line wavelength with 4 decimals points, and I need to renew the line list in pymoog.
Now all the MOOG running is located in ~/.pymoog/rundir, which make it impossible to run two MOOG in the same time since the seond running will remove all the files for the first run in that folder.
Inspired by Telfit (https://github.com/kgullikson88/Telluric-Fitter), it is better to have multiple rundir folders (e.g., rundir1, rundir2, rundi3, ...) when necessary and use a plain text file rundir1.lock to lock the corresponding folder to avoid conflict.
However this change will make it harder to check the input and output for MOOG after the program is done: the users do not know which rundir they should check and the lock will be remove once it is finished.
I am thinking of copying the whole folder into a new place (maybe ~/.pymoog/record/) and rename it using the driver name and time (e.g., abfind_20201203_105403/) when a new keyword is set (e.g., record=True).
Detail process:
To accelerate line list I/O.
Public it in pip. Tutorial can be found in https://packaging.python.org/tutorials/packaging-projects/.
For the Kurucz format model, MOOG only use the first five columns. Need to test if it is save to remove the extra columns. Now two extra columns is attached in the model file.
We can try to interpolate the model to cover the non-grid point location in the stellar parameter place. I don't have a good idea on the format but we can start from linear.
We should also try to find better models - the initial Kurucz one may be outdated. Can start from http://adsabs.harvard.edu/abs/2012AJ....144..120M, also MARCS.
Follow https://github.com/sczesla/PyAstronomy/blob/master/src/pyaC/pyaPermanent/pyaConfig.py and give the option for installing pymoog somethere else.
It seems that Kurucz model use the metallicity from Asplund (2005?), but now we have a better result in Asplund (2009). A conversion to A09 is needed.
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.