![]() |
![]()
| ![]() |
![]()
NAMEr.out.mat - Exports a GRASS raster to a binary MAT-File. KEYWORDSraster, export, output SYNOPSISr.out.mat
Flags:
Parameters:
DESCRIPTIONr.out.mat will export a GRASS raster map to a MAT-File
which can be loaded into Matlab or Octave for plotting or further analysis.
Attributes such as map title and bounds will also be exported into
additional array variables.
In addition, r.out.mat makes for a nice binary container format for transferring georeferenced maps around, even if you don’t use Matlab or Octave. NOTESr.out.mat exports a Version 4 MAT-File. These files should
successfully load into more modern versions of Matlab and Octave without any
problems.
Null values in maps containing either floating point or
double-precision floating point data should translate into NaN values as
expected.
EXAMPLEIn Matlab, plot with either:
imagesc(map_data), axis equal, axis tight, colorbar or
contourf(map_data, 24), axis ij, axis equal, axis tight, colorbar TODOAdd support for exporting map history, category information, color
map, etc.
SEE ALSO r.in.mat
AUTHORHamish Bowman
SOURCE CODEAvailable at: r.out.mat source code (history) Latest change: Tuesday Dec 17 20:17:20 2024 in commit: d962e90c026708a4815ea2b9f46c0e84c17de22d Main index | Raster index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|