Skip to content

Commit

Permalink
Merge branch 'develop' into as_docs2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA authored Jul 22, 2024
2 parents da15b3f + b8b847c commit 510d4dc
Show file tree
Hide file tree
Showing 39 changed files with 58 additions and 48 deletions.
65 changes: 17 additions & 48 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,60 +16,23 @@ concurrency:
jobs:
build-docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
env:
FC: gfortran
CC: gcc

permissions:
id-token: write
pages: write
actions: read

steps:

- name: install
run: |
sudo apt-get update
sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config
sudo apt-get install libpng-dev libaec-dev doxygen
- name: cache-jasper
id: cache-jasper
uses: actions/cache@v4
with:
path: ~/jasper
key: jasper-${{ runner.os }}-1.900.1

- name: checkout-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: jasper-software/jasper
path: jasper
ref: version-1.900.1

- name: build-jasper
if: steps.cache-jasper.outputs.cache-hit != 'true'
run: |
cd jasper
./configure --prefix=$HOME/Jasper
make
make install
- name: checkout-ip
uses: actions/checkout@v4
with:
repository: NOAA-EMC/NCEPLIBS-ip
path: ip
ref: v5.0.0

- name: build-ip
run: |
cd ip
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/ip
make -j2
make install
sudo apt-get install doxygen
- name: checkout
uses: actions/checkout@v4
Expand All @@ -88,11 +51,11 @@ jobs:
cd wgrib2
mkdir build
cd build
cmake .. -DENABLE_DOCS=ON -DCMAKE_PREFIX_PATH="~/ip"
cmake .. -DUSE_IPOLATES=OFF -DENABLE_DOCS=ON
make VERBOSE=1
- name: upload
uses: actions/upload-artifact@master
uses: actions/upload-artifact@v2
with:
name: page
path: wgrib2/build/docs/html
Expand All @@ -105,17 +68,23 @@ jobs:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

permissions:
id-token: write
pages: write
actions: read

steps:
- uses: actions/download-artifact@master
- uses: actions/download-artifact@v2
with:
name: page
path: .
- uses: actions/configure-pages@v1
- uses: actions/upload-pages-artifact@v1
- name: Setup Pages
uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v2
with:
path: .
- id: deployment
uses: actions/deploy-pages@main
uses: actions/deploy-pages@v3



4 changes: 4 additions & 0 deletions docs/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ for interacting with, reading, writing, and manipulating GRIB2 files.
For more information see the [legacy wgrib2
documentation](https://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/).

Wgrib2 is maintained as a collaboration between [Climate Prediction
Center (CPC)](https://www.cpc.ncep.noaa.gov/) and the [Environmental
Modeling Center (EMC)](https://www.emc.ncep.noaa.gov/emc.php).

## Documentation for Previous Versions of wgrib2

* [wgrib2 Version 3.4.0](ver-3.4.0/index.html)
Expand Down
1 change: 1 addition & 0 deletions wgrib2/check_dup_gribtable.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script checks parameter info for wgrib2.

export LC_ALL=C

Expand Down
1 change: 1 addition & 0 deletions wgrib2/check_gribdat.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script checks parameter info for wgrib2.

if [ $# -ne 2 ] ; then
echo "$0 gribtab.dat.1 gribtab.dat.2"
Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_BUFR02020.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/BUFR4"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_CCT05.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/CCT"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_CCT08.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/CCT"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_CCT11.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/CCT"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_CCT14.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/CCT"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_0.0.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_1.2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.1.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.11.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.15.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.20.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.21.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_3.8.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.0.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.10.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.11.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.15.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.16.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.208.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.212.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.222.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.230.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

#---Code table 4.230 is Common Code table C-14:
./get_CCT14.sh
Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.235.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

tab=$1
tab="4.235"
Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.240.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.3.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.4.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.5_ncep.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

tab=$1
tab="4.5"
Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.7.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.8.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.9.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_4.91.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_5.0.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_5.1.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down
1 change: 1 addition & 0 deletions wgrib2/get_code_Table_6.0.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# This script updates wgrib2 with WMO code info.

urlbase="https://github.com/wmo-im/GRIB2"

Expand Down

0 comments on commit 510d4dc

Please sign in to comment.