Comments (3)
Hi @sylacour, thanks for this first bug report :).
Do you want to use the BT-Setll or BT-NextGen models? It seems that you added BT-Settl but you are trying to read BT-NextGen? From the temperature that you chose (7000 K), you probably want to use the BT-NextGen models?
For BT-NextGen, make sure to set the teff_range
to a narrow temperature range when using add_model
, because this grid is gigantic...
Let me know if this solves the problem! I will do a test in the meanwhile. I am still working on having more diagnostic warnings implemented.
from species.
To check what the content of the database looks like, you can run:
database = species.Database()
database.list_content()
And to see which parameters are required for a particular model, e.g.:
read_model = species.ReadModel('bt-settl')
read_model.get_parameters()
Did you not get an error when adding the BT-Settl models? Because add_model
probably requires the spec_res
parameter?
from species.
After discussing offline, the problem appeared to be related to the add_model
function. The use was a bit ambiguous so I have added several diagnostic warnings and errors.
Specifically, the DRIFT-PHOENIX and petitCODE models do not require the wavel_range
and spec_res
parameters because they are already sampled on a fixed wavelength grid. For the other models, these parameters are required such that the wavelength grid is resampled (with a linear interpolation) when storing the spectra in the database.
For example, for BT-Settl:
database.add_model(model='bt-settl', wavel_range=(0.5, 10.), spec_res=1000., teff_range=(1500., 2000.))
While for petitCODE-cool-cloudy:
database.add_model(model='petitcode-cool-cloudy', wavel_range=None, spec_res=None, teff_range=None)
Or simply:
database.add_model('petitcode-cool-cloudy')
These changes were made in commit 23947fc and available in the new release (v0.1.3)
from species.
Related Issues (20)
- Upper limits on photometric measurements? HOT 1
- Adding an arbitrary offset and scaling to atmospheric models HOT 16
- Adding priors to corner plot output in plot_posterior HOT 12
- Tutorial "Fitting data with a grid of model spectra" (and a few other pages): small things HOT 5
- database overview: list_models() and verbosity control? HOT 4
- Database problem: OSError: Unable to open file (file is already open for read-only) HOT 4
- Making unpacking/storing of atmospheric models more memory-efficient HOT 10
- Adding dynesty support (especially to retrievals) HOT 8
- Various small things HOT 7
- Fitting with nested sampling (UltraNest or MultiNest) HOT 4
- Enhancing plot_spectrum a bit HOT 21
- Running multinest or ultranest in parallel? HOT 11
- Higher-order interpolation? HOT 3
- Retrieval with radial velocity / rotational broadening vsini HOT 2
- Installation error: No matching distribution found for matplotlib~=3.8.0 HOT 3
- Using wavel_range with database.add_model() HOT 5
- wavelength / spectral spacing for exo-rem-highres grid HOT 9
- pypi package version HOT 1
- Different fsed for cloud species in retrieval HOT 4
- sonora elf-owl as successor to bobcat and cholla HOT 18
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 species.