- To: <netcdf-java@xxxxxxxxxxxxxxxx>
- Subject: [netcdf-java] How to determine netcdf file type/version?
- From: "Bentley, Philip" <philip.bentley@xxxxxxxxxxxxxxxx>
- Date: Tue, 31 Mar 2009 11:32:06 +0100
Hi, Is there a quick-and-easy way in nj 4.x to determine the type of a passed-in netcdf file; that is, whether it's a netcdf-3 'classic' binary file or a netcdf-4 hdf-based file? (i.e. without having to read the magic number at the head of the file) I guess I'm thinking of something like a getFileType() or getVersion() method on the NetcdfFile class, but looking at the javadoc I can't see such an operation. Regards, Phil
- Follow-Ups:
- Re: [netcdf-java] How to determine netcdf file type/version?
- From: John Caron
- Re: [netcdf-java] How to determine netcdf file type/version?