-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ahuang11/main
- Loading branch information
Showing
6 changed files
with
113 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
**xNRL** helps you read NRL NWP output into xarray Datasets nested within Pandas DataFrames. | ||
|
||
# Install | ||
xNRL requires numpy, pandas, and xarray. | ||
|
||
## Clone and install with pip | ||
```bash | ||
git clone https://github.com/U-S-NRL-Marine-Meteorology-Division/xnrl.git | ||
cd xnrl | ||
pip install -e . | ||
``` | ||
> The `-e` makes the code editable. | ||
> | ||
> You can update the code with | ||
> ```bash | ||
> cd xnrl | ||
> git pull origin main | ||
> ``` | ||
## Install with Conda | ||
Copy the [`environment_xnrl.yml`](./environment_xnrl.yml) file and create the Conda environment. | ||
```bash | ||
conda env create -f environment_xnrl.yml | ||
``` | ||
> Note: This only installs the current main branch and does not let you edit the code. You can update xnrl (and all packages in the environment) with | ||
> ``` | ||
> conda env update -f environment_xnrl.yml | ||
>``` | ||
# Examples | ||
```python | ||
import xnrl | ||
# Load COAMPS flatfiles into an xarray Dataset | ||
fp = '<path>/*pre*00120*' | ||
ds = xnrl.open_dataset(fp, model='COAMPS') | ||
``` |
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 @@ | ||
::: xnrl.main |
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 @@ | ||
::: xnrl.util |
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,34 @@ | ||
site_name: xnrl | ||
site_url: https://U-S-NRL-Marine-Meteorology-Division.github.io/xnrl | ||
repo_url: https://github.com/U-S-NRL-Marine-Meteorology-Division/xnrl | ||
edit_uri: /edit/main/docs/ | ||
markdown_extensions: | ||
- admonition | ||
- attr_list | ||
- codehilite | ||
- md_in_html | ||
- meta | ||
- pymdownx.highlight: | ||
use_pygments: true | ||
- pymdownx.superfences | ||
- pymdownx.tabbed | ||
plugins: | ||
- search | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
rendering: | ||
show_root_heading: True | ||
show_object_full_path: False | ||
show_category_heading: False | ||
show_bases: False | ||
show_signature: False | ||
heading_level: 1 | ||
watch: | ||
- xnrl/ | ||
- README.md | ||
|
||
nav: | ||
- Home: index.md | ||
- Main: main.md | ||
- Util: util.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,11 @@ | ||
pytest | ||
black | ||
flake8 | ||
mkdocs | ||
mkdocs-material | ||
mkdocstrings[python] | ||
isort | ||
pre-commit | ||
mkdocs-gen-files | ||
interrogate | ||
coverage |
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