Comments (7)
Done! The sampling can be obtained with the get_sampling()
method from ReadModel
.
from species.
Excellent! Thank you very much. While marking this as closed, I would just suggest in the species.util.data_util.convert_units
docstring:
…
"Jy", "MJy"). One can use "um" or "µm" interchangeably, and similarly "AA", "Å", "A", or "angstrom".
from species.
Hi Gabriel! I think this has all been implemented in the meanwhile? For 10, you can use the new units
parameter in plot_spectrum
. For 9, this will get adjusted I think when setting the ylim
parameter. I have added the spec_res
attribute to the ModelBox
in the latest commit f1f6807. I hope this helps!
from species.
Hello Tomas! Very nice—thanks a lot!
- I will try out 8. but if you say it is done, of course I believe you.
- Excellent for 9.! Indeed, it is necessary and sufficient to set
ylim
. I tried other options and it indeed all seems to work ✔️. - Thanks for
spec_res
. This will get saved in the database automatically I guess, yes? Will you distinguish somehow between the resolution and the sampling…? - For 10.: Thank you. Maybe a missing popular flux density unit is erg/s/cm²/Å (only …/Hz is available, which is not a trivial transformation). Also, the linguist and culture-lover in me would suggest using "AA" instead of "A" ( 🇳🇴 🇩🇰 🇸🇪), and of offering the synonyms "Å" and "µm" 🤓… Sorry but "Å" is really not pronounced the same as "A" 😄!
from species.
Thanks 😁! Sorry, last tweaks ("sigh once, give lots of users even more comfort"):
- When specifying e.g.
units=("AA","W m-2 µm-1")
, theAA
does not get converted and the-2
and-1
are not exponents in the plot. - The µ, Å, AA are not "advertised" in the docstring of
species.util.data_util.convert_units
. Maybe just addd a note at the end of the entry forunits_in
(and use "AA" by default in the documentation because it is shorter to type…) - Offer the synonyms "erg/s/cm^2/AA", etc. (with slashes) for typing convenience? It is a bit difficult to suppress the "LaTeX" reflexes and use spaces and no
^
… 🤓. But this is really a small one. Fortunately, one does not change the units too often :).
from species.
Also, sorry but when using units=("µm","erg s-1 cm-2 angstrom-1")
, there must be a factor of cm/µm=1e-4 dividing instead of multiplying in the flux density because I plot some data with "W m-2 µm-1" and get F_lambda = 1e-16 W/m²/µm but supposedly F_lambda = 1e-9 erg/s/cm²/Å instead of 1e-17 erg/s/cm²/Å; the difference is 1e-8 = (1e-4)² 😄… a classic.
from species.
Ah! My bad, I thought the conversion from cm-2 and A-1 cancelled out. This has been fixed now 👍, so we can close this issue.
from species.
Related Issues (20)
- 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
- 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
- Upper limits on photometric measurements? HOT 1
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.