|
NAMEncoffsets - print the starting/ending file offsets for netCDF variablesSYNOPSISncoffsets [-h] | [-x] | [-sgr] [-v var1[,...]] file DESCRIPTIONncoffsets prints the file offsets information of variables defined in a given netCDF file. The ending offsets reported is an exclusive offset, i.e. 1 byte more than the last byte occupied by the variable. In other words, the ending offset is equal to the sum of starting offset and the variable size. For record variables, only the offsets of first record are printed. Add option -r to print the offsets of all records.If no argument is given, command usage information is printed. OPTIONS
EXAMPLESPrint the file offset information for all variables in a netCDF file.% ncoffsets -sg testfile.nc netcdf test_double.nc { //file format: CDF-1 file header: size = 340 bytes extent = 340 bytes dimensions: x = 100 y = 100 z = 100 time = UNLIMITED // (100 currently) fixed-size variables: double square(x, y): start file offset = 340 end file offset = 80340 size in bytes = 80000 gap from prev var = 0 double cube(x, y, z): start file offset = 80340 end file offset = 8080340 size in bytes = 8000000 gap from prev var = 0 record variables: double time(time): start file offset = 8080340 (record 0) end file offset = 8081140 (record 0) size in bytes = 8 (of one record) gap from prev var = 0 double xytime(time, x, y): start file offset = 8080348 (record 0) end file offset = 16080348 (record 0) size in bytes = 80000 (of one record) gap from prev var = 0 } Check if there are gaps in between two adjacent fixed-size variables. % ncoffsets -x testfile.nc 0 SEE ALSOpnetcdf(3)DATE$Date: 2016-11-16 15:33:05 -0600 (Wed, 16 Nov 2016) $
Visit the GSP FreeBSD Man Page Interface. |