Giter Site home page Giter Site logo

Comments (2)

cylammarco avatar cylammarco commented on July 25, 2024

To reproduce the plots:

from WDPhotTools import plotter 
from matplotlib import pyplot as plt

plt.ion()
plotter.plot_atmosphere_model(interpolator='CT') 
plotter.plot_atmosphere_model(interpolator='RBF') 

from wdphottools.

cylammarco avatar cylammarco commented on July 25, 2024
>>> amr = atmosphere_model_reader.AtmosphereModelReader()
>>> 
>>> y_itp = amr.interp_am(interpolator='CT', independent=["logg", "Teff"])
>>> y_itp_rbf = amr.interp_am(interpolator='RBF', independent=["logg", "Teff"])
>>>
>>> y_itp(7.5, 1500)
array(18.925)
>>> y_itp_rbf(7.5, 1500)
array([18.925])
>>>
>>> y_itp(8.0, 1500)
array(19.539)
>>> y_itp_rbf(8.0, 1500)
array([19.539])
>>>
>>> y_itp(8.5, 1500)
array(20.302)
>>> y_itp_rbf(8.5, 1500)
array([20.302])
>>>
>>> y_itp(9.0, 1500)
array(21.281)
>>> y_itp_rbf(9.0, 1500)
array([21.281])
>>>
>>>
>>> y_itp(np.arange(7.5,9.5,0.5), 1500)
array([18.925, 19.539, 20.302, 21.281])
>>> y_itp_rbf(np.arange(7.5,9.5,0.5), 1500)
array([-6.54063164, -9.81829462, 13.08777422, 13.08777422])

from wdphottools.

Related Issues (17)

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.