-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
277 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[](https://fwl-janus.readthedocs.io/en/latest/?badge=latest) | ||
 | ||
|
||
## JANUS (1D convective atmosphere model) | ||
|
@@ -28,25 +29,28 @@ https://proteus-code.readthedocs.io | |
|
||
### Developer installation instructions | ||
1. Download and install Socrates | ||
* `git clone [email protected]:FormingWorlds/SOCRATES.git` | ||
* `cd SOCRATES` | ||
* `./configure` | ||
* `./build-code` | ||
* `source set_rad_env` | ||
* `cd ..` | ||
```console | ||
git clone [email protected]:FormingWorlds/SOCRATES.git | ||
cd SOCRATES | ||
./configure | ||
./build-code | ||
source set_rad_env | ||
cd .. | ||
``` | ||
2. Download and install Janus | ||
* `git clone [email protected]:FormingWorlds/JANUS.git` | ||
* `cd JANUS` | ||
* `pip install -e .` | ||
```console | ||
git clone [email protected]:FormingWorlds/JANUS.git | ||
cd JANUS | ||
pip install -e . | ||
``` | ||
3. Download data from the [OSF repository](https://osf.io/vehxg/) | ||
* Set the environment variable FWL_DATA to define where the spectral data files will be stored | ||
* `export FWL_DATA=...` | ||
* Run the following commands within a python environment (or script) to download all basic data | ||
* `from janus.utils.data import *` | ||
* `DownloadSpectralFiles()` | ||
* `DownloadStellarSpectra()` | ||
* Run the following commands to download all basic data | ||
* `janus download spectral` | ||
* `janus download stellar` | ||
* Alternatively, you can specify which spectral data you want to download, and optionally the number of bands | ||
* `DownloadSpectralFiles("/Frostflow", 4096)` | ||
* `janus download spectral /Frostflow 4096` | ||
|
||
### Run instructions | ||
In the examples folder you can find python scripts showing typical usecases/workflows of atmosphere modelling with Janus. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{!../CODE_OF_CONDUCT.md!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{!../CONTRIBUTING.md!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This page shows you how to get started using JANUS. | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{!../README.md!} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
site_name: JANUS | ||
site_url: https://fwl-janus.readthedocs.io | ||
repo_url: https://github.com/FormingWorlds/JANUS | ||
repo_name: GitHub | ||
|
||
nav: | ||
- Home: index.md | ||
- Getting started: getting_started.md | ||
- Contributing: CONTRIBUTING.md | ||
- Code of Conduct: CODE_OF_CONDUCT.md | ||
- 🔗 Source code: https://github.com/FormingWorlds/JANUS | ||
- 🔗 Issues: https://github.com/FormingWorlds/JANUS/issues | ||
|
||
theme: | ||
name: material | ||
palette: | ||
primary: black | ||
accent: deep orange | ||
|
||
extra_css: | ||
- stylesheets/extra.css | ||
|
||
markdown_extensions: | ||
- admonition | ||
- attr_list | ||
- markdown_include.include: | ||
base_path: docs | ||
- pymdownx.extra | ||
- pymdownx.arithmatex: | ||
generic: true | ||
|
||
extra_javascript: | ||
- https://polyfill.io/v3/polyfill.min.js?features=es6 | ||
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js | ||
|
||
plugins: | ||
- search | ||
- mkdocstrings: | ||
# https://mkdocstrings.github.io/usage/ | ||
handlers: | ||
python: | ||
paths: [src] | ||
import: | ||
- https://installer.readthedocs.io/en/stable/objects.inv | ||
- https://numpy.org/doc/stable/objects.inv | ||
- https://docs.scipy.org/doc/scipy/objects.inv | ||
- https://pandas.pydata.org/docs/objects.inv | ||
- https://matplotlib.org/stable/objects.inv | ||
options: | ||
docstring_style: numpy | ||
docstring_options: | ||
ignore_init_summary: yes | ||
show_submodules: no | ||
show_source: true | ||
show_root_heading: false | ||
show_root_full_path: false | ||
docstring_section_style: list | ||
members_order: alphabetical | ||
merge_init_into_class: yes | ||
filters: ["!^_"] | ||
|
||
watch: | ||
- src/ | ||
- docs/ | ||
- README.md | ||
- CONTRIBUTING.md | ||
- CODE_OF_CONDUCT.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import click | ||
|
||
@click.group() | ||
def cli(): | ||
pass | ||
|
||
@click.group() | ||
def download(): | ||
"""Download data and dependencies""" | ||
pass | ||
|
||
@click.command() | ||
@click.option('-n', '--name', 'fname', type=str, help='Name of the spectra') | ||
@click.option('-b', '--band', 'nband', type=int, help='Number of the band', default=256) | ||
def spectral(**kwargs): | ||
"""Download spectral files | ||
By default, download all files. | ||
""" | ||
from .utils.data import DownloadSpectralFiles | ||
DownloadSpectralFiles(**kwargs) | ||
|
||
@click.command() | ||
def stellar(): | ||
"""Download stellar spectra""" | ||
from .utils.data import DownloadStellarSpectra | ||
DownloadStellarSpectra() | ||
|
||
@click.command() | ||
def socrates(): | ||
"""Download SOCRATES code""" | ||
raise NotImplementedError | ||
|
||
|
||
cli.add_command(download) | ||
download.add_command(spectral) | ||
download.add_command(stellar) | ||
download.add_command(socrates) | ||
|
||
if __name__ == '__main__': | ||
cli() |
Oops, something went wrong.