Comments (2)
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.
>>> 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)
- Manually rescale RBF interpolation for Teff HOT 1
- Moving the cooling model interpolator
- Class name changes for the readers
- WDfitter inherits AtmosphereModelReader
- WDLF inherits CoolingModelReader
- Wrong IFMR relations in code HOT 1
- MS lifetime for different metallicity HOT 1
- README.md example photometric fitting plot is out of date.
- wrong extinction labelling
- Running on scipy 1.8.1 ok but not scipy 1.9 HOT 3
- uncertainty estimation seems wrong HOT 1
- Consider using a fraction of the total extinction as a function of distance HOT 1
- density not stored in object if CSV output fails HOT 1
- Density returned is sometimes negative HOT 1
- fitting Mbol & WD mass HOT 4
- Check units in the cooling interpolator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdphottools.