Skip to main content

Convert ERA5 data on NCI to WRF/UM input formatted GRIB data

Project description

era5grib

Convert NCI ERA5 archive data to GRIB format

Using era5grib

To use era5grib you will need to be a member of the hh5 (conda), rt52 (ERA5) and zz93 (ERA5-land) projects at NCI

Load the conda environment with

module use /g/data3/hh5/public/modules
module load conda/analysis3

Values over land

Variables over land use ERA5land instead of ERA5 surface values, as ERA5land is deemed to be more accurate. ERA5land values are regridded to the ERA5 grid using a bilinear interpolation method, with data over the ocean filled in using ERA5 surface values where available.

Currently ERA5 and ERA5-land have been extended backwards and now starts from 1950-01-01.

Using ERA5land can be disabled with the option --no-era5land

WRF output

era5grib can read in the model run dates from your WPS namelist, or you can specify the start and end dates on the command line. You can also pass in your geogrid output file and only that area will be converted to GRIB format.

era5grib wrf --namelist namelist.wps --geo geo_em.d01.nc --output GRIBFILE.AAA

The output can be passed to ungrib, using Vtable Vtable.ERA-interim.pl and metgrid using table METGRID.TBL.ERAI

UM output

The UM can only process one date at a time, which should be specified on the command line. The area to convert can be specified using any UM file on the target grid, e.g. the land mask.

era5grib um --time 20200101T1200 --target qrparm.mask --output era5.20200101T1200.grib

The output file should then be processed using the UM reconfiguration

Customising output

To modify the output of era5grib you can get it to output its data in netcdf format, modify that netcdf file, then convert to grib1 format with CDO

era5grib wrf --namelist namelist.wps --geo geo_em.d01.nc --format netcdf --output intermediate.nc

# Modify intermediate.nc as desired

cdo -f grb1 -t ecmwf copy intermediate.nc GRIBFILE.AAA

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

era5grib-2.0.0.tar.gz (15.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

era5grib-2.0.0-py3-none-any.whl (15.4 MB view details)

Uploaded Python 3

File details

Details for the file era5grib-2.0.0.tar.gz.

File metadata

  • Download URL: era5grib-2.0.0.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for era5grib-2.0.0.tar.gz
Algorithm Hash digest
SHA256 09a4d4eb05ebbb211ef332186f1a3011aeb47896c1fdb60be0b9f65d53c44973
MD5 25e15430fe05406613ce1bd8b619f542
BLAKE2b-256 154116b015b0bd186c38d5fec299d7a14429d0038dfad431236420a590523769

See more details on using hashes here.

File details

Details for the file era5grib-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: era5grib-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for era5grib-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f2a1460700b2e04d99b6d8384d39e9ab4bed8e5b7bd91329ce621c1940d1ab1
MD5 ed5e9decdc29699d22d781076e25bbe0
BLAKE2b-256 887a71d82c1b0e50461bf7e2cd4f37a5a76536fd7c6ec82ca94500ad2b5591df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page