Closed Parag0206 closed 2 years ago
Using NCO command
ncks --chk_nan infile.nc
to check for NaN values in input files.
Also, this error is specifically because of NaN in some 2D field. The 2D fields files are:
Found no NaN in any of the 2D field or 3D field input files
Also, this error occurs only after the initial time step, maybe there is some problem in the initial_condition file.
dmin = z[0]
dmax = z[-2]
ic = ic.sel(depth=slice(dmin, dmax))
Use raphael dussin's HCtFlood python library (https://github.com/raphaeldussin/HCtFlood) for making initial conditions file
complete error:
This definitely means some NaN is there in some input file