Skip to main content

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 three ways:

  1. Editable install with pip. Clone the source code from Github, and install it (preferably in a development virtual environment) using:

    pip install -e /path/to/microhhpy
    
  2. Without pip, you can expose microhhpy by adding it to your PYTHONPATH:

    export PYTHONPATH="${PYTHONPATH}:/path/to/microhhpy"
    
  3. 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

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.12.tar.gz (667.7 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.12-py3-none-any.whl (679.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: microhhpy-0.1.12.tar.gz
  • Upload date:
  • Size: 667.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for microhhpy-0.1.12.tar.gz
Algorithm Hash digest
SHA256 9032198e3b0d42abf8aee353485ffce7b7af07b33628c4c45d34f96108f921c0
MD5 9f19d84d329de4e9f4d121db15d31ad2
BLAKE2b-256 23fa0d782ebed9fef7fcef55f3f2e3a1fbf5f847fb4b7f7dfbb0e3b527238af2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: microhhpy-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 679.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for microhhpy-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 982d4be6ed11aed18e0f2ccbaf323f5b382535ea0061dc9dda5feb9318e2bf1a
MD5 90a3886d2a9cbd375a6602e1a9559711
BLAKE2b-256 1ce98905985ec4903ac2ab35fac48a19b5fdc036ce1c5c05fc9ed47226e7bef6

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.14

2 files

0.1.13

2 files

This release

0.1.12 This release

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page