Skip to content

How to export Dataset to grib2 file? #7367

Answered by zxdawn
zxdawn asked this question in Q&A
Discussion options

You must be logged in to vote

well, the function name is different. Here's the solution:

from cfgrib.xarray_to_grib import to_grib
to_grib(ds, 'out.grib')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@n-beckage
Comment options

@TomNicholas
Comment options

Answer selected by zxdawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants