ai-models-xihe
ai-models-xihe is an ai-models plugin to run XiHe-GlobalOceanForecasting.
Installation
To install the package, run:
pip install ai-models-xihe
Until a PyPI release is published, install from this repository instead:
python -m pip install .
ONNX Runtime is installed separately. Use onnxruntime for CPU,
onnxruntime-gpu for NVIDIA CUDA, or the vendor's MACA ONNX Runtime wheel for
MetaX devices. The ONNXRUNTIME environment variable is not used by this package.
For an existing environment with all dependencies, use pip install --no-deps .
to retain its runtime and dependencies.
Download the assets from the upstream project. Point AI_MODELS_ASSETS or
--assets to the XiHe directory.
The following flat layout is supported:
xihe/
xihe_1to22_1day.onnx
xihe_23to33_1day.onnx
... # one pair for each requested day, 1..10
normalize_mean_50.npz
normalize_std_50.npz
mask_surface.npy
mask_deep.npy
input_data/
input_surface_data/input_surface_20190101.npy
input_deep_data/input_deep_20190101.npy
--download-assets is not implemented.
Run
AI_MODELS_ASSETS=/path/to/models/xihe \
ai-models --lead-time 24 --date 20190101 \
--file /path/to/models/xihe/input_data \
--path ./xihe_output xihe --provider maca
--lead-time is in hours, a positive multiple of 24 up to 240. XiHe predicts
the target day directly: --lead-time 168 uses the day-7 pair once. Add
--all-leads to run each independent pair for days 1..7 from the same initial
condition. This is not an autoregressive rollout with the day-1 model.
To specify files directly, pass --surface-file upper.npy --deep-file deep.npy
and --date YYYYMMDD. --path is an output directory, default xihe_output. Each selected horizon
writes xihe_YYYYMMDD_leadNday.nc. Files are
NetCDF, not GRIB. Use --overwrite to replace existing output or --output none
to skip writing.
ai-models xihe --help-xihe
Metadata
Release files for ai-models-xihe 0.1.0
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 | Actions |
|---|---|---|---|---|
| ai_models_xihe-0.1.0.tar.gz | 26.7 kB | Without provenance | Details for ai_models_xihe-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_models_xihe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ai_models_xihe-0.1.0-py3-none-any.whl |
Total release size: 52.3 kB
Release files / ai_models_xihe-0.1.0.tar.gz
| Download URL | ai_models_xihe-0.1.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ff7c5e5478bd8b9f32b94af30f48588a2b5d68693ab5644a1eaf949cda9a1f9
|
|
BLAKE2b-256 checksum How to use checksums |
79894c487e9a7756a69c429b9026b5c5b5eefa7338f0b58500a7aecfd402c04d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|
Release files / ai_models_xihe-0.1.0-py3-none-any.whl
| Download URL | ai_models_xihe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9817b8c14320aa659302dcaa701b0fa140919704ade48c35d2fa70aa10608ef0
|
|
BLAKE2b-256 checksum How to use checksums |
2349f9d05528a9c04ad4ee7e36873b3bc0c5ef1110dfd172fc9e42484711b876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|
Security for ai-models-xihe 0.1.0
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.