Skip to content

Converting netCDF to GRIB2 #1015

Locked Answered by JohnHalleyGotway
johnlwagner asked this question in File I/O
Discussion options

You must be logged in to vote

@johnlwagner, I wanted to let you know that no one within the DTC, to my knowledge, has converted MET NetCDF output into GRIB2 files... although we've never really been motivated to do so. What is the motivation for this work? Do you need GRIB2 output for display on AWIPS?

I see that you're trying to use the CDO for this conversion but are having trouble renaming the 'lon' variable to 'longitude'. I typically use the 'nco' utility named 'ncrename' for this sort thing.

ncrename -d lat,latitude -d lon,longitude -v lat,latitude -v lon,longitude series_analysis_UPPER_AIR_TMP_120000L_20120409_120000V.nc

However that produced an error:

NetCDF: Can't define dimensional metadata

One option, jus…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@johnlwagner
Comment options

@JohnHalleyGotway
Comment options

@JohnHalleyGotway
Comment options

Answer selected by JohnHalleyGotway
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment