GithubHelp home page GithubHelp logo

vosjo / speedyfit Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 4.0 8.97 MB

Python package to fit single and binary photometric SEDs. Automatically pull archive photometry from the main surveys and use Bayesian inference to derive atmospheric parameters.

License: GNU General Public License v3.0

Python 2.56% Red 22.34% C 0.41% Jasmin 0.24% Brainfuck 5.07% GAP 10.64% Assembly 11.98% R 24.71% Verilog 6.40% PicoLisp 0.01% MATLAB 0.02% Ruby 2.25% Roff 5.14% GLSL 0.18% V 0.04% Makefile 0.14% Limbo 6.96% Yacc 0.21% HiveQL 0.01% Gnuplot 0.71%
photometry mcmc atmospheric-modelling astronomy python

speedyfit's Introduction

header

Hi there ๐Ÿ‘‹

I am a scientist with an education in Astrophysics. I am an end-to-end data scientist and worked on projects covering the entire path from problem definition, data acquisition, data reduction and cleaning, hypothesis testing, model creation and testing, and reporting on the results. Below you can find a few python packages for the aquisition and modeling of astronomical data that I have developed during my career in astronomy.

Projects

ย  ย 

speedyfit's People

Contributors

vosjo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

speedyfit's Issues

grid_description.yaml file not found

Hi, when I run "speedyfit checkgrids", it shows:

grid_description.yaml file not found or no models included in the description file.
Please add a grid_description.yaml file in the SPEEDYFIT_MODELS directory

So how to make the grid_description.yaml file? What's the format of the file? Thanks!

Poor handling of path specified by SPEEDYFIT_MODELS environment variable

It is unclear from the installation instructions that the environment variable SPEEDYFIT_MODELS must include the trailing "/" or ""

Rather than fixing the documentation, it would be better to use os.path.join in the code to join filenames and paths correctly without the user needing to worry about trailing slashes, etc.

Citation

Hi Joris, this is a great package and I've used it to model one of my systems (which agrees well with results I obtained independently). Would you consider packaging it to Zenodo or something similar so it can be cited in our paper?

Thanks!

Grid name (kurucz) not recognized!

I want to use the kurucz grid to plot my SED directly. However, when I use the function named get_table_single() with grid='kurucz', there is an error raised. It shows that grid name (Kurucz) not recognized!. I want to know how to call the kurucz grid.

grid_description.yaml file not found

I have grid_description.yaml in the corresponding directory, but after executing ''speedyfit checkgrids'', python told me that there is no grid_description.yaml file

โ€™โ€˜โ€˜
Checking which atmosphere models are available...
Checking for models in </home/ymk/miniconda3/sed_models to extracted atmosphere models>
grid_description.yaml file not found or no models included in the description file.
Please add a grid_description.yaml file in the SPEEDYFIT_MODELS directory.
โ€™โ€™โ€™

My directory contains the following files:
blackbody_discint.fits
grid_description.yaml
iblackbody_discint_lawfitzpatrick2004_Rv3.10.fits
ikurucz93_z0.0_k2odfnew_sed_lawfitzpatrick2004_Rv3.10.fits
iMunari2005_extended_lawfitzpatrick2004_Rv3.10.fits
iTMAP2012_sdOB_extended_lawfitzpatrick2004_Rv3.10.fits
kurucz93_z0.0_k2odfnew_sed.fits
Munari2005_extended.fits
TMAP2012_sdOB_extended.fits

The grid_description.yaml is just in directory. I do not know how to solve it. Please.

Thanks very much.

extending the grids?

Hi Joris,
Really nice code! The integrated grids you include are, however, quite limited in extinction, would it be possible to extend that to (much) larger values? Probably you have all the required steps already...

Install and download photometry

Hi Joris,

I use speedyfit checkgrids to check whether everything went well after I install speedyfit. However, an error is given, which is not the problem of SPEEDYFIT_MODELS environmental variable. This error is as follow:
Screenshot from 2021-08-28 16-59-32

In addition, I use command (speedyfit phot J183656.3+384701.2) to obtain the data of J183656.3+384701.2. Here, anther error is given, which is as follow:
Screenshot from 2021-08-28 16-59-50

I don't know what caused those problem. Could you give me some suggestions?

Thanks!

grid_description.yaml missing from modelgrids.tar.gz (?)

I have followed the installation instructions at https://speedyfit.readthedocs.io/en/stable/userguide/install.html

I get the following error.

$ speedyfit checkgrids 
Checking which atmosphere models are available... 
Checking for models in /home/jovyan/modelgrids 
grid_description.yaml file not found or no models included in the description file. 
Please add a grid_description.yaml file in the SPEEDYFIT_MODELS directory.

Should the file grid_description.yaml be included with modelgrids.tar.gz?

ValueError: shape mismatch in running the fit

Thank you for the really helpful and nicely accessible package. I have been trying to run example cases (e.g., HIP 4618, or something else well observed and bright, e.g., Cyg X-1). The setup step (speedyfit setup "Cyg_X-1" -grid kurucz --phot) goes well and finds relevant measurements, etc. However, the fitting step fails:

speedyfit fit Cyg_X-1_setup_kurucz.yaml
.
.
.
  File "speedyfit/interpol.py", line 79, in create_pixeltypegrid
    pixelgrid[indices] = grid_data.T
ValueError: shape mismatch: value array of shape (615,19) could not be broadcast to indexing result of shape (3,615,8,3,19)

I'm running Speedyfit 0.2.3 (installed through pip) and Numpy 1.23.5 on Python 3.10.8.

Thanks for your help.

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.