Skip to main content

A scripting system for the Last Millennium Reanalysis (LMR) project.

Project description

PyPI

sLMR

This is a scripting system for the Last Millennium Reanalysis project, or LMR.

Package dependencies

  • p2k: A collection of functions used for PAGES2k dataset analysis (pip install p2k)
  • tqdm: A fast, extensible progress bar for Python and CLI (pip install tqdm)
  • prysm-api: The API for PRoxY System Modeling (PRYSM) (pip install prysm-api)
  • dotmap: Dot access dictionary with dynamic hierarchy creation and ordered iteration (pip install dotmap)
  • xarray: N-D labeled arrays and datasets in Python (pip install xarray)
  • netCDF4: the python interface for netCDF4 format (conda install netCDF4)
  • pyspharm: an object-oriented python interface to the NCAR SPHEREPACK library (conda install -c conda-forge pyspharm)

Features

  • [v0.1] Running LMR with Slurm on a cluster with just one command line
  • [v0.2] Post-processing: pick files with the same filename from different directories
  • [v0.3] LMR Turbo (LMRt): the packaged version of the LMR framework with multiprocessing support

How to install

Simply

pip install slmr

and there will be an executable command slmr in your PATH.

Usage examples

Below are some usage examples of slmr. For more details, please check

slmr -h

Running LMR with Slurm

We need to prepare all the data and configurations required for LMR first, then we are able to run LMR with Slurm on a cluster with just one command line:

slmr job -c config.yml -n 4 -nn hungus -rp 0 2000 -em slmr@gmail.com -x test_ccsm4

# slmr job: use the mode of submitting a slurm job
# -c config.yml: use "config.yml" as a configuration template
# -n 4 -nn hungus: run LRM with 4 threads on the node "hungus"
# -rp 0 2000: reconstruction period to be from 0 to 2000 C.E.
# -em slmr@gmail.com: notification will be sent to "slmr@gmail.com"
# -x test_ccsm4: the experiment is named as "test_ccsm4"

Post-processing: pick files

slmr pp pick_files -f gmt.npz -d dir1 dir2 -s ./gmt_files

# slmr pp: use the mode of post-processing
# pick_files: the post-processing task to be pick_files
# -f gmt.npz: pick files named as "gmt.npz"
# -d dir1 dir2: pick files from the specified directories dir1 and dir2; more dirs can be followed
# -s ./gmt_files: save the found files to the directory "./gmt_files"

License

MIT License

Copyright (c) 2018 Feng Zhu

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

slmr-0.3.5.tar.gz (45.3 kB view details)

Uploaded Source

File details

Details for the file slmr-0.3.5.tar.gz.

File metadata

  • Download URL: slmr-0.3.5.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for slmr-0.3.5.tar.gz
Algorithm Hash digest
SHA256 750b704ed45fc6df40d03157981739c810b6784d1129b9a3cffbcdb740b73fe0
MD5 60e2502462127ecd2d65f922d7d2cb59
BLAKE2b-256 33581a8725282a6eb33f5622036e907db93da17b73bc820172b7cf924cac3239

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page