Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Plotting HYCOM SST data in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jweisbaum

This comment has been minimized.

Copy link

@jweisbaum jweisbaum commented Jun 5, 2021

Hey Daniel, I'm trying to write the north and east velocity variables of the RTOFS data to a grib file. This tutorial has been super helpful but I can't figure out how to map it to the grib standard. Any pointers?

@darothen

This comment has been minimized.

Copy link
Owner Author

@darothen darothen commented Jun 10, 2021

Hi @jweisbaum, it's rather difficult to properly write out GRIB files... I'm not familiar with any off-the-shelf package in Python that can easily do it. Your best bet may be to save things to a NetCDF file, and then use a tool like gdal_translate to convert from NetCDF to GRIB.

@jweisbaum

This comment has been minimized.

Copy link

@jweisbaum jweisbaum commented Jun 10, 2021

Thanks so much, I've been able to get it working more or less with Iris by doing some processing on the netcdf, writing to a new netcdf and then using cdo and wgrib2. I'll check out gdal_translate. Your tutorials are awesome.

@darothen

This comment has been minimized.

Copy link
Owner Author

@darothen darothen commented Jun 10, 2021

I appreciate the feedback! Always happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment