login

cutdata.gs

Top / GrADS / script / cutdata.gs

Japanese / English

Name

cutdata - Cut data and save as a binary file.

Synopsis

cutdata
    input-ctl output-grd
    [-x xmin xmax]
    [-y ymin ymax]
    [-z zmin zmax]
    [-t tmin tmax]
    [-t timestep-range | -time timemin tmimeax | -time time-range]
    [-var vname1,vname2,...]
    [-undef undefined-value]

Description

Cut data and save as a binary file. For a dimension, all the range of data will be stored unless it is specified. To show help, simply run "cutdata".

Options

input-ctl
Control file name for input.
output-grd
Output flat-binary file name. cutdata.gs stops if the file already exists.
-x xmin xmax
Z range to cut.
-y ymin ymax
Y range to cut.
-z zmin zmax
Z range to cut.
-t tmin tmax
Time step range to cut.
-t timestep-range
Time step range to cut.
  • e.g. [1-3]: 1<=t<=3 is stored.
  • e.g. [1-3): 1<=t<3 is stored.
-time timemin timemax
Time range to cut.
-time time-range
Time range to cut.
  • e.g. [01jan2000-02jan2000]: 01jan2000<=time<=02jan2000 is stored.
  • e.g. [01jan2000-02jan2000): 01jan2000<=t<02jan2000 is stored.
-var vname1,vname2,...
List of variable names to cut.
-undef undefined-value
Undefined value for output data.

Script source code