Giter VIP home page Giter VIP logo

cupid's Introduction

CUPiD Logo CUPiD: CESM Unified Postprocessing and Diagnostics

Python Framework for Generating Diagnostics from CESM

Project Vision

CUPiD is a collaborative effort that unifies all CESM component diagnostics and provides

  • Python code that
    1. runs in an easy-to-generate conda environment, and
    2. can be launched via CIME workflow or independently
  • Diagnostics for single/multiple runs and single/multiple components
  • Ability to call post-processing tools that other groups are working on
  • An API that makes it easy to include outside code
  • Ongoing support and software maintenance

Installing

To install CUPiD, you need to check out the code and then set up a few environments. The initial examples have hard-coded paths that require you to be on casper.

The code relies on submodules to install manage_externals and then uses manage_externals for a few packages that are still being developed, so the git clone process is a little more complicated than usual:

$ git clone --recurse-submodules https://github.com/NCAR/CUPiD.git
$ cd CUPiD
$ ./manage_externals/checkout_externals

Then build the necessary conda environments with

$ conda env create -f cupid/dev-environment.yml
$ conda activate cupid-dev
$ which cupid-run
$ conda env create -f cupid-analysis.yml

Notes:

  1. conda now defaults to using mamba to solve environments; the cupid-analysis.yml environment is complicated, so older versions of conda should be updated (conda update -n base conda) or you should use mamba instead.
  2. If ./manage_externals/checkout_externals is not found, run git submodule update --init to clone the submodule.
  3. If which cupid-run returned the error which: no cupid-run in ($PATH), then please run the following:
$ conda activate cupid-dev
$ pip install -e .  # installs cupid

Running

CUPiD currently provides two examples for generating diagnostics. To test the package out, try to run examples/adf-mom6:

$ conda activate cupid-dev
$ cd examples/adf-mom6
$ cupid-run config.yml
$ cupid-build config.yml # Will build HTML from Jupyter Book

After the last step is finished, you can use Jupyter to view generated notebooks in ${CUPID_ROOT}/examples/adf-mom6/computed_notebooks/adf-quick-run or you can copy the entire ${CUPID_ROOT}/examples/adf-mom6/computed_notebooks/adf-quick-run/_build/html directory to your local machine and look at index.html in a web browser.

cupid's People

Contributors

mnlevy1981 avatar teaganking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.