I am trying to convert custom GRIB2 meteorological data to ARL format using
api2arl_v3, but the conversion fails immediately with:
ECCODES ERROR : IO ERROR: Bad address: (null)
STOP 900
I have tested this on macOS and also in WSL2 (Ubuntu). In WSL2, api2arl also
reported that the input file could not be found, even though the file path
was correct.
The command I am using is:
./api2arl_v3 -z1 -i input.grib2 -o output.arl
The GRIB2 file was generated from MET Norway MEPS (HARMONIE) data using a
NetCDF → GRIB2 workflow (attached). I have also attached text output
describing the GRIB2 contents (grib_ls, cdo sinfo / infon).
GRIB2 characteristics:
- Regular lat-lon grid
- Pressure levels (50–1000 hPa)
- Single analysis time
- Variables: u, v, t, r, gh, w
I am aware that api2arl typically also expects surface-level fields, but I am
intentionally testing pressure-level data first to get the basic conversion
working.
Based on this:
1) Is this GRIB2 structure suitable for api2arl?
2) Are any required fields or metadata missing?
3) What is a good and straightforward way to successfully run the GRIB2 → ARL
conversion with api2arl?
Thank you for any guidance.