MvMODE with Python Embedding #2644
-
Hi: I am struggling to set up running Multivariate MODE with python embedding on two fields, relative humidity and wind speed. Both datasets are read in using python embedding. I have tested each of these fields and python embedding scripts individually in MODE and verified that they work and produce reasonable output. However, when I try to run MvMODE, I get the following error: Traceback (most recent call last): I'm especially confused since this same python embedding script works as expected when running MODE, but it seems to fail here when using MvMODE. Also, when I look in the log file, it seems that it has in fact read in the RH field at some point using the python embedding (I can see the output from the python script), but then it fails again later with an error about not reading RH (and it doesn't appear to have tried to read wind yet). I couldn't seem to find any examples online that would show how to properly configure MvMODE with python embedding, so maybe my configuration is not correct? Any idea what may be causing the error? I'm attaching my configuration and log file here: Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @CPKalb, I tried running multivariate MODE this morning using Python embedding to provide 2 inputs for both the forecast and observation dictionaries. However, I think I get less far on seneca than you did on derecho. MODE is erroring out when parsing file lists containing only
It would appear on derecho that you've made it past the file list parsing step and made it to the actual processing step. I took a look on derecho to see the content of your file lists:
But that file doesn't exist anymore. In fact, I can't find any file_list files in your MET_output directory. Any idea where I could take a look at that? |
Beta Was this translation helpful? Give feedback.
@CPKalb, as we discussed in the METplus engineering meeting today, I'm confident that code changes in MET will be required to get Python embedding working in multivariate MODE as expected. I wrote up this dtcenter/MET#2940 issue to describe the work and listed the two of us as assignees.
If this is easily fixed, we can include a fix in the upcoming 12.0.0 release. If it's more involved, we'll need to push the work to the next coordinated release.
For now, I'd recommend using a workaround. Prior to running multivariate MODE, run PCP-Combine for each of the Python embedding calls and have it write a NetCDF output file containing the data served up through Python. Then modify your multivaria…