--Improved checking for netcdff