I need to read a multiple netCDF4 files using python 3. The files are in different folder named 2019, 2018 with months and days. And the files have the same variables I use to read and plot it.
I can do that just for one file. How I can read all files and variable
IR in all files in all folder?
path='/home/all/2019/03/25/Mmult_2.nc' nc = netCDF4.Dataset('/home/all/2019/03/25/Mmult_2.nc') IR=nc.variables['IR'][:] plt.pcolormesh(IR) plt.colorbar() plt.show()