Skip to content

Instantly share code, notes, and snippets.

@darothen
Created July 2, 2015 00:59
Show Gist options
  • Save darothen/84ae9a29154389fe45a5 to your computer and use it in GitHub Desktop.
Save darothen/84ae9a29154389fe45a5 to your computer and use it in GitHub Desktop.
Plotting HYCOM SST data in Python
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jweisbaum
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

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