Skip to content

Instantly share code, notes, and snippets.

View zshaheen's full-sized avatar

Zeshawn Shaheen zshaheen

View GitHub Profile
@zshaheen
zshaheen / testing_e3sm_diags_api.md
Created June 13, 2019 02:42
Running E3SM Diagnostics via the API

Running E3SM Diagnostics via the API

Getting the Environment Setup

We are running all of these tests on Cori. Here's how you setup the environment.

  1. wget the environment yml file from the aprime_try1 branch.
    wget https://raw.githubusercontent.com/E3SM-Project/e3sm_diags/aprime_try1/conda/e3sm_diags_env_dev.yml
    
  2. Create the environment.
@zshaheen
zshaheen / e3sm_diags_env_scratch.md
Created June 13, 2019 23:09
Creating a new E3SM Diagnostics Environment from Scratch

Creating a new E3SM Diagnostics Environment from Scratch

Every once in a while (fairly often), the yml environmental files in the conda folder break. It's either because:

  • A dependency is removed.
  • A dependency of a dependency is removed.
  • ???

When this happens, you need to create a new environment from scratch. Here's how you do it.

  1. On a Linux machine, use the command below to create an environment:
@zshaheen
zshaheen / add_diags_to_e3sm_diags.md
Last active June 16, 2019 20:13
How to Add Diagnostic Sets to E3SM Diagnostics

How to Add Diagnostic Sets to E3SM Diagnostics

Introduction

When planning to expand the current diagnostic sets, efforts have been made to structure the e3sm_diags code base in a more modularized and expandable fashion. The developers will be able to add new diagnostic sets easily and cleanly. This guide documents essential steps for guiding the users to add custom diagnostics by providing an example. If a user has a streamlined Python script for a complete analysis, from reading in files, data manipulation, computation, and visualization, it should be straightforward to take the below steps to add the analysis to e3sm_diags.

In this document, we will be explain by example the process of adding a diagnostics set into e3sm_diags. Some of the current diagnostics sets in e3sm_diags are the different kinds of plots seen here. If you have any questions or issues regarding this, please make a Github i