Hello everyone.
I've recently switched to a Macbook Pro M4 and I've installed all the libraries I need for WRF post-processing, with the wrf-python installed from source code. I want to use a script for plotting I was using on my previous laptop (running with Ubuntu distro), but now I get errors when using the wrf.getvar() function (see below).
Have you ever had this issue, or do you know how to solve it?
Thank you very much!!
I've recently switched to a Macbook Pro M4 and I've installed all the libraries I need for WRF post-processing, with the wrf-python installed from source code. I want to use a script for plotting I was using on my previous laptop (running with Ubuntu distro), but now I get errors when using the wrf.getvar() function (see below).
Have you ever had this issue, or do you know how to solve it?
Thank you very much!!
from netCDF4 import Dataset
from wrf import getvar
file = "/WRF/test_control_sim/wrfout_d02_2018-09-26_22:00:00"
ds = Dataset(file)
lat = getvar(ds, "XLAT")
File src/netCDF4/_netCDF4.pyx:2695, in netCDF4._netCDF4.Dataset.__reduce__()
NotImplementedError: Dataset is not picklable
Last edited: