Python embedding breaks with MET V12 #3191
-
|
I have a python embedding script that successfully reads dataplanes as a numpy array (dtype uint8) in MET v 11.0.2 (using the METplus tutorial docker image, has python 3.6.8). In MET v 12.0.4 (using the METplus docker image, comes with python 3.10), the script no longer works. It fails with the following messages: Is uint8 no longer supported as an input format? My python embedding script is attached here (read_model_grids.py). I'm noticing that even though I specified my fill_value is 255 in the attrs dict, the error messages are still suggesting the code may try to use nan as a fill_value? Thank you!! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
I am not sure if this might be somehow related to the issue described here: dtcenter/MET#2557 although that seems to be closed/resolved .. thank you so much! |
Beta Was this translation helpful? Give feedback.
-
|
I'm so sorry, I found the answer in the docs Appendix F 38.4.1 which clearly shows data needs to be double precision floating point. Thank you for all the incredible documentation and support! |
Beta Was this translation helpful? Give feedback.
-
|
I'm glad you were able to find the answer @caroline-owens, And I hope the documentation continues to serve you well! Please let us know if there are any further questions or difficulties that you encounter. |
Beta Was this translation helpful? Give feedback.
I'm so sorry, I found the answer in the docs Appendix F 38.4.1 which clearly shows data needs to be double precision floating point. Thank you for all the incredible documentation and support!