arlmet.write_dataset#
- arlmet.write_dataset(ds, filename_or_obj, *, vertical_axis=None)[source]#
Write a simple flat Dataset representation to an ARL file.
This writer supports the common-case Dataset contract returned by
open_dataset(): :rtype:Nonesurface variables use dims
(time, y, x)or(time, lat, lon)upper-air variables use dims
(time, level, y, x)or(time, level, lat, lon)all upper-air variables share the same
levelcoordinate
Per-variable forecast heterogeneity is intentionally not represented in the flat Dataset API.
forecast_hour(time)supplies only the ARL index-record forecast written for each time step.