GPAOP(1)

NAME

gpaop - Carrying out an arithmetric operation multiple GPhys variables.

USAGE
    % gpaop -f func [options] gturl1 gturl2 ...

DESCRIPTION

Carrying out an arithmetric operation (addition, subtraction, multiplication and division) multiple GPhys variables.

SYNOPSYS

Operation, gphys1 (+-*/) gphys2 (+-*/) gphys3 (+-*/) ... is performed by the following command formats.
    % gpaop -f func [options] gturl1 gturl2 ...

Format of 'gturl*' is 'path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]'
    % gpaop -f func --var varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]] [options] gtfile1 gtfile2 ...

Commands which compute arithmetric operation on gphys variables are successively installed by linking this sciript as a "gp+(add|sub|multi|div)". You can omit '--func' option by using these commands.

OPTIONS

-f func, --func func
    kind of operation (add|sub|multi|div|)

-v url, --var url
    set the variable name and slicing parameters.

-h, --help
    print this message.

-o file, --output file
    output filename (optional). Default output filename is 'gphys.nc'.

Usage Examples
    % gpaop -f add gtool.nc@temp gtool.nc@temp
    % gpaop -f sub gtool.nc@temp,t=1 gtool.nc@temp,t=2

    % gpaop -f multi --var temp gtool*.nc
    % gpaop -f div --var temp,t=1 gtool*.nc
    % gpaop -o temp.nc --var temp,t=1 gtool*.nc

HISTORY
    2005/08/21  S Takehiro (created)
    2005/08/23  S Takehiro (common methods to gp* commandmoved to gpcommon.rb)
    2010/03/10  Y SASAKI (change help block into RD format)
    2012/02/19  S Takehiro (description for gturl format updated)