Skip to main content

mlmicrophysics

Machine learning emulators for microphysical processes in CESM.

Requirements

The library has been tested with Python 3.6. The mlmicrophysics library requires the following Python libraries:

  • numpy
  • scipy
  • matplotlib
  • scikit-learn
  • tensorflow
  • keras
  • pandas
  • xarray
  • pyyaml
  • netcdf4

You can install the dependencies using conda or pip depending on your local Python installation. In order to compile the fortran code within the library, you will need gfortran on your system.

Installation

To install and compile the library, run the following command:

git clone https://github.com/NCAR/mlmicrophysics.git
cd mlmicrophysics
pip install .

Running

To train a new microphysics neural network emulator, you will first need to process the CESM CAM output files using the scripts/process_cesm_output.py script. The process script converts the CAM netCDF files to a set of csv files and filters out non-cloud grid cells. The script requires a yaml config file. See config/cesm_tau_run5_full_process.yml for an example. To run the processing script:

cd ~/mlmicrophysics/scripts
python -u process_cesm_output.py ../config/cesm_tau_run5_full_process.yml -p 5 >& tau_run5_process.log

Once the data are processed, you can train a set of neural network emulators with scripts/train_mp_neural_nets.py. This script pre-processes the training and validation data, trains a set of neural networks and saves them and their verification statistics to an output directory.

Contact

If you have issues with the library, please create an issue on the github page. General questions can be sent to David John Gagne at dgagne@ucar.edu.

Metadata

Release files for mlmicrophysics 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlmicrophysics 0.1.1
File Size Uploaded
mlmicrophysics-0.1.1.tar.gz 28.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlmicrophysics 0.1.1
File Interpreter ABI Platform
mlmicrophysics-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.1 kB

Release files / mlmicrophysics-0.1.1.tar.gz

Download URL mlmicrophysics-0.1.1.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8db8fb122871f95ae0e6c9c842f25946b81bed71209cfefebd5b58543b32d11a
BLAKE2b-256 checksum
How to use checksums
d41f5a9ab749b00ce60e169bc0ec00b55eea19f747847bd9db069eba7815b3d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

Release files / mlmicrophysics-0.1.1-py3-none-any.whl

Download URL mlmicrophysics-0.1.1-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c6be182238c1cb6d8a2c088d2fd38f59c4d322b3f6530b030f5e6330b901582
BLAKE2b-256 checksum
How to use checksums
a5733a7edb6b0f2787ca1a242ed50d613d1264b049fe0d4befd3c05a3fa3e4ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200102 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release 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