[netcdfgroup] need to id netcdf files

Hi,

I am in need of a function that can identify a file as netcdf3, netcdf4, or
pnetcdf 64-bit.
Preferably I would like this function to work without having linked any of
the mentioned netcdf libraries.

Does anyone have or know of one?

Thanks,
Jim