Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
retrieve,
    class = od,
    expver = 1,
    stream = oper, 
    type = analysis,
    date = -10,
    time = 12,
    levtype = sfc,
    param = 165.128, # u
    grid = 1/1,
    fieldset = u
retrieve,
    param = 166.128, # v
	fieldset = v
compute,
    formula = "sqrt(u*u + v*v)",
    fieldset = speed
write,	
    fieldset = speed,
    target = "$SCRATCH/windspeed"


Additional exercise (question from Nikolaos):

...

Code Block
languagebash
read,
    source = "/scratch/{user}/windspeed",
    grid = 1/1,
    area = europe,
    target = "$SCRATCH/europe_windspeed"


To convert previously created GRIB file to netCDF using ecCodes in a terminal on the ECS or HPC:

Code Block
languagebash
>module load ecmwf-toolbox
>grib_to_netcdf -o $SCRATCH/windspeed.nc $SCRATCH/windspeed

grib_to_netcdf: Version 2.30.2
grib_to_netcdf: Processing input file 'windspeed'.
grib_to_netcdf: Processing input file 'windspeed'.
grib_to_netcdf: Found 1 GRIB field in 2 files.
grib_to_netcdf: Ignoring key(s): method, type, stream, refdate, hdate
grib_to_netcdf: Creating netCDF file 'windspeed.nc'
grib_to_netcdf: NetCDF library version: 4.9.1 of Feb  9 2023 13:54:09 $
grib_to_netcdf: Creating large (64 bit) file format.
grib_to_netcdf: Defining variable 'u10'.
grib_to_netcdf: Done.

...