/usr/share/octave/3.8.0/site/m/grdwrite.m is in octave-gmt 4.5.11-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | % GRDWRITE Write matrix to a GMT grd-file
%
% GRDWRITE(Z, D, 'filename') will write the matrix Z using the
% GMT grdfile format. The array D contains (xmin, xmax, ymin,
% ymax, zmin, zmax, format) for this data set. Format is 1 for
% pixel registration and 0 for grid node registration.
%
% GRDWRITE(Z, D, 'filename', 'title') will in addition set the
% title field in the grd file.
%
% GRDWRITE(X, Y, Z, 'filename', 'title', [1]) expects to get the x-
% and y- arrays in addition to the matrix. It assumes grid node
% registration unless a sixth argument is passed (as 1).
%
% See also GRDREAD, GRDINFO
% $Id: grdwrite.m 9545 2011-07-27 19:31:54Z pwessel $
|