In this section we will describe how to quickly run an *Exo-REM* simulation. We will use the `inputs/example.nml` coming with all [distributed versions](https://gitlab.obspm.fr/dblain/exorem/-/tree/master/dist) of *Exo-REM* as a starting point.
In this section we will describe how to quickly run an *Exo-REM* simulation. We will use the `inputs/example.nml` coming with all [distributed versions](https://gitlab.obspm.fr/dblain/exorem/-/tree/master/dist) of *Exo-REM* as a starting point.
Summary:
-[Prerequisites](#prerequisites)
-[First run](#first-run)
-[Setup](#setup)
-[Running](#running)
-[Plotting](#plotting)
-[More precision](#more-precision)
- Setup
- Running
- Plotting
-[Better figures](#better-figures)
# Prerequisites
# Prerequisites
If you downloaded the archive in the [_dist_](https://gitlab.obspm.fr/dblain/exorem/-/tree/master/dist) directory, you should have everything you need, except a stellar spectrum (see point 4 below). Otherwise, check the following:
If you downloaded the archive in the [_dist_](https://gitlab.obspm.fr/dblain/exorem/-/tree/master/dist) directory, you should have everything you need, except a stellar spectrum (see point 4 below). Otherwise, check the following:
...
@@ -10,6 +22,11 @@ If you downloaded the archive in the [_dist_](https://gitlab.obspm.fr/dblain/exo
...
@@ -10,6 +22,11 @@ If you downloaded the archive in the [_dist_](https://gitlab.obspm.fr/dblain/exo
5. Verify if all the condensates and gases thermochemical tables are in the _data/thermochemical_tables_ directory. If you want to add more species to the chemical model, respect the same format and use "speciesName.tct.dat" as file name (e.g. "H2O.tct.dat").
5. Verify if all the condensates and gases thermochemical tables are in the _data/thermochemical_tables_ directory. If you want to add more species to the chemical model, respect the same format and use "speciesName.tct.dat" as file name (e.g. "H2O.tct.dat").
6. Put a temperature profile as a priori inside the _inputs/atmospheres/temperature_profiles_ directory. The *Exo-REM* data format must be respected. You should have received an example of such a file with your *Exo-REM* distribution.
6. Put a temperature profile as a priori inside the _inputs/atmospheres/temperature_profiles_ directory. The *Exo-REM* data format must be respected. You should have received an example of such a file with your *Exo-REM* distribution.
To plot the figures using the provided plot functions, you will need Python3, and the following Python packages:
- numpy
- scipy
- matplotlib
# First run
# First run
## Setup
## Setup
In this example, we will simulate the atmosphere of CoRoT-4 b, a well studied planet. A good source of planetary information can be found [here](https://exoplanetarchive.ipac.caltech.edu/). We will use the parameters from Moutou et al. 2008.
In this example, we will simulate the atmosphere of CoRoT-4 b, a well studied planet. A good source of planetary information can be found [here](https://exoplanetarchive.ipac.caltech.edu/). We will use the parameters from Moutou et al. 2008.
...
@@ -104,7 +121,7 @@ The transmission spectrum should look like this:
...
@@ -104,7 +121,7 @@ The transmission spectrum should look like this:
This is nice, but the resolution is quite low.
This is nice, but the resolution is quite low.
# More precision !
# More precision
This time, our goal will be to have more precise results. We will use our calculated temperature profile as input, and a higher resolution power. We will also add a stellar spectrum, and use an advanced mode to calculate the eddy diffusion coefficient. To keep it simple, we will consider only KCl and Na2S clouds.
This time, our goal will be to have more precise results. We will use our calculated temperature profile as input, and a higher resolution power. We will also add a stellar spectrum, and use an advanced mode to calculate the eddy diffusion coefficient. To keep it simple, we will consider only KCl and Na2S clouds.
## Setup
## Setup
...
@@ -190,14 +207,18 @@ And the transmission spectrum should look like this:
...
@@ -190,14 +207,18 @@ And the transmission spectrum should look like this:
Not happy with the figures you get ? What if for example you wanted to see the contributions of everything but clouds between 0.5 and 1.5 µm ? To do that, open inside the *Exo-REM* main directory a python console:
Not happy with the figures you get ? What if for example you wanted to see the contributions of everything but clouds between 0.5 and 1.5 µm ?
1. To do that, open inside the *Exo-REM* main directory a python console:
```bash
```bash
python
python
```
```
2. Import the *Exo-REM* plot functions:
Then, simply do:
```python
fromsrc.python.plot_figuresimport*
```
3. Then, simply do:
```python
```python
fromsrc.python.plot_figuresimport*# import everything from plot_figures