From a7fd24865556b7f4b47cd078d634d13c8f863a7b Mon Sep 17 00:00:00 2001 From: Jiwoo Lee Date: Wed, 1 Dec 2021 13:15:26 -0800 Subject: [PATCH 1/4] Update README.md --- doc/jupyter/Demo/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/jupyter/Demo/README.md b/doc/jupyter/Demo/README.md index e3cad31e5..8b613040f 100644 --- a/doc/jupyter/Demo/README.md +++ b/doc/jupyter/Demo/README.md @@ -21,12 +21,12 @@ The jupyter dashboard will be launched in your browser. From there, navigate to The notebooks listed below contain command line examples that can be copied from the notebook, customized, and run in the terminal. These commands are found in cells with a *%%bash* header. ## What's in the notebooks -[Demo 0](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_0_download_data.ipynb): Set data and output directories. Download sample data and use cdscan to create xml. Generate parameter files. -[Demo 1](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1_mean_climate.ipynb): Run the Mean Climate driver and explore the many options for customization. -[Demo 1a](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1a_compute_climatologies.ipynb): Learn how to create annual climatology files for running the mean climate driver with custom data. -[Demo 2a](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_2a_monsoon_wang.ipynb): Run the Monsoon (Wang) driver and its options. -[Demo 2b](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_2b_monsoon_sperber.ipynb): Run the Monsoon (Sperber) driver with options. Maps the monsoon regions and displays output graphic. -[Demo 3](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_3_diurnal_cycle.ipynb): Demonstrates the full workflow for running the Diurnal Cycle metrics. -[Demo 4](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_4_modes_of_variability.ipynb): Install scipy and eofs in the kernel environment, run the modes of variability driver with the NAM, and view an output image. -[Demo 5](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_5_mjo_metrics.ipynb): Run the MJO driver with options and view an output image. -[Demo 6](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_6_ENSO.ipynb): Demonstrates how to run the three metrics collections in the ENSO metrics package. +- [Demo 0](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_0_download_data.ipynb): Set data and output directories. Download sample data and use cdscan to create xml. Generate parameter files. +- [Demo 1a](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1a_compute_climatologies.ipynb): Learn how to create annual climatology files for running the mean climate driver with custom data. +- [Demo 1b](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1_mean_climate.ipynb): Run the Mean Climate driver and explore the many options for customization. +- [Demo 2a](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_2a_monsoon_wang.ipynb): Run the Monsoon (Wang) driver and its options. +- [Demo 2b](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_2b_monsoon_sperber.ipynb): Run the Monsoon (Sperber) driver with options. Maps the monsoon regions and displays output graphic. +- [Demo 3](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_3_diurnal_cycle.ipynb): Demonstrates the full workflow for running the Diurnal Cycle metrics. +- [Demo 4](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_4_modes_of_variability.ipynb): Install scipy and eofs in the kernel environment, run the modes of variability driver with the NAM, and view an output image. +- [Demo 5](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_5_mjo_metrics.ipynb): Run the MJO driver with options and view an output image. +- [Demo 6](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_6_ENSO.ipynb): Demonstrates how to run the three metrics collections in the ENSO metrics package. From aba4490df759a8c5e60cc74e73aeeb72198e4bdf Mon Sep 17 00:00:00 2001 From: Jiwoo Lee Date: Wed, 1 Dec 2021 13:18:06 -0800 Subject: [PATCH 2/4] Update README.md --- doc/jupyter/Demo/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/jupyter/Demo/README.md b/doc/jupyter/Demo/README.md index 8b613040f..af2d2595f 100644 --- a/doc/jupyter/Demo/README.md +++ b/doc/jupyter/Demo/README.md @@ -23,10 +23,11 @@ The notebooks listed below contain command line examples that can be copied from ## What's in the notebooks - [Demo 0](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_0_download_data.ipynb): Set data and output directories. Download sample data and use cdscan to create xml. Generate parameter files. - [Demo 1a](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1a_compute_climatologies.ipynb): Learn how to create annual climatology files for running the mean climate driver with custom data. -- [Demo 1b](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1_mean_climate.ipynb): Run the Mean Climate driver and explore the many options for customization. +- [Demo 1b](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_1b_mean_climate.ipynb): Run the Mean Climate driver and explore the many options for customization. - [Demo 2a](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_2a_monsoon_wang.ipynb): Run the Monsoon (Wang) driver and its options. - [Demo 2b](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_2b_monsoon_sperber.ipynb): Run the Monsoon (Sperber) driver with options. Maps the monsoon regions and displays output graphic. - [Demo 3](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_3_diurnal_cycle.ipynb): Demonstrates the full workflow for running the Diurnal Cycle metrics. - [Demo 4](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_4_modes_of_variability.ipynb): Install scipy and eofs in the kernel environment, run the modes of variability driver with the NAM, and view an output image. - [Demo 5](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_5_mjo_metrics.ipynb): Run the MJO driver with options and view an output image. - [Demo 6](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_6_ENSO.ipynb): Demonstrates how to run the three metrics collections in the ENSO metrics package. +- [Demo 7](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_7_precip_variability.iynb): Run metric for precipitation variability across time scales. From 303a1dca9fabf09d3a7aa85c0431700f5dc99d27 Mon Sep 17 00:00:00 2001 From: Jiwoo Lee Date: Wed, 1 Dec 2021 13:20:02 -0800 Subject: [PATCH 3/4] Update README.md --- doc/jupyter/Demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/jupyter/Demo/README.md b/doc/jupyter/Demo/README.md index af2d2595f..8cd7ae66c 100644 --- a/doc/jupyter/Demo/README.md +++ b/doc/jupyter/Demo/README.md @@ -30,4 +30,4 @@ The notebooks listed below contain command line examples that can be copied from - [Demo 4](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_4_modes_of_variability.ipynb): Install scipy and eofs in the kernel environment, run the modes of variability driver with the NAM, and view an output image. - [Demo 5](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_5_mjo_metrics.ipynb): Run the MJO driver with options and view an output image. - [Demo 6](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_6_ENSO.ipynb): Demonstrates how to run the three metrics collections in the ENSO metrics package. -- [Demo 7](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_7_precip_variability.iynb): Run metric for precipitation variability across time scales. +- [Demo 7](https://github.com/PCMDI/pcmdi_metrics/blob/main/doc/jupyter/Demo/Demo_7_precip_variability.ipynb): Run metric for precipitation variability across time scales. From ccaa0aec7595fe0c6a81852cd876fc728f2bddc6 Mon Sep 17 00:00:00 2001 From: Ana Ordonez Date: Mon, 13 Dec 2021 08:59:16 -0800 Subject: [PATCH 4/4] Add shebang to variability across timescales --- .../variability_across_timescales_PS_driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcmdi_metrics/precip_variability/variability_across_timescales_PS_driver.py b/pcmdi_metrics/precip_variability/variability_across_timescales_PS_driver.py index a0d9ce42e..b17fd05bf 100644 --- a/pcmdi_metrics/precip_variability/variability_across_timescales_PS_driver.py +++ b/pcmdi_metrics/precip_variability/variability_across_timescales_PS_driver.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import copy import glob import os