Load other library, such as netCDF4 #20215
Replies: 2 comments 2 replies
-
The issue is likely with which python you're using. VisIt's python doesn't have access to libraries outside of the following:
If you're running a script with VisIt's python, you can't use |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your answer. The reason I want to load netCDF4 is that I want to read the dimension length from the input dataset (in netCDF4 format). For example, my dataset file contains the dimensions like node, nele, siglay, siglev. Is there any way to get their value in VisIt? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am writing a python code named 'test_visit.py'. I will run it via 'visit -cli -nowin -s test_visit.py'. In the code, I can load the visit via 'import visit' or 'import visit_utils' successfully.
The test_visit.py is as:
import visit
import netCDF4
fin = "./cbb_0001.nc"
exit()
But when I load the other libraries, such as netCDF4, the error shows:
No module named 'netCDF4'.
I installed it via 'conda install' and it can be loaded in my other python codes and run smoothly via 'python *.py'. Any suggestion would be helpful. Thanks.
Regards,
Siqi
Beta Was this translation helpful? Give feedback.
All reactions