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.2.tar.gz (664.4 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.2-py3-none-any.whl (674.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microhhpy-0.1.2.tar.gz
  • Upload date:
  • Size: 664.4 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.2.tar.gz
Algorithm Hash digest
SHA256 df1119a8774927915c59b0bb100b38de5b72fb251d0875902fdf697e3f74b4f3
MD5 45a6a7e249f43d4cbc37dddf6969b97b
BLAKE2b-256 5b0e3cf75971cd6d0859a18085fa9550eca075677502d94338e62e1c80bf827a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: microhhpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 674.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3db654347dd340ab199e0316fea975a37e774fc6fbdf5c623ef2b9d31e06ef2e
MD5 aefbe609542c378e2d17fdebc3d7120b
BLAKE2b-256 8ceb01dbcf90ccc898f6d9eb9d51017b11b2825a2b86385c5d26cb30486fc031

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