![]() |
![]()
| ![]() |
![]()
NAMEr.in.mat - Imports a binary MAT-File(v4) to a GRASS raster. KEYWORDSraster, import SYNOPSISr.in.mat
Flags:
Parameters:
DESCRIPTIONr.in.mat will import a GRASS raster map from a Version 4
MAT-File which was created with Matlab or Octave. Attributes such as map
title and bounds will also be imported if they exist.
The ’map_name’ variable is optional, if it exists, and is valid, the new map will be thus named. If it doesn’t exist or a name is specified with the output= option, the raster map’s name will be set to "MatFile" or the name specified respectively. (maximum 64 characters; normal GRASS naming rules apply) The ’map_title’ variable is optional, the map’s title is set if it exists. The ’map_northern_edge’ and like variables are mandatory unless the user is importing to a "XY" non-georeferenced project (e.g. imagery data). Latitude and longitude values should be in decimal form. NOTESr.in.mat imports a Version 4 MAT-File. These files can be
successfully created with more modern versions of Matlab and Octave (see
"EXAMPLES" below).
r.mapcalc "int_map = int(MATFile_map)" NaN values in either floating point or double-precision floating
point matrices should translate into null values as expected.
Remember Matlab arrays are referenced as (row,column), i.e. (y,x).
EXAMPLESIn Matlab, save with:
save filename.mat map_* -v4 In Octave, save with:
save -mat4-binary filename.mat map_* TODORobust support for mixed-Endian importation. (This is a work in
progress, please help by reporting any failures to the GRASS bug
tracking system;
KNOWN ISSUESIf you encounter any problems, please contact the GRASS Development Team. SEE ALSOr.out.mat, r.in.ascii, r.in.bin, r.mapcalc, r.null. The Octave project AUTHORHamish Bowman
SOURCE CODEAvailable at: r.in.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
|