Skip to main content

Generate LHS samples and CLM crop PFT NetCDF parameter files for yield optimization.

Project description

Author: Mohammad Uzair Rahil

Michigan State University (MSU)

Date: 01/01/2026

rahil-clm

rahil-clm is a Python package to generate Latin Hypercube Sampling (LHS)–based crop parameter ensembles for CLM/CTSM crop yield optimization.

The package is designed so users do not need to provide any input file paths. Required input files (Excel parameter bounds and base CLM NetCDF parameters) are automatically downloaded from GitHub Releases and cached locally on first use.


Installation

pip install rahil-clm



## Quick start

import rahil

out = rahil.generate_lhs(
    Ninit=150,
    seed=42,
    output_dir="outputs"
)

print(out.param_output_dir)
print(out.main_run_file)
print(out.param_list_file)
print(out.psets_df.head())



This will:

generate LHS samples for crop parameters
write per-case CLM NetCDF parameter files
create workflow text files for running CTSM/CLM ensembles

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

rahil_clm-0.1.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

rahil_clm-0.1.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rahil_clm-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rahil_clm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3cd5ea68903f91486eadb43e8a96abc508bfc174396d4b2fc511bdf3de46749d
MD5 fe4b0ee87dffaae7298b7639f0801abf
BLAKE2b-256 6b4675a5db98b12b9aa0a98ec35d656c3ddadb8c8f37cbc80f95758f6dd7c0b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for rahil_clm-0.1.2.tar.gz:

Publisher: pypi-publish.yml on M-Uzair-Rahil/rahil-clm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: rahil_clm-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rahil_clm-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c7507e355aef2ae7382329f710813134425e5a88358e202a6b2a2d2829f77c5
MD5 6c8629bfa7333f4b7a5a777213ba4252
BLAKE2b-256 ad8b5650ac6707646f49010f37b2c8b7ddfd4c13ff1ca10d0258d1856fc87817

See more details on using hashes here.

Provenance

The following attestation bundles were made for rahil_clm-0.1.2-py3-none-any.whl:

Publisher: pypi-publish.yml on M-Uzair-Rahil/rahil-clm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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