Python wrapper for the NOAA Environmental Modeling System
Project description
NEMSpy
Python wrapper for the NOAA Environmental Modeling System
This repository implements the National Unified Operational Prediction Capability (NUOPC).
Usage:
from datetime import timedelta
from nemspy import ModelingSystem
from nemspy.model import ADCIRC, AtmosphericMesh, NationalWaterModel, WaveMesh
interval = timedelta(hours=1)
ocean_model = ADCIRC(300)
wave_mesh = WaveMesh()
atmospheric_mesh = AtmosphericMesh()
hydrological_model = NationalWaterModel(769)
nems = ModelingSystem(interval, ocean=ocean_model, wave=wave_mesh, atmospheric=atmospheric_mesh, hydrological=hydrological_model)
nems.connect('atmospheric', 'ocean')
nems.connect('wave', 'ocean')
nems.connect('atmospheric', 'hydrological')
nems.connect('wave', 'hydrological')
nems.connect('ocean', 'hydrological')
nems.write('nems.configure')
the resulting nems.configure
file looks like this:
#############################################
#### NEMS Run-Time Configuration File #####
#############################################
# EARTH #
EARTH_component_list: ATM WAV OCN HYD
EARTH_attributes::
Verbosity = min
::
# ATM #
ATM_model: atmesh
ATM_petlist_bounds: 0 0
ATM_attributes::
Verbosity = min
::
# WAV #
WAV_model: ww3data
WAV_petlist_bounds: 1 1
WAV_attributes::
Verbosity = min
::
# OCN #
OCN_model: adcirc
OCN_petlist_bounds: 2 12
OCN_attributes::
Verbosity = min
::
# HYD #
HYD_model: nwm
HYD_petlist_bounds: 13 781
HYD_attributes::
Verbosity = min
::
# Run Sequence #
runSeq::
@3600
ATM -> OCN :remapMethod=redist
WAV -> OCN :remapMethod=redist
ATM -> HYD :remapMethod=redist
WAV -> HYD :remapMethod=redist
OCN -> HYD :remapMethod=redist
ATM
WAV
OCN
HYD
@
::
Related Repositories:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nemspy-0.2.0.tar.gz
(8.8 kB
view details)
Built Distribution
nemspy-0.2.0-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file nemspy-0.2.0.tar.gz
.
File metadata
- Download URL: nemspy-0.2.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed43fe3d23994e7d70c1cffab264d4d1846c126c914fc41158f4f9dc61ed645 |
|
MD5 | f52c8f80f658046f49dfb47bcdda4359 |
|
BLAKE2b-256 | f3b5cd9d55f2df549405f2a9978a218ca829349da63f9bd6fe5c70fe09a32435 |
Provenance
File details
Details for the file nemspy-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nemspy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad4bf55d9fbc9d077f53a5f0fa100a1d6314bf1bb2bb87995440e26b0cb754b |
|
MD5 | ba0aa162a4a3eb1eb1639973e83e7bdb |
|
BLAKE2b-256 | af33f5ec98a3da3dce198eaf83eb334059740e9d3c2c40722f33aed97000af80 |