Skip to contents

A function to prepare python scripts to download ERA5 data, mainly for WRF modelling.

Usage

prepare_ERA5_ml_scripts(
  DATE = "1988-08-5",
  VARS = "129.128/130.128/131.128/132.128/133.128",
  AREA = "[ 90, -180, -90, 180, ]",
  RES = "0.25/0.25",
  FORMAT = "grib",
  PATH = "~/"
)

Arguments

DATE

A character indicate on which date (e.g. "1988-08-05") the data should be downloaded. default is "1988-08-05".

VARS

A character of variables to be downloaded. Please refer to the ERA5 Catalogue. Default is '129/130/131/132/133' which includes: 129.128 is Geopotential 130.128 is Temperature 131.128 is U component of wind 132.128 is V component of wind 133.128 is Specific humidity

AREA

A character of the area of interest (python list) which is specified as N, W, S, E. Default is "square-bracket 90, -180, -90, 180,square-bracket".

RES

Resolution of the data to be downloaded. Default is "0.25/0.25"

FORMAT

Format of the data, either grib or netcdf. Default is grib.

PATH

A character pointing to where the genereted script will be saved.

Author

Ahmed Homoudi