Distribution Statement A. Approved for public release. Distribution unlimited.
Author: Naval Research Laboratory, Marine Meteorology Division
This program is free software: you can redistribute it and/or modify it under the terms of the NRLMMD License included with this program. If you did not receive the license, see https://github.com/U-S-NRL-Marine-Meteorology-Division/ for more information.
This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the included license for more details.
xNRL helps you read NRL NWP output into xarray Datasets nested within Pandas DataFrames.
Install
xNRL requires numpy, pandas, and xarray.
Install with pip
pip install xnrl
Clone and install with pip
git clone https://github.com/U-S-NRL-Marine-Meteorology-Division/xnrl.git
cd xnrl
pip install -e .
The
-emakes the code editable.You can update the code with
cd xnrl git pull origin main
Install with Conda
Copy the environment_xnrl.yml file and create the Conda environment.
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
import xnrl
# Load COAMPS flatfiles into an xarray Dataset
fp = '<path>/*pre*00120*'
ds = xnrl.open_dataset(fp, model='COAMPS')
Metadata
Release files for xnrl 2022.9.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| xnrl-2022.9.29.tar.gz | 68.6 kB | Without provenance | Details |
Release files / xnrl-2022.9.29.tar.gz
| Download URL | xnrl-2022.9.29.tar.gz |
|---|---|
| Size | 68.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98231a0432d51ec902b5576b740a24cbda42ea86a4fd635512eb0500c436861c
|
|
BLAKE2b-256 checksum How to use checksums |
d53b3feb93a7847747f91c0e1e58e7975fc63c7df174cc424863c750f0546287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for xnrl 2022.9.29
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.