Error of expected str, bytes or os.PathLike object, not NoneType
Hello!
I want to use nco to process netcdf files. I have debian, and I have created a virtual environment, and I have installed nco with pip install. And it installed fine. But I don't know why it doesn't work, not even the example of the web https://pypi.org/project/nco/:
from nco import Nco nco = Nco() temperatures = nco.ncra(input='input.nc', returnCdf=True).variables['T'][:]
this is the error I get:
Traceback (most recent call last):
File "/home/tlopez/Work_BEC/02_Python/BEC_Script/t_Try_Code.py", line 2, in
HI Niilavarnam You need to have the ncks operators in your path (the env variable PATH). In terminal try typing ncks and see what you get ?
....Henry