Code Monkey home page Code Monkey logo

pymoog's Introduction

pymoog's People

Contributors

kruthi24 avatar mingjiejian avatar pranav-satheesh avatar sselgueta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pymoog's Issues

changing individual abundances in synth command

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?

Add other drivers

This will be a long issue... There are several drivers in MOOG, and finishing it will be really helpful for everyone.

Dependency corruption: pandas

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.

First attempt to run pymoog

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.

Readthedoc markdown

We can use 'myst_parser', 'sphinx.ext.mathjax' extension to use markdown syntax in sphinx.

Complete the line list

Now the line list is only for optical and only for H-Ca and Fe. I should complete it.

Changing the isotopic ratios

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

Raise error when the line list is empty

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.

Control the input of pymoog

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.

Renew VLAD linelist

VALD linelist now support line wavelength with 4 decimals points, and I need to renew the line list in pymoog.

rundir -> rundirX with rundirX.lock

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:

  • Check which lock presents and find the smallest available rundir (e.g., if rundir2.lock and rundir3.lock presents, then the new run will use rundir1)
    • If the number of smallest available rundir is larger than a threshold (I would set 10), then raise an error and stop the code.
  • Create the folder lock
  • Create corredponding folder and/or remove all the contents in that folder
  • Prepare files and run MOOG
    • If there is error in MOOG, then it will be stopped and the folder lock remains.
  • Read the output
  • Copy the rundir folder to ~/.pymoog/record/
  • Remove the folder lock

Extra columns in the models

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.

The metallicity of Kurucz model

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.