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.2.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.2-py3-none-any.whl (15.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: era5grib-2.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c6e5b38e7e2d80681de65fed1d69cd7fcfeb4093bf513f52b99a867892b64ee7
MD5 8352f04ae903ab6bdd50a0247cb8b28a
BLAKE2b-256 bcf2bbdff172c0d5268d3d9301e58c31710114303b5ccf320e6f1a0ccca0a443

See more details on using hashes here.

File details

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

File metadata

  • Download URL: era5grib-2.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d5d6ae9b7d0c4a9a3ed8487bfe47152af483438db3db672591e62ea565b29f5
MD5 0a38513115a1cefff564111133d13c9b
BLAKE2b-256 703acd6d6a098bcd55b97564c4e79bc21786339f49c297d0ada4a5e53678826a

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