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.1.tar.gz (5.4 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.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rahil_clm-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 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.1.tar.gz
Algorithm Hash digest
SHA256 1641609c51f4aeb0bb462cc0919ee1532590b8ec8d63415083c9b31052c9ff68
MD5 0664dc20bef8c69d0b81df7707f6ff6a
BLAKE2b-256 a5a082c425cac1fa1ca8a42ca0a30479767ea3e1a34ef81cab59800edbfc4fea

See more details on using hashes here.

Provenance

The following attestation bundles were made for rahil_clm-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: rahil_clm-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35ccfef80e584957b23d41e7bd616133829b28c4e22e4fab9673a543b6b46657
MD5 082f16fa8f9ee33dc050efa863976c92
BLAKE2b-256 82805a77906a95add67439146bc03f25be472e6eaf4ac7b471f2455e54e30321

See more details on using hashes here.

Provenance

The following attestation bundles were made for rahil_clm-0.1.1-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