Skip to content

Commit

Permalink
Feature 759 fr met py (#1025)
Browse files Browse the repository at this point in the history
Co-authored-by: George McCabe <23407799+georgemccabe@users.noreply.github.com>
  • Loading branch information
DanielAdriaansen and georgemccabe authored Jul 26, 2021
1 parent 9f2876c commit 2599369
Show file tree
Hide file tree
Showing 15 changed files with 596 additions and 1,024 deletions.
15 changes: 15 additions & 0 deletions ci/docker/docker_env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@ docker push dtcenter/metplus-envs:pygrib
./scripts/pygrib_env.sh py_embed_base
```

## cfgrib (from fresh Python 3.6.8 environment)

### Docker

```
docker build -t dtcenter/metplus-envs:cfgrib --build-arg ENV_NAME=cfgrib .
docker push dtcenter/metplus-envs:cfgrib
```

### Local

```
./scripts/cfgrib_env.sh
```

## netcdf4 (from metplus_base)

### Docker
Expand Down
24 changes: 24 additions & 0 deletions ci/docker/docker_env/scripts/cfgrib_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /bin/sh

################################################################################
# Environment: cfgrib
# Last Updated: 2021-07-20 (mccabe@ucar.edu)
# Notes: Adds Python packages needed to read GRIB data into Xarray and
# so it can easily be processed with MetPy
# Python Packages:
# metpy==1.0.1
# netcdf4==1.5.6
# cfgrib==0.9.9.0
# pygrib==2.1.3
#
# Other Content: None
################################################################################

# Conda environment to create
ENV_NAME=cfgrib

conda create -y --name ${ENV_NAME} python=3.8.8
conda install -y --name ${ENV_NAME} -c conda-forge metpy==1.0.1
conda install -y --name ${ENV_NAME} -c conda-forge netcdf4==1.5.6
conda install -y --name ${ENV_NAME} -c conda-forge cfgrib==0.9.9.0
conda install -y --name ${ENV_NAME} -c conda-forge pygrib==2.1.3

This file was deleted.

Loading

0 comments on commit 2599369

Please sign in to comment.