Skip to main content

Python package with utility functions for working with MicroHH LES/DNS.

Project description

MicroHHpy


PyPi Badge

Description

Python package with utility functions for working with MicroHH LES/DNS.

The main purpose of microhhpy is to simplify complex workflows and case setups, such as setting up nested simulations with open boundary conditions. Basic scripts for handling MicroHH input and output are still available in microhh/python/microhh_tools.py and other scripts like cross_to_nc.py.

Most of the functionality of microhhpy is demonstrated in the notebooks located in microhhpy/examples.

[!IMPORTANT]
Like microhh itself, this Python package has only been tested in Unix environments.

Usage

The recommended way to install microhhpy is via PyPI:

pip install microhhpy

For development, you can clone the repository and make microhhpy available in one of two ways:

  1. Add it to your PYTHONPATH:

    export PYTHONPATH="${PYTHONPATH}:/path/to/microhhpy"
    
  2. Or append the path directly in your Python script before importing:

    import sys
    sys.path.append('/path/to/microhhpy')
    

Once set up, you can import microhhpy modules, for example:

from microhhpy.spatial import Domain
from microhhpy.spatial import Projection

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microhhpy-0.1.3.tar.gz (668.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microhhpy-0.1.3-py3-none-any.whl (678.8 kB view details)

Uploaded Python 3

File details

Details for the file microhhpy-0.1.3.tar.gz.

File metadata

  • Download URL: microhhpy-0.1.3.tar.gz
  • Upload date:
  • Size: 668.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for microhhpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ef543341cfd13c84c714ccf4a4a3412d74e39eaf27350d59d99c1d3b264f554b
MD5 f9afd0030f55f9450b196a692d024657
BLAKE2b-256 5fc55ad5c573954eb29bb749c021a06d70145b097f5ac6e09b9ebe302e47a0a7

See more details on using hashes here.

File details

Details for the file microhhpy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: microhhpy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 678.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for microhhpy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7dbeec26393e82257fefdf4c0cba9f5f8dcc5312b284c43f00a9ca06f20d15a6
MD5 fbe30148498a04700d4cbe7d33ee532a
BLAKE2b-256 30032c1cf0ed83caa918b78569f1a872f84af83172fa57772bd9781ce9b31d53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page