pyremo.preproc.ERA5.gfile

ERA5.gfile(date, path=None, expid=None, filename=None, add_soil=False)[source]

Create an ERA5 gfile NetCDF containing required variables.

Converts ERA5 GRIB inputs to a regular Gaussian grid and merges all required variables into a single file for REMO preprocessing.

Parameters:
  • date (str or datetime-like) – Date (ISO 8601) for which variables should be converted.

  • path (str, optional) – Output directory for the gfile.

  • expid (str, optional) – Experiment id for filename templating. Defaults to "000000".

  • filename (str, optional) – Full output filename. If omitted, it is composed from path and expid.

  • add_soil (bool, optional) – If True, include additional soil variables.

Returns:

str – The output filename.