Skip to content

Instantly share code, notes, and snippets.

@Thomas-Moore-Creative
Created August 23, 2021 04:27
Show Gist options
  • Save Thomas-Moore-Creative/ac2e91c496374bc22d1cd4fa2c4d3704 to your computer and use it in GitHub Desktop.
Save Thomas-Moore-Creative/ac2e91c496374bc22d1cd4fa2c4d3704 to your computer and use it in GitHub Desktop.
Open OHC netCDF and plot
import xarray as xr
file = 'path/to/file.nc'
data = xr.open_dataset(file)
data.OHC_0_200_emean.isel(time=0).plot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment