This repository stores an example gallery repo for the Pangeo Gallery. To access, download folder and open in jupyter lab. Main use of this repo is to query and download data from CMIP6 models to be used to create deep-learning models.
conda env create -f environment.yml
- Notebooks to preprocess and download CMIP6 data:
- basic_search_and_load: Queries, stores, and animates CMIP6 data
- ECS_Gregory_method: Approximate the equilibrium climate sensitivity (ECS) of CMIP6 models via the "Gregory method" using the first 150 years after abrupt quadrupling of CO2 concentrations
- global_mean_surface_temp: Calculates the global mean surface temperature using similar methods to "Gregory method"
- intake_ESM_example: Queries CMIP6 data; experimental and still unstable
- precip_frequency_change: Calculate the distribution of precipitation intensity
- Numpy files containing 3D arrays of lat, lon, time, and variable (instructions on extracting this info below)
- A configuration file,
binder-gallery.yaml
, which provides important configuration parameters (see pangeo gallery documentation). - A thumbnail image (
thumbnail.png
), a 200 x 200 px image which represents the gallery content. - Github workflows, which make the magic happen! (Don't touch these.)
- Explore Data:
- Go to basic_search_and_load
- Query data using desired filters:
- Need only three filters (experiment_id, table_id, variable_id) but can use more if needed
- Default values should be "activity_id=='CMIP' & table_id == 'Amon' & variable_id == 'tas' & experiment_id == 'historical'"
- Scroll down to for loop where data is saved as numpy then stored into a numpy file
- Change numpy file name to desired name
- Change data variables to new variable_id (replace all the "tas" with new variable_id)