Python embedding on Jet #1302
-
On Jet, I would like to use python embedding to process FV3 write component outputs. The module intelpython/3.6.5 is required before loading met/10.0.0. However, module intelpython/3.6.5 does not contain netCDF4 module. So I specify my python as
My python script can read the FV3 file properly, but plot_data_plane failed with this message,
How to ensure "read_tmp_dataplane.py" to use the right Python executable specified by MET_PYTHON_EXE? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
HI @ywangwof. It looks like the version of Python that MET was compiled with does not include the netCDF4 package necessary to run the code that you'd like to run. It seems that we'll either need to find an existing Python version on Jet that contains the netCDF4 package or create our own conda environment that contains the netCDF4 package and then recompile MET with that version of Python. I will follow up once we recompiled MET with a Python set up that includes the netCDF4 package. EDIT: For full answer, see comments below. |
Beta Was this translation helpful? Give feedback.
HI @ywangwof. It looks like the version of Python that MET was compiled with does not include the netCDF4 package necessary to run the code that you'd like to run. It seems that we'll either need to find an existing Python version on Jet that contains the netCDF4 package or create our own conda environment that contains the netCDF4 package and then recompile MET with that version of Python. I will follow up once we recompiled MET with a Python set up that includes the netCDF4 package.
EDIT: For full answer, see comments below.