EnglishFrenchSpanish

OnWorks favicon

ncoffsets - Online in the Cloud

Run ncoffsets in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ncoffsets that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ncoffsets - print the starting/ending file offsets for netCDF variables

SYNOPSIS


ncoffsets [-h] | [-x] | [-sgr] [-v var1[,...]] file

DESCRIPTION


ncoffsets 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


-v var1[,...]
The output will include data values for the specified variables. One or more
variables must be specified by name in the comma-delimited list following this
option. The list must be a single argument to the command, hence cannot contain
blanks or other white space characters. The named variables must be valid netCDF
variables in the input-file. The default, without this option is to include data
values for all variables in the output.

-s Print the variable size in bytes. For record variables, only the size of one record
is printed.

-g Print the gap in bytes from the previous variable. For the first defined variable,
print the gap from the end of file header. For record variables, there is no gap
between records.

-r Output the offset information for all records of the selected record variables.
Without this option, only the offsets of first record are printed.

-x Check all fixed-size variable for file space gaps in between any two immediately
adjacent variables. It prints "1" on stdout if gaps are found, "0" for otherwise.
This option disables all other options.

-h Print the available command-line options

EXAMPLES


Print 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

Use ncoffsets online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad